summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-23 21:42:13 +0000
committershess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-23 21:42:13 +0000
commit4ccec302ef19de702a65bf5860809d33034f0df9 (patch)
treec563dc5693ece2c7421b789cfc6135335f2a2daa
parente86e7cb370a9b4df3ab4f1a18968423ab0bab2b4 (diff)
downloadchromium_src-4ccec302ef19de702a65bf5860809d33034f0df9.zip
chromium_src-4ccec302ef19de702a65bf5860809d33034f0df9.tar.gz
chromium_src-4ccec302ef19de702a65bf5860809d33034f0df9.tar.bz2
Merge 59898 - Suppress safe-browsing perf logging.
Under SB_DLOG(), so easy to enable for those as wants it back. BUG=none TEST=none Review URL: http://codereview.chromium.org/3389019 TBR=shess@chromium.org Review URL: http://codereview.chromium.org/3404019 git-svn-id: svn://svn.chromium.org/chrome/branches/517/src@60353 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/safe_browsing/bloom_filter_unittest.cc3
-rw-r--r--chrome/browser/safe_browsing/safe_browsing_database_bloom_unittest.cc12
-rw-r--r--chrome/browser/safe_browsing/safe_browsing_database_unittest.cc12
3 files changed, 13 insertions, 14 deletions
diff --git a/chrome/browser/safe_browsing/bloom_filter_unittest.cc b/chrome/browser/safe_browsing/bloom_filter_unittest.cc
index bf3a123..df44235 100644
--- a/chrome/browser/safe_browsing/bloom_filter_unittest.cc
+++ b/chrome/browser/safe_browsing/bloom_filter_unittest.cc
@@ -74,7 +74,7 @@ TEST(SafeBrowsingBloomFilter, BloomFilterUse) {
double fp_rate = found_count * 100.0 / count;
CHECK(fp_rate < 5.0);
- LOG(INFO) << "For safe browsing bloom filter of size " << count <<
+ SB_DLOG(INFO) << "For safe browsing bloom filter of size " << count <<
", the FP rate was " << fp_rate << " %";
}
@@ -114,4 +114,3 @@ TEST(SafeBrowsingBloomFilter, BloomFilterFile) {
file_util::Delete(filter_path, false);
}
-
diff --git a/chrome/browser/safe_browsing/safe_browsing_database_bloom_unittest.cc b/chrome/browser/safe_browsing/safe_browsing_database_bloom_unittest.cc
index f7dcdae..a7a86f0 100644
--- a/chrome/browser/safe_browsing/safe_browsing_database_bloom_unittest.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_database_bloom_unittest.cc
@@ -925,7 +925,7 @@ namespace {
void PrintStat(const char* name) {
int value = StatsTable::current()->GetCounterValue(name);
- LOG(INFO) << StringPrintf("%s %d", name, value);
+ SB_DLOG(INFO) << StringPrintf("%s %d", name, value);
}
FilePath GetFullSBDataPath(const FilePath& path) {
@@ -989,16 +989,16 @@ void PerformUpdate(SafeBrowsingDatabaseBloom* database,
gotIOCounters = gotIOCounters && metric->GetIOCounters(&after);
if (gotIOCounters) {
- LOG(INFO) << StringPrintf("I/O Read Bytes: %" PRIu64,
+ SB_DLOG(INFO) << StringPrintf("I/O Read Bytes: %" PRIu64,
after.ReadTransferCount - before.ReadTransferCount);
- LOG(INFO) << StringPrintf("I/O Write Bytes: %" PRIu64,
+ SB_DLOG(INFO) << StringPrintf("I/O Write Bytes: %" PRIu64,
after.WriteTransferCount - before.WriteTransferCount);
- LOG(INFO) << StringPrintf("I/O Reads: %" PRIu64,
+ SB_DLOG(INFO) << StringPrintf("I/O Reads: %" PRIu64,
after.ReadOperationCount - before.ReadOperationCount);
- LOG(INFO) << StringPrintf("I/O Writes: %" PRIu64,
+ SB_DLOG(INFO) << StringPrintf("I/O Writes: %" PRIu64,
after.WriteOperationCount - before.WriteOperationCount);
}
- LOG(INFO) << StringPrintf("Finished in %" PRId64 " ms",
+ SB_DLOG(INFO) << StringPrintf("Finished in %" PRId64 " ms",
(Time::Now() - before_time).InMilliseconds());
PrintStat("c:SB.HostSelect");
diff --git a/chrome/browser/safe_browsing/safe_browsing_database_unittest.cc b/chrome/browser/safe_browsing/safe_browsing_database_unittest.cc
index bde0606..a3ec50f 100644
--- a/chrome/browser/safe_browsing/safe_browsing_database_unittest.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_database_unittest.cc
@@ -930,7 +930,7 @@ namespace {
void PrintStat(const char* name) {
int value = StatsTable::current()->GetCounterValue(name);
- LOG(INFO) << StringPrintf("%s %d", name, value);
+ SB_DLOG(INFO) << StringPrintf("%s %d", name, value);
}
FilePath GetFullSBDataPath(const FilePath& path) {
@@ -995,16 +995,16 @@ void PerformUpdate(SafeBrowsingDatabaseNew* database,
gotIOCounters = gotIOCounters && metric->GetIOCounters(&after);
if (gotIOCounters) {
- LOG(INFO) << StringPrintf("I/O Read Bytes: %" PRIu64,
+ SB_DLOG(INFO) << StringPrintf("I/O Read Bytes: %" PRIu64,
after.ReadTransferCount - before.ReadTransferCount);
- LOG(INFO) << StringPrintf("I/O Write Bytes: %" PRIu64,
+ SB_DLOG(INFO) << StringPrintf("I/O Write Bytes: %" PRIu64,
after.WriteTransferCount - before.WriteTransferCount);
- LOG(INFO) << StringPrintf("I/O Reads: %" PRIu64,
+ SB_DLOG(INFO) << StringPrintf("I/O Reads: %" PRIu64,
after.ReadOperationCount - before.ReadOperationCount);
- LOG(INFO) << StringPrintf("I/O Writes: %" PRIu64,
+ SB_DLOG(INFO) << StringPrintf("I/O Writes: %" PRIu64,
after.WriteOperationCount - before.WriteOperationCount);
}
- LOG(INFO) << StringPrintf("Finished in %" PRId64 " ms",
+ SB_DLOG(INFO) << StringPrintf("Finished in %" PRId64 " ms",
(Time::Now() - before_time).InMilliseconds());
PrintStat("c:SB.HostSelect");