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

Unified Diff: net/cert/multi_threaded_cert_verifier.cc

Issue 1814463002: [NOT FOR REVIEW] Instrument net/ with trace events. Base URL: https://chromium.googlesource.com/chromium/src.git@profiler
Patch Set: meh Created 4 years, 9 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/cert/crl_set_storage.cc ('k') | net/disk_cache/blockfile/in_flight_backend_io.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/multi_threaded_cert_verifier.cc
diff --git a/net/cert/multi_threaded_cert_verifier.cc b/net/cert/multi_threaded_cert_verifier.cc
index 714b291b2bb0ba10e7b815dea899243b0dbaf236..c85c5d6ea1e9c9f61ae7456b6e82be9b9f43acd4 100644
--- a/net/cert/multi_threaded_cert_verifier.cc
+++ b/net/cert/multi_threaded_cert_verifier.cc
@@ -29,6 +29,8 @@
#include "net/cert/x509_certificate_net_log_param.h"
#include "net/log/net_log.h"
+#include "base/trace_event/trace_event.h"
+
#if defined(USE_NSS_CERTS) || defined(OS_IOS)
#include <private/pprthred.h> // PR_DetachThread
#endif
@@ -234,6 +236,7 @@ void DoVerifyOnWorkerThread(const scoped_refptr<CertVerifyProc>& verify_proc,
const CertificateList& additional_trust_anchors,
int* error,
CertVerifyResult* result) {
+ TRACE_EVENT0("net", "net::DoVerifyOnWorkerThread");
*error = verify_proc->Verify(cert.get(), hostname, ocsp_response, flags,
crl_set.get(), additional_trust_anchors, result);
@@ -359,6 +362,7 @@ class CertVerifierJob {
void OnJobCompleted(
scoped_ptr<MultiThreadedCertVerifier::CachedResult> verify_result) {
+ TRACE_EVENT0("net", "net::CertVerifierJob::OnJobCompleted");
scoped_ptr<CertVerifierJob> keep_alive = cert_verifier_->RemoveJob(this);
LogMetrics(*verify_result);
« no previous file with comments | « net/cert/crl_set_storage.cc ('k') | net/disk_cache/blockfile/in_flight_backend_io.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698