OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Trace events are for tracking application performance. | 5 // Trace events are for tracking application performance. |
6 // | 6 // |
7 // Events are issued against categories. Whereas LOG's | 7 // Events are issued against categories. Whereas LOG's |
8 // categories are statically defined, TRACE categories are created | 8 // categories are statically defined, TRACE categories are created |
9 // implicitly with a string. For example: | 9 // implicitly with a string. For example: |
10 // GPU_TRACE_EVENT_INSTANT0("MY_SUBSYSTEM", "SomeImportantEvent") | 10 // GPU_TRACE_EVENT_INSTANT0("MY_SUBSYSTEM", "SomeImportantEvent") |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 #define GPU_TRACE_END0(x0, x1) { } | 58 #define GPU_TRACE_END0(x0, x1) { } |
59 #define GPU_TRACE_END1(x0, x1, x2, x3) { } | 59 #define GPU_TRACE_END1(x0, x1, x2, x3) { } |
60 #define GPU_TRACE_END2(x0, x1, x2, x3, x4, x5) { } | 60 #define GPU_TRACE_END2(x0, x1, x2, x3, x4, x5) { } |
61 | 61 |
62 #else | 62 #else |
63 | 63 |
64 #include "build/build_config.h" | 64 #include "build/build_config.h" |
65 | 65 |
66 #include <string> | 66 #include <string> |
67 | 67 |
| 68 #include "base/callback_old.h" |
68 #include "base/memory/scoped_ptr.h" | 69 #include "base/memory/scoped_ptr.h" |
69 #include "base/atomicops.h" | 70 #include "base/atomicops.h" |
70 #include "base/memory/scoped_vector.h" | 71 #include "base/memory/scoped_vector.h" |
71 #include "base/memory/singleton.h" | 72 #include "base/memory/singleton.h" |
72 #include "base/time.h" | 73 #include "base/time.h" |
73 #include "base/timer.h" | 74 #include "base/timer.h" |
74 #include "base/callback.h" | 75 #include "base/callback.h" |
75 #include "base/string_util.h" | 76 #include "base/string_util.h" |
76 #include <vector> | 77 #include <vector> |
77 | 78 |
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
430 int line_; | 431 int line_; |
431 TraceCategory* category_; | 432 TraceCategory* category_; |
432 const char* name_; | 433 const char* name_; |
433 }; | 434 }; |
434 | 435 |
435 } // namespace internal | 436 } // namespace internal |
436 | 437 |
437 } // namespace gpu | 438 } // namespace gpu |
438 #endif // __native_client__ | 439 #endif // __native_client__ |
439 #endif // GPU_TRACE_EVENT_H_ | 440 #endif // GPU_TRACE_EVENT_H_ |
OLD | NEW |