- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for addMaxRSS (0.16 sec)
-
src/runtime/pprof/pprof_rusage.go
// license that can be found in the LICENSE file. //go:build unix package pprof import ( "fmt" "io" "runtime" "syscall" ) // Adds MaxRSS to platforms that are supported. func addMaxRSS(w io.Writer) { var rssToBytes uintptr switch runtime.GOOS { case "aix", "android", "dragonfly", "freebsd", "linux", "netbsd", "openbsd": rssToBytes = 1024 case "darwin", "ios": rssToBytes = 1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 30 23:58:34 UTC 2022 - 792 bytes - Viewed (0) -
src/runtime/pprof/pprof_norusage.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 19 11:20:31 UTC 2024 - 309 bytes - Viewed (0) -
src/runtime/pprof/pprof_windows.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package pprof import ( "fmt" "internal/syscall/windows" "io" "syscall" "unsafe" ) func addMaxRSS(w io.Writer) { var m windows.PROCESS_MEMORY_COUNTERS p, _ := syscall.GetCurrentProcess() err := windows.GetProcessMemoryInfo(p, &m, uint32(unsafe.Sizeof(m))) if err == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 19 20:04:21 UTC 2022 - 505 bytes - Viewed (0) -
src/runtime/pprof/pprof.go
fmt.Fprintf(w, "# NumForcedGC = %d\n", s.NumForcedGC) fmt.Fprintf(w, "# GCCPUFraction = %v\n", s.GCCPUFraction) fmt.Fprintf(w, "# DebugGC = %v\n", s.DebugGC) // Also flush out MaxRSS on supported platforms. addMaxRSS(w) tw.Flush() return b.Flush() } // countThreadCreate returns the size of the current ThreadCreateProfile. func countThreadCreate() int { n, _ := runtime.ThreadCreateProfile(nil) return n
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:52:17 UTC 2024 - 30.6K bytes - Viewed (0)