tracetools_trace.tools.path module
- tracetools_trace.tools.path.append_timestamp(session_name_base: str) str
Append timestamp to base session name.
- Parameters:
session_name_base – the base name of the tracing session
- Returns:
the session name with timestamp
- tracetools_trace.tools.path.get_tracing_directory() str
Get tracing directory path.
Uses various environment variables to construct a tracing directory path. Use $ROS_TRACE_DIR if ROS_TRACE_DIR is set and not empty. Otherwise, use $ROS_HOME/tracing, using ~/.ros for ROS_HOME if not set or if empty. It also expands ‘~’ to the current user’s home directory, and normalizes the path, converting the path separator if necessary.
- Returns:
the path to the tracing directory