vcpkg/toolsrc/include/metrics.h

21 lines
701 B
C
Raw Normal View History

2016-09-19 11:50:08 +08:00
#pragma once
#include <string>
2017-04-04 05:26:13 +08:00
namespace vcpkg::Metrics
2016-09-19 11:50:08 +08:00
{
2017-04-04 05:41:36 +08:00
void set_send_metrics(bool should_send_metrics);
void set_print_metrics(bool should_print_metrics);
void set_user_information(const std::string& user_id, const std::string& first_use_time);
void init_user_information(std::string& user_id, std::string& first_use_time);
2016-09-19 11:50:08 +08:00
2017-04-04 05:41:36 +08:00
void track_metric(const std::string& name, double value);
void track_property(const std::string& name, const std::string& value);
void track_property(const std::string& name, const std::wstring& value);
bool get_compiled_metrics_enabled();
std::wstring get_SQM_user();
2016-09-19 11:50:08 +08:00
2017-04-04 05:41:36 +08:00
void upload(const std::string& payload);
void flush();
2016-09-19 11:50:08 +08:00
}