Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Side by Side Diff: ppapi/api/dev/ppb_trace_event_dev.idl

Issue 11464005: Add trace event Pepper API (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Feedback Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 */
10
11 label Chrome {
12 M25 = 0.1
13 };
14
15 interface PPB_Trace_Event_Dev {
16 /**
17 * Gets a pointer to a character for identifying a category name in the
18 * tracing system as well as for being able to early exit in client-side
19 * tracing code.
20 *
21 * NB: This mem_t return value should technically be const, but return values
22 * for Pepper IDL of mem_t type are not const. The same is true for the arg
23 * |category_enabled| for AddTraceEvent.
24 */
25 mem_t GetCategoryEnabled([in] cstr_t category_name);
26
27 /**
28 * Adds a trace event to the platform tracing system.
brettw 2012/12/19 22:29:25 Can this be documented more fully? These API files
elijahtaylor1 2012/12/21 00:59:16 Done. I would like to include a copy of trace_eve
29 */
30 int32_t AddTraceEvent(
31 [in] int8_t phase,
32 [in] mem_t category_enabled,
33 [in] cstr_t name,
34 [in] uint64_t id,
35 [in] uint32_t num_args,
36 [in, size_as=num_args] str_t[] arg_names,
37 [in, size_as=num_args] uint8_t[] arg_types,
38 [in, size_as=num_args] uint64_t[] arg_values,
39 [in] int32_t threshold_begin_id,
40 [in] int64_t threshold,
41 [in] uint8_t flags);
42
43 /**
44 * Sets the thread name so it will show up properly in chrome://tracing.
brettw 2012/12/19 22:29:25 Can you put "calling thread" or something in here
elijahtaylor1 2012/12/21 00:59:16 Done.
45 */
46 void SetThreadName([in] cstr_t thread_name);
47 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698