Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Commit

Permalink
included recent suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
petethepig committed Jul 26, 2023
1 parent b016676 commit 8cd1e60
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 31 deletions.
16 changes: 4 additions & 12 deletions opentelemetry/proto/profiles/v1/alternatives/arrays/arrays.proto
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,12 @@ message Mapping {
// it could be the contents of the .note.gnu.build-id field.
uint32 build_id_index = 5; // Index into string table

enum SymbolicInfo {
SYMBOLIC_INFO_UNSPECIFIED = 0;
SYMBOLIC_INFO_FULL = 1;
SYMBOLIC_INFO_FUNCTIONS_ONLY = 2;
SYMBOLIC_INFO_NO_INLINE_FRAMES = 3;
enum SymbolFidelity {
SYMBOL_FIDELITY_UNSPECIFIED = 0;
SYMBOL_FIDELITY_FULL = 1;
}

SymbolicInfo symbolic_info = 6;
SymbolFidelity symbolic_info = 6;

// TODO(@petethepig): I wonder if we need something a little more specialized here
repeated uint32 attribute_set_indices = 7;
Expand All @@ -136,12 +134,6 @@ message Location {
// line[0].function_name == "memcpy"
// line[1].function_name == "printf"
repeated Line line = 3;
// Provides 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 above represents one of the multiple
// symbols. This field must be recomputed when the symbolization state of the
// profile changes.
bool is_folded = 4;

// TODO(@petethepig): I wonder if we need something a little more specialized here
repeated uint32 attribute_set_indices = 5;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,6 @@ message Location {
// line[0].function_name == "memcpy"
// line[1].function_name == "printf"
repeated Line line = 3;
// Provides 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 above represents one of the multiple
// symbols. This field must be recomputed when the symbolization state of the
// profile changes.
bool is_folded = 4;
}

// borrowed from pprof proto
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,12 @@ message Mapping {
// it could be the contents of the .note.gnu.build-id field.
uint32 build_id_index = 5; // Index into string table

enum SymbolicInfo {
SYMBOLIC_INFO_UNSPECIFIED = 0;
SYMBOLIC_INFO_FULL = 1;
SYMBOLIC_INFO_FUNCTIONS_ONLY = 2;
SYMBOLIC_INFO_NO_INLINE_FRAMES = 3;
enum SymbolFidelity {
SYMBOL_FIDELITY_UNSPECIFIED = 0;
SYMBOL_FIDELITY_FULL = 1;
}

SymbolicInfo symbolic_info = 6;
SymbolFidelity symbolic_info = 6;

// TODO(@petethepig): I wonder if we need something a little more specialized here
repeated uint32 attribute_set_indices = 7;
Expand All @@ -127,13 +125,6 @@ message Location {
// line[0].function_name == "memcpy"
// line[1].function_name == "printf"
repeated Line line = 3;
// Provides 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 above represents one of the multiple
// symbols. This field must be recomputed when the symbolization state of the
// profile changes.
bool is_folded = 4;

// TODO(@petethepig): I wonder if we need something a little more specialized here
repeated uint32 attribute_set_indices = 5;
}
Expand Down

0 comments on commit 8cd1e60

Please sign in to comment.