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

Side by Side Diff: third_party/WebKit/Source/platform/tracing/NetworkInstrumentation.cpp

Issue 2444783002: Add trace event for complete network request (Closed)
Patch Set: Created 4 years, 1 month 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 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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698