Commit 5497b84e authored by Varun Khaneja's avatar Varun Khaneja Committed by Commit Bot

Stop logging some histograms that are not being used actively.

Bug: 833716
Change-Id: I7295b8db2b0904ee30f78f3bc452236fefd4f3f0
Reviewed-on: https://chromium-review.googlesource.com/1026558
Commit-Queue: Varun Khaneja <vakh@chromium.org>
Reviewed-by: default avatarJialiu Lin <jialiul@chromium.org>
Reviewed-by: default avatarMark Pearson <mpearson@chromium.org>
Cr-Commit-Position: refs/heads/master@{#553739}
parent c7df6fa7
......@@ -37,7 +37,6 @@ const char kReadFromDisk[] = "SafeBrowsing.V4ReadFromDisk";
const char kApplyUpdate[] = ".ApplyUpdate";
const char kDecodeAdditions[] = ".DecodeAdditions";
const char kDecodeRemovals[] = ".DecodeRemovals";
const char kMergeUpdate[] = ".MergeUpdate";
// Part 3: Represent the unit of value being measured and logged.
const char kResult[] = ".Result";
const char kTime[] = ".Time";
......@@ -104,10 +103,6 @@ void RecordEnumWithAndWithoutSuffix(const std::string& metric,
}
}
void RecordAddUnlumpedHashesTime(base::TimeDelta time) {
UMA_HISTOGRAM_LONG_TIMES("SafeBrowsing.V4AddUnlumpedHashes.Time", time);
}
void RecordApplyUpdateResult(const std::string& base_metric,
ApplyUpdateResult result,
const base::FilePath& file_path) {
......@@ -149,12 +144,6 @@ void RecordDecodeRemovalsTime(const std::string& base_metric,
file_path);
}
void RecordMergeUpdateTime(const std::string& base_metric,
base::TimeDelta time,
const base::FilePath& file_path) {
RecordTimeWithAndWithoutSuffix(base_metric + kMergeUpdate, time, file_path);
}
void RecordStoreReadResult(StoreReadResult result) {
UMA_HISTOGRAM_ENUMERATION("SafeBrowsing.V4StoreRead.Result", result,
STORE_READ_RESULT_MAX);
......@@ -329,7 +318,6 @@ ApplyUpdateResult V4Store::ProcessUpdate(
expected_checksum = response->checksum().sha256();
}
TimeTicks before = TimeTicks::Now();
if (delay_checksum_check) {
DCHECK(hash_prefix_map_old.empty());
DCHECK(!raw_removals);
......@@ -350,7 +338,6 @@ ApplyUpdateResult V4Store::ProcessUpdate(
return apply_update_result;
}
}
RecordMergeUpdateTime(metric, TimeTicks::Now() - before, store_path_);
state_ = response->new_client_state();
return APPLY_UPDATE_SUCCESS;
......@@ -483,11 +470,9 @@ ApplyUpdateResult V4Store::AddUnlumpedHashes(PrefixSize prefix_size,
return ADDITIONS_SIZE_UNEXPECTED_FAILURE;
}
TimeTicks before = TimeTicks::Now();
// TODO(vakh): Figure out a way to avoid the following copy operation.
(*additions_map)[prefix_size] =
std::string(raw_hashes_begin, raw_hashes_begin + raw_hashes_length);
RecordAddUnlumpedHashesTime(TimeTicks::Now() - before);
return APPLY_UPDATE_SUCCESS;
}
......
......@@ -77573,6 +77573,9 @@ http://cs/file:chrome/histograms.xml - but prefer this file for new entries.
</histogram>
<histogram name="SafeBrowsing.V4AddUnlumpedHashes.Time" units="ms">
<obsolete>
Deprecated 04/25/2018 since it was not being used actively or monitored.
</obsolete>
<owner>vakh@chromium.org</owner>
<summary>
Records the time it takes to copy the SafeBrowsing list update as a string,
......@@ -77839,6 +77842,9 @@ http://cs/file:chrome/histograms.xml - but prefer this file for new entries.
</histogram>
<histogram name="SafeBrowsing.V4ProcessFullUpdate.MergeUpdate.Time" units="ms">
<obsolete>
Deprecated 04/25/2018 since it was not being used actively or monitored.
</obsolete>
<owner>vakh@chromium.org</owner>
<summary>
Records the time it takes to merge the existing state of the list with a
......@@ -77923,6 +77929,9 @@ http://cs/file:chrome/histograms.xml - but prefer this file for new entries.
<histogram name="SafeBrowsing.V4ProcessPartialUpdate.MergeUpdate.Time"
units="ms">
<obsolete>
Deprecated 04/25/2018 since it was not being used actively or monitored.
</obsolete>
<owner>vakh@chromium.org</owner>
<summary>
Records the time it takes to merge the existing state of the list with a
......@@ -77984,6 +77993,9 @@ http://cs/file:chrome/histograms.xml - but prefer this file for new entries.
</histogram>
<histogram name="SafeBrowsing.V4ReadFromDisk.MergeUpdate.Time" units="ms">
<obsolete>
Deprecated 04/25/2018 since it was not being used actively or monitored.
</obsolete>
<owner>vakh@chromium.org</owner>
<summary>
Records the time it takes to perform in-memory copy of the map of raw hash
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment