2016-09-19 11:50:08 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
namespace vcpkg
|
|
|
|
{
|
|
|
|
void SetSendMetrics(bool should_send_metrics);
|
|
|
|
void SetPrintMetrics(bool should_print_metrics);
|
|
|
|
void SetUserInformation(const std::string& user_id, const std::string& first_use_time);
|
|
|
|
void InitUserInformation(std::string& user_id, std::string& first_use_time);
|
|
|
|
|
|
|
|
void TrackMetric(const std::string& name, double value);
|
|
|
|
void TrackProperty(const std::string& name, const std::string& value);
|
|
|
|
void TrackProperty(const std::string& name, const std::wstring& value);
|
|
|
|
bool GetCompiledMetricsEnabled();
|
2016-12-13 06:03:13 +08:00
|
|
|
std::wstring GetSQMUser();
|
2016-09-19 11:50:08 +08:00
|
|
|
|
|
|
|
void Upload(const std::string& payload);
|
|
|
|
void Flush();
|
|
|
|
}
|