From 09e7ebe02c71d923e4655a0ad5e151b97344f091 Mon Sep 17 00:00:00 2001 From: vadimt Date: Wed, 29 Oct 2014 15:10:41 -0700 Subject: Switching profiler instrumentations from ScopedProfile to ScopedTracker. This will disable the instrumentations in all channels except Canary, and developer build. Instrumentations are only enabled in Browser process. This will prevent Stable from sending increased amounts of UMA logs. Also, this will let us observe "true" (untouched by instrumentations) jankiness numbers every week in Dev channel. BUG=401560 Review URL: https://codereview.chromium.org/686963002 Cr-Commit-Position: refs/heads/master@{#301950} --- net/http/http_stream_parser.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'net/http/http_stream_parser.cc') diff --git a/net/http/http_stream_parser.cc b/net/http/http_stream_parser.cc index 8cd876f..b998986 100644 --- a/net/http/http_stream_parser.cc +++ b/net/http/http_stream_parser.cc @@ -7,7 +7,7 @@ #include "base/bind.h" #include "base/compiler_specific.h" #include "base/logging.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/strings/string_util.h" #include "base/values.h" #include "net/base/io_buffer.h" @@ -358,8 +358,8 @@ int HttpStreamParser::ReadResponseBody(IOBuffer* buf, int buf_len, } void HttpStreamParser::OnIOComplete(int result) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/418183 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/418183 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "418183 DidCompleteReadWrite => HttpStreamParser::OnIOComplete")); @@ -368,8 +368,8 @@ void HttpStreamParser::OnIOComplete(int result) { // The client callback can do anything, including destroying this class, // so any pending callback must be issued after everything else is done. if (result != ERR_IO_PENDING && !callback_.is_null()) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/424359 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/424359 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "424359 HttpStreamParser::OnIOComplete callback")); @@ -380,8 +380,8 @@ void HttpStreamParser::OnIOComplete(int result) { } int HttpStreamParser::DoLoop(int result) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/424359 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/424359 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION("424359 HttpStreamParser::DoLoop")); do { -- cgit v1.1