- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for AtExit (0.12 sec)
-
src/cmd/covdata/covdata.go
var memprofilerateflag = flag.Int("memprofilerate", 0, "Set memprofile sampling rate to value") var matchpkg func(name string) bool var atExitFuncs []func() func atExit(f func()) { atExitFuncs = append(atExitFuncs, f) } func Exit(code int) { for i := len(atExitFuncs) - 1; i >= 0; i-- { f := atExitFuncs[i] atExitFuncs = atExitFuncs[:i] f() } os.Exit(code) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 5.7K bytes - Viewed (0) -
src/cmd/compile/internal/base/base.go
if logHeapTweaks { sample := append([]metrics.Sample(nil), sample...) // avoid races with GC callback AtExit(func() { metrics.Read(sample) goal := sample[GOAL].Value.Uint64() count := sample[COUNT].Value.Uint64() oldGogc := debug.SetGCPercent(100) if oldGogc == 100 { fmt.Fprintf(os.Stderr, "GCAdjust: AtExit goal %d gogc %d count %d maxprocs %d gcConcurrency %d\n", goal, oldGogc, count, mp, gcConcurrency)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 22 19:18:34 UTC 2023 - 8K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_activity_listener.cc
}; void FlushAllListeners(); XlaActivityListenerList* GetXlaActivityListenerList() { static XlaActivityListenerList* listener_list = new XlaActivityListenerList; static int unused = std::atexit(FlushAllListeners); (void)unused; return listener_list; } template <typename FnTy> Status ForEachListener(FnTy fn) { XlaActivityListenerList* listener_list = GetXlaActivityListenerList();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 22 08:47:20 UTC 2024 - 3.3K bytes - Viewed (0) -
src/cmd/go/internal/base/base.go
// it is a documentation pseudo-command such as importpath. func (c *Command) Runnable() bool { return c.Run != nil } var atExitFuncs []func() func AtExit(f func()) { atExitFuncs = append(atExitFuncs, f) } func Exit() { for _, f := range atExitFuncs { f() } os.Exit(exitStatus) } func Fatalf(format string, args ...any) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 18:15:22 UTC 2024 - 5.3K bytes - Viewed (0)