Class TracingSession¶
Defined in File utils.h
Class Documentation¶
-
class TracingSession¶
Tracing session for performance profiling.
TracingSession manages Perfetto tracing for profiling media operations.
Public Functions
-
explicit TracingSession(void *sess = nullptr)¶
Construct a tracing session.
- Parameters:
sess – Optional session pointer.
-
TracingSession(const TracingSession&) = delete¶
Deleted copy constructor.
-
TracingSession &operator=(const TracingSession&) = delete¶
Deleted copy assignment operator.
-
TracingSession(TracingSession &&other) noexcept¶
Move constructor.
-
TracingSession &operator=(TracingSession &&other) noexcept¶
Move assignment operator.
-
~TracingSession()¶
Destructor.
-
void init()¶
Initialize the tracing session.
-
void config(const std::string &process_name)¶
Configure the tracing session.
- Parameters:
process_name – Name of the process being traced.
-
void start(int fd, int buffer_size_in_kb)¶
Start tracing to a file descriptor.
- Parameters:
fd – File descriptor to write trace data.
buffer_size_in_kb – Buffer size in kilobytes.
-
void stop()¶
Stop tracing.
-
explicit TracingSession(void *sess = nullptr)¶