Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 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 #include "platform/tracing/NetworkInstrumentation.h" | |
| 6 | |
| 7 #include "base/trace_event/trace_event.h" | |
| 8 | |
| 9 namespace network_instrumentation { | |
| 10 | |
| 11 const char kResourceLoadTitle[] = "ResourceLoad"; | |
| 12 using network_instrumentation::kNetInstrumentationCategory; | |
| 13 | |
| 14 void beginResourceLoad(unsigned long resourceID, const char* url) { | |
| 15 TRACE_EVENT_ASYNC_BEGIN1(kNetInstrumentationCategory, kResourceLoadTitle, | |
|
chiniforooshan
2016/10/24 19:25:37
I think it is recommended that new codes use nesta
caseq
2016/10/24 22:47:46
+1
dproy
2016/11/03 15:13:37
Done.
| |
| 16 resourceID, "url", TRACE_STR_COPY(url)); | |
|
chiniforooshan
2016/10/24 19:25:37
TRACE_ID_WITH_SCOPE(kBlinkResourceID, TRACE_ID_LOC
dproy
2016/11/03 15:13:37
Done.
| |
| 17 } | |
| 18 | |
| 19 void endResourceLoad(unsigned long resourceID) { | |
| 20 TRACE_EVENT_ASYNC_END0(kNetInstrumentationCategory, kResourceLoadTitle, | |
| 21 resourceID); | |
| 22 } | |
| 23 | |
| 24 } // namespace network_instrumentation | |
| OLD | NEW |