| Index: ppapi/c/dev/ppb_trace_event_dev.h
|
| diff --git a/ppapi/c/dev/ppb_trace_event_dev.h b/ppapi/c/dev/ppb_trace_event_dev.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..072e4756a592bd89e72e5e054903212b2e870d19
|
| --- /dev/null
|
| +++ b/ppapi/c/dev/ppb_trace_event_dev.h
|
| @@ -0,0 +1,68 @@
|
| +/* Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| + * Use of this source code is governed by a BSD-style license that can be
|
| + * found in the LICENSE file.
|
| + */
|
| +
|
| +/* From dev/ppb_trace_event_dev.idl modified Wed Dec 5 16:55:45 2012. */
|
| +
|
| +#ifndef PPAPI_C_DEV_PPB_TRACE_EVENT_DEV_H_
|
| +#define PPAPI_C_DEV_PPB_TRACE_EVENT_DEV_H_
|
| +
|
| +#include "ppapi/c/pp_instance.h"
|
| +#include "ppapi/c/pp_macros.h"
|
| +#include "ppapi/c/pp_stdint.h"
|
| +
|
| +#define PPB_TRACE_EVENT_DEV_INTERFACE_0_1 "PPB_Trace_Event(Dev);0.1"
|
| +#define PPB_TRACE_EVENT_DEV_INTERFACE PPB_TRACE_EVENT_DEV_INTERFACE_0_1
|
| +
|
| +/**
|
| + * @file
|
| + * This file defines the <code>PPB_Trace_Event</code> interface. It is meant
|
| + * to be used in plugins as the API that trace macros from trace_event.h use.
|
| + * It is not supported in Native Client currently.
|
| + */
|
| +
|
| +
|
| +/**
|
| + * @addtogroup Interfaces
|
| + * @{
|
| + */
|
| +struct PPB_Trace_Event_Dev_0_1 {
|
| + /**
|
| + * 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.
|
| + */
|
| + void* (*GetCategoryEnabled)(PP_Instance instance, const char* category_name);
|
| + /**
|
| + * Adds a trace event to the platform tracing system.
|
| + */
|
| + int32_t (*AddTraceEvent)(PP_Instance instance,
|
| + 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[],
|
| + int32_t threshold_begin_id,
|
| + int64_t threshold,
|
| + uint8_t flags);
|
| + /**
|
| + * Sets the thread name so it will show up properly in chrome://tracing.
|
| + */
|
| + void (*SetThreadName)(PP_Instance instance, const char* thread_name);
|
| +};
|
| +
|
| +typedef struct PPB_Trace_Event_Dev_0_1 PPB_Trace_Event_Dev;
|
| +/**
|
| + * @}
|
| + */
|
| +
|
| +#endif /* PPAPI_C_DEV_PPB_TRACE_EVENT_DEV_H_ */
|
| +
|
|
|