Files
cemu-vcpkg/toolsrc/include/vcpkg/metrics.h
nicole mazzuca 0523b5eb57 [vcpkg formatting] Fix format regex (#12369)
* [vcpkg formatting] correct the header regexes

* format
2020-07-11 21:07:51 -07:00

33 lines
1018 B
C++

#pragma once
#include <vcpkg/base/files.h>
#include <vcpkg/base/util.h>
#include <string>
namespace vcpkg::Metrics
{
struct Metrics : Util::ResourceBase
{
void set_send_metrics(bool should_send_metrics);
void set_print_metrics(bool should_print_metrics);
void set_disabled(bool disabled);
void set_user_information(const std::string& user_id, const std::string& first_use_time);
static void init_user_information(std::string& user_id, std::string& first_use_time);
void track_metric(const std::string& name, double value);
void track_buildtime(const std::string& name, double value);
void track_property(const std::string& name, const std::string& value);
void track_feature(const std::string& feature, bool value);
bool metrics_enabled();
void upload(const std::string& payload);
void flush(Files::Filesystem& fs);
};
extern Util::LockGuarded<Metrics> g_metrics;
std::string get_MAC_user();
}