Go pprof Concepts: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 4: | Line 4: | ||
=Overview= | =Overview= | ||
=Profile= | =Profile= | ||
A '''profile''' is a collection of stack traces showing the call sequences that led to instances of a particular event, such as allocation. Packages can create and maintain their own profiles. The most common use is for tracking resources that must be explicitly closed, such as files or network connections. | |||
Each profile has a unique name. | |||
There are a few predefined profiles: | |||
==<tt>goroutine</tt>== | |||
The profile contains the stack traces of all current goroutines. This is how you can pull it from the process. | |||
==<tt></tt>== |
Revision as of 03:43, 16 November 2024
External
Internal
Overview
Profile
A profile is a collection of stack traces showing the call sequences that led to instances of a particular event, such as allocation. Packages can create and maintain their own profiles. The most common use is for tracking resources that must be explicitly closed, such as files or network connections.
Each profile has a unique name.
There are a few predefined profiles:
goroutine
The profile contains the stack traces of all current goroutines. This is how you can pull it from the process.