OLD | NEW |
---|---|
(Empty) | |
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
2 * Use of this source code is governed by a BSD-style license that can be | |
3 * found in the LICENSE file. | |
4 */ | |
5 | |
6 /** | |
7 * This file defines the <code>PPB_Trace_Event</code> interface. It is meant | |
8 * to be used in plugins as the API that trace macros from trace_event.h use. | |
9 * It is not supported in Native Client currently. | |
10 */ | |
11 | |
12 label Chrome { | |
13 M25 = 0.1 | |
14 }; | |
15 | |
16 interface PPB_Trace_Event_Dev { | |
17 /** | |
18 * Gets a pointer to a character for identifying a category name in the | |
19 * tracing system as well as for being able to early exit in client-side | |
20 * tracing code. | |
21 * | |
22 * NB: This mem_t return value should technically be const, but return values | |
23 * for Pepper IDL of mem_t type are not const. The same is true for the arg | |
24 * |category_enabled| for AddTraceEvent. | |
25 */ | |
26 mem_t GetCategoryEnabled([in] PP_Instance instance, | |
jbauman
2012/12/14 00:36:07
Do we actually need the instance parameters on the
brettw
2012/12/15 00:35:31
I think all pepper interfaces need a PP_Instance o
elijahtaylor1
2012/12/18 20:40:31
I'm not sure if I understand you Brett. Why is it
| |
27 [in] cstr_t category_name); | |
28 | |
29 /** | |
30 * Adds a trace event to the platform tracing system. | |
31 */ | |
32 int32_t AddTraceEvent( | |
33 [in] PP_Instance instance, | |
34 [in] int8_t phase, | |
35 [in] mem_t category_enabled, | |
36 [in] cstr_t name, | |
37 [in] uint64_t id, | |
38 [in] uint32_t num_args, | |
39 [in, size_as=num_args] str_t[] arg_names, | |
40 [in, size_as=num_args] uint8_t[] arg_types, | |
41 [in, size_as=num_args] uint64_t[] arg_values, | |
42 [in] int32_t threshold_begin_id, | |
43 [in] int64_t threshold, | |
44 [in] uint8_t flags); | |
45 | |
46 /** | |
47 * Sets the thread name so it will show up properly in chrome://tracing. | |
48 */ | |
49 void SetThreadName([in] PP_Instance instance, [in] cstr_t thread_name); | |
50 }; | |
OLD | NEW |