```cmake
# Others settings
find_library(
# Sets the name of the path variable.
hitrace-lib
# Specifies the name of the NDK library that
# you want CMake to locate.
hitrace_ndk.z
#libhitrace_ndk.z
)
target_link_libraries(nativecode PUBLIC
# Other used libraries
${hitrace-lib}
)
```
| Option | Description |
| ------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| -h, --help | Views the help text for bytrace. |
| -b*n*, --buffer_size *n* | Sets the size of the buffer (KB) for storing and reading traces. The default buffer size is 2048 KB. |
| -t*n*, --time *n* | Sets the bytrace uptime in seconds, which depends on the time required for analysis. |
| --trace_clock*clock* | Sets the type of the clock for adding a timestamp to a trace, which can be**boot** (default), **global**, **mono**, **uptime**, or **perf**. |
| --trace_begin | Starts capturing traces. |
| --trace_dump | Dumps traces to a specified position (console where you run this command by default). |
| --trace_finish | Stops capturing traces and dumps traces to a specified position (console where you run this command by default). |
| -l, --list_categories | Lists the bytrace categories supported by the device. |
| --overwrite | Sets the action to take when the buffer is full. If this option is used, the latest traces are discarded; if this option is not used, the earliest traces are discarded (default). |
| -o*filename*, --output *filename* | Outputs traces to a specified file. |
| -z | Compresses a captured trace |