#include "components/bookmarks/common/bookmark_metrics.h"
#include <string>
#include "base/logging.h"
#include "base/metrics/histogram_functions.h"
#include "base/metrics/user_metrics.h"
#include "base/strings/strcat.h"
#include "components/bookmarks/common/url_load_stats.h"
namespace bookmarks::metrics {
namespace {
const int kBytesPerKB = …;
void RecordBookmarkParentFolderType(BookmarkFolderTypeForUMA parent) { … }
std::string GetStorageStateSuffixForMetrics(StorageStateForUma storage_state) { … }
std::string GetStorageFileSuffixForMetrics(StorageFileForUma storage_file) { … }
}
void RecordUrlBookmarkAdded(BookmarkFolderTypeForUMA parent,
StorageStateForUma storage_state) { … }
void RecordBookmarkFolderAdded(BookmarkFolderTypeForUMA parent,
StorageStateForUma storage_state) { … }
void RecordBookmarkRemoved(BookmarkEditSource source) { … }
void RecordBookmarkOpened(base::Time now,
base::Time date_last_used,
base::Time date_added,
StorageStateForUma storage_state) { … }
void RecordBookmarkMovedTo(BookmarkFolderTypeForUMA new_parent) { … }
void RecordTimeSinceLastScheduledSave(base::TimeDelta delta) { … }
void RecordTimeToLoadAtStartup(base::TimeDelta delta) { … }
void RecordFileSizeAtStartup(int64_t total_bytes) { … }
void RecordURLEdit(BookmarkEditSource source) { … }
void RecordTitleEdit(BookmarkEditSource source) { … }
void RecordUrlLoadStatsOnProfileLoad(const UrlLoadStats& stats) { … }
void RecordCloneBookmarkNode(int num_cloned) { … }
void RecordAverageNodeSizeAtStartup(size_t size_in_bytes) { … }
void RecordIdsReassignedOnProfileLoad(StorageFileForUma storage_file,
bool ids_reassigned) { … }
}