#include "base/metrics/persistent_histogram_storage.h"
#include <cinttypes>
#include <string_view>
#include "base/files/file_util.h"
#include "base/files/important_file_writer.h"
#include "base/logging.h"
#include "base/metrics/persistent_histogram_allocator.h"
#include "base/metrics/persistent_memory_allocator.h"
#include "base/process/memory.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
#include "base/time/time.h"
#include "build/build_config.h"
#if BUILDFLAG(IS_WIN)
#include <windows.h>
#include <memoryapi.h>
#elif BUILDFLAG(IS_POSIX) || BUILDFLAG(IS_FUCHSIA)
#include <sys/mman.h>
#endif
namespace {
constexpr size_t kAllocSize = …;
void* AllocateLocalMemory(size_t size) { … }
}
namespace base {
PersistentHistogramStorage::PersistentHistogramStorage(
std::string_view allocator_name,
StorageDirManagement storage_dir_management)
: … { … }
PersistentHistogramStorage::~PersistentHistogramStorage() { … }
}