OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 #include "base/debug/trace_event_impl.h" | 5 #include "base/debug/trace_event_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/base_switches.h" | 9 #include "base/base_switches.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 1183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1194 const char** arg_names, | 1194 const char** arg_names, |
1195 const unsigned char* arg_types, | 1195 const unsigned char* arg_types, |
1196 const unsigned long long* arg_values, | 1196 const unsigned long long* arg_values, |
1197 scoped_ptr<ConvertableToTraceFormat> convertable_values[], | 1197 scoped_ptr<ConvertableToTraceFormat> convertable_values[], |
1198 unsigned char flags) { | 1198 unsigned char flags) { |
1199 DCHECK(name); | 1199 DCHECK(name); |
1200 | 1200 |
1201 if (flags & TRACE_EVENT_FLAG_MANGLE_ID) | 1201 if (flags & TRACE_EVENT_FLAG_MANGLE_ID) |
1202 id ^= process_id_hash_; | 1202 id ^= process_id_hash_; |
1203 | 1203 |
| 1204 #if defined (OS_WIN) |
| 1205 TraceEventETWProvider::TraceWithArgs( |
| 1206 GetCategoryGroupName(category_group_enabled), name, phase, |
| 1207 reinterpret_cast<void*>(id), |
| 1208 num_args, arg_names, arg_types, arg_values, convertable_values); |
| 1209 #endif |
| 1210 |
1204 #if defined(OS_ANDROID) | 1211 #if defined(OS_ANDROID) |
1205 SendToATrace(phase, GetCategoryGroupName(category_group_enabled), name, id, | 1212 SendToATrace(phase, GetCategoryGroupName(category_group_enabled), name, id, |
1206 num_args, arg_names, arg_types, arg_values, convertable_values, | 1213 num_args, arg_names, arg_types, arg_values, convertable_values, |
1207 flags); | 1214 flags); |
1208 #endif | 1215 #endif |
1209 | 1216 |
1210 if (!IsCategoryGroupEnabled(category_group_enabled)) | 1217 if (!IsCategoryGroupEnabled(category_group_enabled)) |
1211 return; | 1218 return; |
1212 | 1219 |
1213 TimeTicks now = timestamp - time_offset_; | 1220 TimeTicks now = timestamp - time_offset_; |
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1711 0, // num_args | 1718 0, // num_args |
1712 NULL, // arg_names | 1719 NULL, // arg_names |
1713 NULL, // arg_types | 1720 NULL, // arg_types |
1714 NULL, // arg_values | 1721 NULL, // arg_values |
1715 NULL, // convertable values | 1722 NULL, // convertable values |
1716 TRACE_EVENT_FLAG_NONE); // flags | 1723 TRACE_EVENT_FLAG_NONE); // flags |
1717 } | 1724 } |
1718 } | 1725 } |
1719 | 1726 |
1720 } // namespace trace_event_internal | 1727 } // namespace trace_event_internal |
OLD | NEW |