diff options
author | Shauren <shauren.trinity@gmail.com> | 2022-04-08 23:09:04 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-06-10 16:22:07 +0200 |
commit | a1855591b9b027d64276bc8d13da7f7292e6c10c (patch) | |
tree | d3e8febeadbde16f0210dcb846569fe9021da101 | |
parent | 6055a94f98eccf7ebfe0be688495cf2fdff33655 (diff) |
Core/Metric: Build fix for WITH_DETAILED_METRICS
(cherry picked from commit 46b7a361eeef35402f3f9ca52dd2b68e20b161ec)
-rw-r--r-- | src/common/Metric/Metric.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/Metric/Metric.h b/src/common/Metric/Metric.h index 140e6ec00e0..eecced3c178 100644 --- a/src/common/Metric/Metric.h +++ b/src/common/Metric/Metric.h @@ -219,7 +219,7 @@ Optional<MetricStopWatch<LoggerType>> MakeMetricStopWatch(LoggerType&& loggerFun auto TC_METRIC_UNIQUE_NAME(__tc_metric_stop_watch) = MakeMetricStopWatch([&](TimePoint start) \ { \ int64 duration = int64(std::chrono::duration_cast<Milliseconds>(std::chrono::steady_clock::now() - start).count()); \ - std::string category2 = category; + std::string category2 = category; \ if (sMetric->ShouldLog(category2, duration)) \ sMetric->LogValue(std::move(category2), duration, ##__VA_ARGS__); \ }); |