absl::InitializeSymbolizer

Initializes the program counter symbolizer, given the path of the program (typically obtained through main()s argv[0]). The Abseil symbolizer allows you to read program counters (instruction pointer values) using their human-readable names within output such as stack traces.

Synopsis

Declared in <absl/debugging/symbolize.h>

void
InitializeSymbolizer(char const* argv0);

Description

Example:

int main(int argc, char *argv[]) { absl::InitializeSymbolizer(argv[0]); // Now you can use the symbolizer }

Parameters

NameDescription
argv0Path of the running program, typically argv[0] from main().