Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 527 for Gc (3.21 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/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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. pkg/controller/garbagecollector/garbagecollector.go

    func (gc *GarbageCollector) processAttemptToDeleteWorker(ctx context.Context) bool {
    	item, quit := gc.attemptToDelete.Get()
    	gc.workerLock.RLock()
    	defer gc.workerLock.RUnlock()
    	if quit {
    		return false
    	}
    	defer gc.attemptToDelete.Done(item)
    
    	action := gc.attemptToDeleteWorker(ctx, item)
    	switch action {
    	case forgetItem:
    		gc.attemptToDelete.Forget(item)
    	case requeueItem:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 32.9K bytes
    - Viewed (0)
  10. src/runtime/metrics/description.go

    	},
    	{
    		Name:        "/gc/scan/stack:bytes",
    		Description: "The number of bytes of stack that were scanned last GC cycle.",
    		Kind:        KindUint64,
    	},
    	{
    		Name:        "/gc/scan/total:bytes",
    		Description: "The total amount space that is scannable. Sum of all metrics in /gc/scan.",
    		Kind:        KindUint64,
    	},
    	{
    		Name:        "/gc/stack/starting-size:bytes",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 06 17:59:12 UTC 2023
    - 19.6K bytes
    - Viewed (0)
Back to top