Profiles attributes

Status: Development

General profiles identification attributes

The attributes described in this section are rather generic. They may be used in any Profiles record they apply to.

Frame types

Description: Describes the origin of a single frame in a Profile.

Attributes:

KeyStabilityRequirement LevelValue TypeDescriptionExample Values
profile.frame.typeDevelopmentRecommendedstringDescribes the interpreter or compiler of a single frame.cpython

profile.frame.type has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.

ValueDescriptionStability
beamErlangDevelopment
cpythonPythonDevelopment
dotnet.NETDevelopment
goGo,Development
jvmJVMDevelopment
kernelKernelDevelopment
nativeCan be one of but not limited to C, C++, Go or Rust. If possible, a more precise value MUST be used.Development
perlPerlDevelopment
phpPHPDevelopment
rubyRubyDevelopment
rustRustDevelopment
v8jsV8JSDevelopment

Compatibility with pprof

Existing pprof formats can be unambiguously mapped to this data model. Reverse mapping from this data model is also possible to the extent that the target profiles format has equivalent capabilities.

The attributes described in this section are specific to support convertibility. They may be used in any Profiles record they apply to.

Attributes:

KeyStabilityRequirement LevelValue TypeDescriptionExample Values
pprof.location.is_foldedDevelopmentRecommendedbooleanProvides an indication that multiple symbols map to this location’s address, for example due to identical code folding by the linker. In that case the line information represents one of the multiple symbols. This field must be recomputed when the symbolization state of the profile changes.
pprof.mapping.has_filenamesDevelopmentRecommendedbooleanIndicates that there are filenames related to this mapping.
pprof.mapping.has_functionsDevelopmentRecommendedbooleanIndicates that there are functions related to this mapping.
pprof.mapping.has_inline_framesDevelopmentRecommendedbooleanIndicates that there are inline frames related to this mapping.
pprof.mapping.has_line_numbersDevelopmentRecommendedbooleanIndicates that there are line numbers related to this mapping.
pprof.profile.commentDevelopmentRecommendedstring[]Free-form text associated with the profile. This field should not be used to store any machine-readable information, it is only for human-friendly content.["hello world", "bazinga"]