Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pkg/profile
/ functions
Functions
35 in github.com/pkg/profile
⨍
Functions
35
◇
Types & classes
2
↓ 15 callers
Method
Stop
Stop stops the profile and flushes any unwritten data.
profile.go:142
↓ 13 callers
Function
Start
Start starts a new profiling session. The caller should call the Stop method on the value returned to cleanly stop profiling.
profile.go:157
↓ 10 callers
Function
Stderr
Stderr verifies that the given lines match the output from stderr
profile_test.go:232
↓ 2 callers
Function
validateOutput
validatedOutput validates the given slice of lines against data from the given reader.
profile_test.go:263
↓ 1 callers
Function
MemProfileRate
MemProfileRate enables memory profiling at the preferred rate. It disables any previous profiling settings.
profile.go:87
↓ 1 callers
Function
ProfilePath
ProfilePath controls the base path where various profiling files are written. If blank, the base path will be generated by ioutil.TempDir.
profile.go:135
↓ 1 callers
Function
runTest
runTest executes the go program supplied and returns the contents of stdout, stderr, and an error which may contain status information about the resul
profile_test.go:322
Function
BlockProfile
BlockProfile enables block (contention) profiling. It disables any previous profiling settings.
profile.go:114
Function
CPUProfile
CPUProfile enables cpu profiling. It disables any previous profiling settings.
profile.go:72
Function
ClockProfile
ClockProfile enables wall clock (fgprof) profiling. It disables any previous profiling settings.
profile.go:130
Function
Err
Err checks that there was an error returned
profile_test.go:249
Function
ExampleCPUProfile
()
example_test.go:16
Function
ExampleMemProfile
()
example_test.go:22
Function
ExampleMemProfileAllocs
()
example_test.go:37
Function
ExampleMemProfileHeap
()
example_test.go:32
Function
ExampleMemProfileRate
()
example_test.go:27
Function
ExampleNoShutdownHook
()
example_test.go:47
Function
ExampleProfilePath
()
example_test.go:42
Function
ExampleStart
()
example_test.go:10
Function
ExampleStart_withFlags
()
example_test.go:52
Function
ExampleTraceProfile
()
trace_test.go:5
Function
GoroutineProfile
GoroutineProfile enables goroutine profiling. It disables any previous profiling settings.
profile.go:126
Function
MemProfile
MemProfile enables memory profiling. It disables any previous profiling settings.
profile.go:80
Function
MemProfileAllocs
MemProfileAllocs changes which type of memory to profile allocations.
profile.go:103
Function
MemProfileHeap
MemProfileHeap changes which type of memory profiling to profile the heap.
profile.go:96
Function
MutexProfile
MutexProfile enables mutex profiling. It disables any previous profiling settings.
profile.go:110
Function
NoErr
NoErr checks that err was nil
profile_test.go:256
Function
NoShutdownHook
NoShutdownHook controls whether the profiling package should hook SIGINT to write profiles cleanly. Programs with more sophisticated signal handling s
profile.go:65
Function
NoStderr
NoStderr checks that stderr was blank.
profile_test.go:242
Function
NoStdout
NoStdout checks that stdout was blank.
profile_test.go:225
Function
Quiet
Quiet suppresses informational messages during profiling.
profile.go:68
Function
TestProfile
(t *testing.T)
profile_test.go:17
Function
TestValidateOutput
(t *testing.T)
profile_test.go:309
Function
ThreadcreationProfile
ThreadcreationProfile enables thread creation profiling.. It disables any previous profiling settings.
profile.go:122
Function
TraceProfile
Trace profile enables execution tracing. It disables any previous profiling settings.
profile.go:118