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

Unified Diff: chrome/test/perf/url_parse_perftest.cc

Issue 23985006: base: Split logging functions and PerfTimeLogger out of perftimer.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix visitedlink Created 7 years, 3 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 | « base/test/perftimer.h ('k') | chrome_frame/test/perf/chrome_frame_perftest.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/perf/url_parse_perftest.cc
diff --git a/chrome/test/perf/url_parse_perftest.cc b/chrome/test/perf/url_parse_perftest.cc
index 3aadd067921988fe84c03d3ed8325cd535c6e02c..61ebcb1ce296b1b4b1bd46565462f0f7b98bc7eb 100644
--- a/chrome/test/perf/url_parse_perftest.cc
+++ b/chrome/test/perf/url_parse_perftest.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "base/test/perftimer.h"
+#include "base/test/perf_time_logger.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
#include "url/url_canon.h"
@@ -27,7 +27,7 @@ TEST(URLParse, FullURL) {
int url_len = static_cast<int>(strlen(url));
url_parse::Parsed parsed;
- PerfTimeLogger timer("Full_URL_Parse_AMillion");
+ base::PerfTimeLogger timer("Full_URL_Parse_AMillion");
for (int i = 0; i < 1000000; i++)
url_parse::ParseStandardURL(url, url_len, &parsed);
@@ -53,7 +53,7 @@ TEST(URLParse, TypicalURLParse) {
url_parse::Parsed parsed3;
// Do this 1/3 of a million times since we do 3 different URLs.
- PerfTimeLogger parse_timer("Typical_URL_Parse_AMillion");
+ base::PerfTimeLogger parse_timer("Typical_URL_Parse_AMillion");
for (int i = 0; i < 333333; i++) {
url_parse::ParseStandardURL(typical_url1, typical_url1_len, &parsed1);
url_parse::ParseStandardURL(typical_url2, typical_url2_len, &parsed2);
@@ -68,7 +68,7 @@ TEST(URLParse, TypicalURLParseCanon) {
url_parse::Parsed parsed2;
url_parse::Parsed parsed3;
- PerfTimeLogger canon_timer("Typical_Parse_Canon_AMillion");
+ base::PerfTimeLogger canon_timer("Typical_Parse_Canon_AMillion");
url_parse::Parsed out_parsed;
url_canon::RawCanonOutput<1024> output;
for (int i = 0; i < 333333; i++) { // divide by 3 so we get 1M
@@ -96,7 +96,7 @@ TEST(URLParse, TypicalURLParseCanonStdString) {
url_parse::Parsed parsed2;
url_parse::Parsed parsed3;
- PerfTimeLogger canon_timer("Typical_Parse_Canon_AMillion");
+ base::PerfTimeLogger canon_timer("Typical_Parse_Canon_AMillion");
url_parse::Parsed out_parsed;
for (int i = 0; i < 333333; i++) { // divide by 3 so we get 1M
url_parse::ParseStandardURL(typical_url1, typical_url1_len, &parsed1);
@@ -126,7 +126,7 @@ TEST(URLParse, GURL) {
std::string stdurl2(typical_url2);
std::string stdurl3(typical_url3);
- PerfTimeLogger gurl_timer("Typical_GURL_AMillion");
+ base::PerfTimeLogger gurl_timer("Typical_GURL_AMillion");
for (int i = 0; i < 333333; i++) { // divide by 3 so we get 1M
GURL gurl1(stdurl1);
GURL gurl2(stdurl2);
@@ -137,7 +137,7 @@ TEST(URLParse, GURL) {
// TODO(darin): chrome code should not depend on WebCore innards
TEST(URLParse, KURL) {
- PerfTimeLogger timer_kurl("Typical_KURL_AMillion");
+ base::PerfTimeLogger timer_kurl("Typical_KURL_AMillion");
for (int i = 0; i < 333333; i++) { // divide by 3 so we get 1M
WebCore::WebKitKURL kurl1(typical_url1);
WebCore::WebKitKURL kurl2(typical_url2);
« no previous file with comments | « base/test/perftimer.h ('k') | chrome_frame/test/perf/chrome_frame_perftest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698