Tool Functions
The Tracer traces the running status of C and C++ applications. It records the call stack and performance information during application running with low performance overhead.
To run the tool, link to the libstdc++.so library whose version is 6.0.28 or later and the glibc library whose version is 2.17 or later.
Prerequisites
- You have installed the Tracer. See Installing a Compressed Package (.tar.gz).
- The tool is presented in an independent package (logger_device_arm.tar.gz). Decompress the package and switch to the tool directory.
Command Function
- The Tracer parses the user-defined configuration file (.ini) and generates a header file. Users can write header file APIs into program code to record log information.
- In addition, the Tracer integrates the CTF deserialization function to parse and output log files.
Syntax
1 | ./tracelog [-h | --help] COMMAND [ARGS] |
Parameter Description
Parameter |
Option |
Description |
|---|---|---|
-h/--help |
- |
Obtains help information. |
generator |
- |
Generates the code submodule. |
parser |
- |
Log parsing submodule. |
Example
View the functions of the JVM Jitter Detector:
1 | ./tracelog -h
|
Command output:
1 2 3 4 5 6 7 8 | Usage: tracelog [-h | --help] COMMAND [ARGS] The most commonly used tracelog sub commands are: help Get help information generator Run a command for generate a header file parser Run a command for parsing logs See 'tracelog COMMAND --help' for more information on a specific command. |
Parent topic: Tracer