From 6a144160dfb2945b0099071662d2dd392594a24f Mon Sep 17 00:00:00 2001 From: "jamesr@chromium.org" Date: Thu, 18 Oct 2012 08:13:51 +0000 Subject: Use base/metrics/histogram.h instead of WebKit::Platform::histogramCustomCounts in cc The base/ macros are chromium style and marginally more efficient since the histogram bucket lookup is cached in a static local. This produced yet more LOG vs LOG collisions. I rewrote the LayerSorter's logging from WTF channels to use VLOG - it can be turned on by adding "--vmodule=layer_sorter=2" to the command line. BUG=154451,144577 Review URL: https://chromiumcodereview.appspot.com/11209002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162672 0039d316-1c4b-4281-b951-d872f2087c98 --- cc/throttled_texture_uploader.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cc/throttled_texture_uploader.cc') diff --git a/cc/throttled_texture_uploader.cc b/cc/throttled_texture_uploader.cc index f2e95ce..fab8e3d 100644 --- a/cc/throttled_texture_uploader.cc +++ b/cc/throttled_texture_uploader.cc @@ -8,8 +8,8 @@ #include "CCPrioritizedTexture.h" #include "Extensions3DChromium.h" #include "TraceEvent.h" +#include "base/metrics/histogram.h" #include -#include #include #include @@ -184,7 +184,7 @@ void ThrottledTextureUploader::processQueries() break; unsigned usElapsed = m_pendingQueries.first()->value(); - WebKit::Platform::current()->histogramCustomCounts("Renderer4.TextureGpuUploadTimeUS", usElapsed, 0, 100000, 50); + HISTOGRAM_CUSTOM_COUNTS("Renderer4.TextureGpuUploadTimeUS", usElapsed, 0, 100000, 50); if (!m_pendingQueries.first()->isNonBlocking()) m_numBlockingTextureUploads--; -- cgit v1.1