Commit 82780972 authored by Josh Simmons's avatar Josh Simmons Committed by Commit Bot

Clean up NativeSmbFileShare.Re* UMAs

Removed and obsoleted NativeSmbFileShare.ReadDirectoryCount and
NativeSmbFileShare.ReadDirectoryDuration, which are no longer used with
the new smbfs implementation that is now enabled by default.

Extended expiry date for NativeSmbFileShare.RemountResult UMA to M94.

Bug: 1088968
Change-Id: I5272135376d22a3b1312de8e5e50f00c6e6b5181
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2418754
Commit-Queue: Josh Simmons <simmonsjosh@google.com>
Reviewed-by: default avatarAnand K Mistry <amistry@chromium.org>
Reviewed-by: default avatarMark Pearson <mpearson@chromium.org>
Reviewed-by: default avatarZentaro Kavanagh <zentaro@chromium.org>
Cr-Commit-Position: refs/heads/master@{#811559}
parent 0b391961
...@@ -108,15 +108,6 @@ void ConvertEntries(const smbprovider::DirectoryEntryListProto& entries_proto, ...@@ -108,15 +108,6 @@ void ConvertEntries(const smbprovider::DirectoryEntryListProto& entries_proto,
} }
} }
// Metrics recording.
void RecordReadDirectoryCount(int count) {
UMA_HISTOGRAM_COUNTS_100000("NativeSmbFileShare.ReadDirectoryCount", count);
}
void RecordReadDirectoryDuration(const base::TimeDelta& delta) {
UMA_HISTOGRAM_TIMES("NativeSmbFileShare.ReadDirectoryDuration", delta);
}
} // namespace } // namespace
namespace smb_client { namespace smb_client {
...@@ -641,9 +632,6 @@ void SmbFileSystem::HandleRequestReadDirectoryCallback( ...@@ -641,9 +632,6 @@ void SmbFileSystem::HandleRequestReadDirectoryCallback(
uint32_t batch_size = kReadDirectoryInitialBatchSize; uint32_t batch_size = kReadDirectoryInitialBatchSize;
storage::AsyncFileUtil::EntryList entry_list; storage::AsyncFileUtil::EntryList entry_list;
RecordReadDirectoryCount(entries.entries_size());
RecordReadDirectoryDuration(metrics_timer.Elapsed());
// Loop through the entries and send when the desired batch size is hit. // Loop through the entries and send when the desired batch size is hit.
for (const smbprovider::DirectoryEntryProto& entry : entries.entries()) { for (const smbprovider::DirectoryEntryProto& entry : entries.entries()) {
entry_list.emplace_back(base::FilePath(entry.name()), entry_list.emplace_back(base::FilePath(entry.name()),
...@@ -821,10 +809,6 @@ void SmbFileSystem::ProcessReadDirectoryResults( ...@@ -821,10 +809,6 @@ void SmbFileSystem::ProcessReadDirectoryResults(
std::move(metrics_timer)); std::move(metrics_timer));
return; return;
} }
// Read Directory is complete, record metrics.
RecordReadDirectoryCount(entries_count);
RecordReadDirectoryDuration(metrics_timer.Elapsed());
} }
AbortCallback SmbFileSystem::HandleSyncRedundantGetMetadata( AbortCallback SmbFileSystem::HandleSyncRedundantGetMetadata(
......
...@@ -8573,6 +8573,9 @@ reviews. Googlers can read more about this at go/gwsq-gerrit. ...@@ -8573,6 +8573,9 @@ reviews. Googlers can read more about this at go/gwsq-gerrit.
<histogram name="NativeSmbFileShare.ReadDirectoryCount" units="units" <histogram name="NativeSmbFileShare.ReadDirectoryCount" units="units"
expires_after="M85"> expires_after="M85">
<obsolete>
Removed in M87. No longer used with smbfs.
</obsolete>
<owner>zentaro@chromium.org</owner> <owner>zentaro@chromium.org</owner>
<summary> <summary>
The number of entries read when calling ReadDirectory. This is recorded The number of entries read when calling ReadDirectory. This is recorded
...@@ -8582,6 +8585,9 @@ reviews. Googlers can read more about this at go/gwsq-gerrit. ...@@ -8582,6 +8585,9 @@ reviews. Googlers can read more about this at go/gwsq-gerrit.
<histogram name="NativeSmbFileShare.ReadDirectoryDuration" units="ms" <histogram name="NativeSmbFileShare.ReadDirectoryDuration" units="ms"
expires_after="M85"> expires_after="M85">
<obsolete>
Removed in M87. No longer used with smbfs.
</obsolete>
<owner>zentaro@chromium.org</owner> <owner>zentaro@chromium.org</owner>
<summary> <summary>
The duration of ReadDirectory call to SmbProvider in milliseconds. This is The duration of ReadDirectory call to SmbProvider in milliseconds. This is
...@@ -8590,8 +8596,9 @@ reviews. Googlers can read more about this at go/gwsq-gerrit. ...@@ -8590,8 +8596,9 @@ reviews. Googlers can read more about this at go/gwsq-gerrit.
</histogram> </histogram>
<histogram name="NativeSmbFileShare.RemountResult" <histogram name="NativeSmbFileShare.RemountResult"
enum="NativeSmbFileShare_MountResult" expires_after="M85"> enum="NativeSmbFileShare_MountResult" expires_after="M94">
<owner>zentaro@chromium.org</owner> <owner>simmonsjosh@google.com</owner>
<owner>src/chrome/browser/chromeos/smb_client/OWNERS</owner>
<summary> <summary>
The result of the Remount operation during startup. This is recorded after The result of the Remount operation during startup. This is recorded after
the D-Bus call to Remount returns. the D-Bus call to Remount returns.
......
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