Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 629 for Gc (1.74 sec)

  1. src/internal/trace/gc.go

    					// Started running while doing GC things.
    					ps[ev.Proc()].gc++
    				} else if old.Executing() && !new.Executing() {
    					// Stopped running while doing GC things.
    					ps[ev.Proc()].gc--
    				}
    			}
    			states[g] = new
    		case EventLabel:
    			l := ev.Label()
    			if flags&UtilBackground != 0 && strings.HasPrefix(l.Label, "GC ") && l.Label != "GC (idle)" {
    				// Background mark worker.
    				//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 26K bytes
    - Viewed (0)
  2. src/internal/goroot/gc.go

    // license that can be found in the LICENSE file.
    
    //go:build gc
    
    package goroot
    
    import (
    	"os"
    	"os/exec"
    	"path/filepath"
    	"strings"
    	"sync"
    )
    
    // IsStandardPackage reports whether path is a standard package,
    // given goroot and compiler.
    func IsStandardPackage(goroot, compiler, path string) bool {
    	switch compiler {
    	case "gc":
    		dir := filepath.Join(goroot, "src", path)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 18:16:28 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. src/runtime/testdata/testprog/gc.go

    func DeferLiveness() {
    	var x [10]int
    	escape(&x)
    	fn := func() {
    		if x[0] != 42 {
    			panic("FAIL")
    		}
    	}
    	defer fn()
    
    	x[0] = 42
    	runtime.GC()
    	runtime.GC()
    	runtime.GC()
    }
    
    //go:noinline
    func escape(x any) { sink2 = x; sink2 = nil }
    
    var sink2 any
    
    // Test zombie object detection and reporting.
    func GCZombie() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Oct 02 02:28:27 UTC 2022
    - 12.1K bytes
    - Viewed (0)
  4. src/cmd/go/internal/work/gc.go

    	ppath := p.ImportPath
    	if cfg.BuildBuildmode == "plugin" {
    		ppath = pluginPath(a)
    	} else if p.Name == "main" && !p.Internal.ForceLibrary {
    		ppath = "main"
    	}
    	return ppath
    }
    
    func (gcToolchain) gc(b *Builder, a *Action, archive string, importcfg, embedcfg []byte, symabis string, asmhdr bool, pgoProfile string, gofiles []string) (ofile string, output []byte, err error) {
    	p := a.Package
    	sh := b.Shell(a)
    	objdir := a.Objdir
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 15:37:44 UTC 2024
    - 23K bytes
    - Viewed (0)
  5. src/internal/trace/testdata/testprog/gc-stress.go

    // Copyright 2023 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.
    
    // Tests a GC-heavy program. This is useful for shaking out
    // all sorts of corner cases about GC-related ranges.
    
    //go:build ignore
    
    package main
    
    import (
    	"log"
    	"os"
    	"runtime"
    	"runtime/trace"
    	"time"
    )
    
    type node struct {
    	children [4]*node
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  6. src/internal/trace/testdata/tests/go122-gc-stress.test

    	pc=4804475 func=32 file=33 line=60
    EventBatch gen=3 m=18446744073709551615 time=28114950894688 size=2762
    Strings
    String id=1
    	data="Not worker"
    String id=2
    	data="GC (dedicated)"
    String id=3
    	data="GC (fractional)"
    String id=4
    	data="GC (idle)"
    String id=5
    	data="unspecified"
    String id=6
    	data="forever"
    String id=7
    	data="network"
    String id=8
    	data="select"
    String id=9
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 139.1K bytes
    - Viewed (0)
  7. src/runtime/metrics/doc.go

    		to system CPU time measurements. Compare only with other
    		/cpu/classes metrics.
    
    	/gc/cycles/automatic:gc-cycles
    		Count of completed GC cycles generated by the Go runtime.
    
    	/gc/cycles/forced:gc-cycles
    		Count of completed GC cycles forced by the application.
    
    	/gc/cycles/total:gc-cycles
    		Count of all completed GC cycles.
    
    	/gc/gogc:percent
    		Heap size target percentage configured by the user, otherwise
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:58:43 UTC 2024
    - 20K bytes
    - Viewed (0)
  8. src/runtime/metrics_test.go

    		case "/gc/heap/frees:objects":
    			objects.frees = samples[i].Value.Uint64()
    		case "/gc/heap/frees-by-size:bytes":
    			objects.free = samples[i].Value.Float64Histogram()
    		case "/gc/cycles:gc-cycles":
    			gc.numGC = samples[i].Value.Uint64()
    		case "/gc/pauses:seconds":
    			h := samples[i].Value.Float64Histogram()
    			gc.pauses = 0
    			for i := range h.Counts {
    				gc.pauses += h.Counts[i]
    			}
    		case "/gc/scan/heap:bytes":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 45K bytes
    - Viewed (0)
  9. src/cmd/link/internal/benchmark/bench.go

    //	  flag.Parse()
    //	  var bench *benchmark.Metrics
    //	  if *enableBenchmarking {
    //	    bench = benchmark.New(benchmark.GC)
    //	  }
    //	  bench.Start("foo")
    //	  // etc.
    //	}
    func New(gc Flags, filebase string) *Metrics {
    	if gc == GC {
    		runtime.GC()
    	}
    	return &Metrics{gc: gc, filebase: filebase}
    }
    
    // Report reports the metrics.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 30 18:10:36 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  10. src/runtime/mgc.go

    	}
    }
    
    // gcMode indicates how concurrent a GC cycle should be.
    type gcMode int
    
    const (
    	gcBackgroundMode gcMode = iota // concurrent GC and sweep
    	gcForceMode                    // stop-the-world GC now, concurrent sweep
    	gcForceBlockMode               // stop-the-world GC now and STW sweep (forced by user)
    )
    
    // A gcTrigger is a predicate for starting a GC cycle. Specifically,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62K bytes
    - Viewed (0)
Back to top