Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 319 for sample (0.56 sec)

  1. src/cmd/compile/internal/syntax/testdata/sample.go

    // Copyright 2018 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // This is a sample test file illustrating the use
    // of error comments with the error test harness.
    
    package p
    
    // The following are invalid error comments; they are
    // silently ignored. The prefix must be exactly one of
    // "/* ERROR " or "// ERROR ".
    //
    /*ERROR*/
    /*ERROR foo*/
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 30 18:02:18 UTC 2022
    - 951 bytes
    - Viewed (0)
  2. src/cmd/compile/internal/test/pgo_inl_test.go

    	}
    
    	dst.Close()
    
    	testPGOIntendedInlining(t, dir, profFile)
    }
    
    // TestPGOSingleIndex tests that the sample index can not be 1 and compilation
    // will not fail. All it should care about is that the sample type is either
    // CPU nanoseconds or samples count, whichever it finds first.
    func TestPGOSingleIndex(t *testing.T) {
    	for _, tc := range []struct {
    		originalIndex int
    	}{{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/base/base.go

    	currentGoal := sample[GOAL].Value.Uint64() // Believe this will be 4MByte or less, perhaps 512k
    	myGogc := 100 * requestedHeapGoal / currentGoal
    	if myGogc <= 150 {
    		return
    	}
    
    	if logHeapTweaks {
    		sample := append([]metrics.Sample(nil), sample...) // avoid races with GC callback
    		AtExit(func() {
    			metrics.Read(sample)
    			goal := sample[GOAL].Value.Uint64()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 19:18:34 UTC 2023
    - 8K bytes
    - Viewed (0)
  4. src/archive/tar/writer_test.go

    	if err != nil {
    		t.Fatalf("os.Stat:1 %v", err)
    	}
    	hdr.Typeflag = TypeDir
    	// Force a PAX long name to be written. The name was taken from a practical example
    	// that fails and replaced ever char through numbers to anonymize the sample.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 38.7K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/debug_test.go

    	// (1) In testdata, build sample.go into test-sample.<tag>
    	// (2) Run debugger gathering a history
    	// (3) Read expected history from testdata/sample.<tag>.nexts
    	// optionally, write out testdata/sample.<tag>.nexts
    
    	testbase := filepath.Join("testdata", base) + "." + tag
    	tmpbase := filepath.Join("testdata", "test-"+base+"."+tag)
    
    	// Use a temporary directory unless -f is specified
    	if !*force {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:11:47 UTC 2024
    - 28.6K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/inline/inlheur/scoring.go

    // the in-loop adjustment is 5 (for example), then there is not much
    // point treating it as inlinable. On the other hand "bar" has a param
    // property (parameter "x" feeds unmodified to an "if" statement") and
    // a return property (always returns same constant) meaning that a
    // given call _could_ be rescored down as much as -35 points-- thus if
    // the size of "bar" is 100 (for example) then there is at least a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:42:52 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  7. src/cmd/go/internal/test/test.go

    where xxx is a suffix not beginning with an upper case letter.
    
    Here is an example of an example:
    
    	func ExamplePrintln() {
    		Println("The output of\nthis example.")
    		// Output: The output of
    		// this example.
    	}
    
    Here is another example where the ordering of the output is ignored:
    
    	func ExamplePerm() {
    		for _, value := range Perm(4) {
    			fmt.Println(value)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 71.9K bytes
    - Viewed (0)
  8. src/cmd/go/alldocs.go

    //	Mercurial   .hg
    //	Subversion  .svn
    //
    // For example,
    //
    //	import "example.org/user/foo.hg"
    //
    // denotes the root directory of the Mercurial repository at
    // example.org/user/foo or foo.hg, and
    //
    //	import "example.org/repo.git/foo/bar"
    //
    // denotes the foo/bar directory of the Git repository at
    // example.org/repo or repo.git.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:54:28 UTC 2024
    - 142.4K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/mod/example.com_undeprecated_v1.0.0.txt

    -- .info --
    {"Version":"v1.0.0"}
    -- .mod --
    // Deprecated: in v1.0.0
    module example.com/undeprecated
    
    go 1.17
    -- go.mod --
    // Deprecated: in v1.0.0
    module example.com/undeprecated
    
    go 1.17
    -- undeprecated.go --
    package undeprecated
    
    -- cmd/a/a.go --
    package main
    
    import "fmt"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 17:25:54 UTC 2024
    - 318 bytes
    - Viewed (0)
  10. src/cmd/go/testdata/mod/example.com_depends_on_generics_v1.0.0.txt

    example.com/depends/on/generics v1.0.0
    written by hand
    
    -- .mod --
    module example.com/depends/on/generics
    
    go 1.18
    
    require example.com/generics v1.0.0
    -- .info --
    {"Version":"v1.0.0"}
    -- go.mod --
    module example.com/depends/on/generics
    
    go 1.18
    
    require example.com/generics v1.0.0
    -- main.go --
    package main
    
    import "example.com/generics"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 11 20:37:36 UTC 2022
    - 370 bytes
    - Viewed (0)
Back to top