Skip to content

Commit

Permalink
[vcpkg] Enable metrics for builtin-baseline & overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
ras0219 committed Jan 11, 2021
1 parent 904ae01 commit 63ffdc3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions toolsrc/src/vcpkg/install.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -849,8 +849,13 @@ namespace vcpkg::Install
{
auto verprovider = PortFileProvider::make_versioned_portfile_provider(paths);
auto baseprovider = PortFileProvider::make_baseline_provider(paths);
if (!manifest_scf.core_paragraph->overrides.empty())
{
Metrics::g_metrics.lock()->track_property("manifest_overrides", "defined");
}
if (auto p_baseline = manifest_scf.core_paragraph->builtin_baseline.get())
{
Metrics::g_metrics.lock()->track_property("manifest_baseline", "defined");
if (p_baseline->size() != 40 || !std::all_of(p_baseline->begin(), p_baseline->end(), [](char ch) {
return (ch >= 'a' || ch <= 'f') || Parse::ParserBase::is_ascii_digit(ch);
}))
Expand Down

0 comments on commit 63ffdc3

Please sign in to comment.