Pepper_31_C_interfaces
Public Attributes | List of all members
PPB_Trace_Event_Dev_0_2 Struct Reference

#include <ppb_trace_event_dev.h>

Collaboration diagram for PPB_Trace_Event_Dev_0_2:
Collaboration graph

Public Attributes

void *(* GetCategoryEnabled )(const char *category_name)
 
void(* AddTraceEvent )(int8_t phase, const void *category_enabled, const char *name, uint64_t id, uint32_t num_args, const char *arg_names[], const uint8_t arg_types[], const uint64_t arg_values[], uint8_t flags)
 
void(* AddTraceEventWithThreadIdAndTimestamp )(int8_t phase, const void *category_enabled, const char *name, uint64_t id, int32_t thread_id, PP_TraceEventTime timestamp, uint32_t num_args, const char *arg_names[], const uint8_t arg_types[], const uint64_t arg_values[], uint8_t flags)
 
PP_TraceEventTime(* Now )(void)
 
void(* SetThreadName )(const char *thread_name)
 

Detailed Description

Definition at line 41 of file ppb_trace_event_dev.h.

Member Data Documentation

void(* PPB_Trace_Event_Dev_0_2::AddTraceEvent)(int8_t phase, const void *category_enabled, const char *name, uint64_t id, uint32_t num_args, const char *arg_names[], const uint8_t arg_types[], const uint64_t arg_values[], uint8_t flags)

Adds a trace event to the platform tracing system. This function call is usually the result of a TRACE_* macro from trace_event.h when tracing and the category of the particular trace are enabled. It is not advisable to call this function on its own; it is really only meant to be used by the trace macros.

Definition at line 59 of file ppb_trace_event_dev.h.

void(* PPB_Trace_Event_Dev_0_2::AddTraceEventWithThreadIdAndTimestamp)(int8_t phase, const void *category_enabled, const char *name, uint64_t id, int32_t thread_id, PP_TraceEventTime timestamp, uint32_t num_args, const char *arg_names[], const uint8_t arg_types[], const uint64_t arg_values[], uint8_t flags)

Version of the above interface that allows specifying a custom thread id and timestamp. This is useful for when tracing data cannot be registered in real time. For example, this could be used by storing timestamps internally and then registering the events retroactively.

Definition at line 74 of file ppb_trace_event_dev.h.

void*(* PPB_Trace_Event_Dev_0_2::GetCategoryEnabled)(const char *category_name)

Gets a pointer to a character for identifying a category name in the tracing system as well as for being able to early exit in client-side tracing code.

NB: This mem_t return value should technically be const, but return values for Pepper IDL of mem_t type are not const. The same is true for the arg |category_enabled| for AddTraceEvent.

Definition at line 51 of file ppb_trace_event_dev.h.

PP_TraceEventTime(* PPB_Trace_Event_Dev_0_2::Now)(void)

Get the current clock value. Since this uses the same function as the trace events use internally, it can be used to create events with explicit time stamps.

Definition at line 90 of file ppb_trace_event_dev.h.

void(* PPB_Trace_Event_Dev_0_2::SetThreadName)(const char *thread_name)

Sets the thread name of the calling thread in the tracing system so it will show up properly in chrome://tracing.

Definition at line 95 of file ppb_trace_event_dev.h.


The documentation for this struct was generated from the following file: