Skip to content

Commit c3f271e

Browse files
Backmerge from main
2 parents 49ee242 + d39e7b0 commit c3f271e

File tree

22 files changed

+368
-298
lines changed

22 files changed

+368
-298
lines changed

IntelPresentMon/AppCef/source/util/CefValues.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ namespace p2c::client::util
6363
}
6464
else if constexpr (std::is_integral_v<T>)
6565
{
66-
return CefV8Value::CreateInt(int32(val));
66+
return CefV8Value::CreateInt(int(val));
6767
}
6868
else if constexpr (std::is_floating_point_v<T>)
6969
{
7070
return CefV8Value::CreateDouble(double(val));
7171
}
7272
else if constexpr (std::is_enum_v<T>)
7373
{
74-
return CefV8Value::CreateInt(int32(val));
74+
return CefV8Value::CreateInt(int(val));
7575
}
7676
else if constexpr (std::is_same_v<std::string, T> || std::is_same_v<std::wstring, T>)
7777
{

IntelPresentMon/CommonUtilities/cli/CliFramework.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,11 @@ namespace pmon::util::cli
8787
{
8888
pOption_ = pParent->app_.add_option(std::move(names), data_, std::move(description));
8989
}
90+
Option(const Option&) = delete;
91+
Option & operator=(const Option&) = delete;
92+
Option(Option&&) = delete;
93+
Option & operator=(Option&&) = delete;
94+
~Option() = default;
9095
const T& operator*() const
9196
{
9297
return data_;

IntelPresentMon/Core/source/pmon/RawFrameDataWriter.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ namespace p2c::pmon
100100
if (available) {
101101
const auto typeId = metric.GetDataTypeInfo().GetFrameType();
102102
// DISPLAYED_TIME and DISPLAY_LATENCY should just show zeros when NaN is encountered
103-
const bool zeroForNA = metricId == PM_METRIC_DISPLAYED_TIME || PM_METRIC_DISPLAY_LATENCY;
103+
const bool zeroForNA = (metricId == PM_METRIC_DISPLAYED_TIME)
104+
|| (metricId == PM_METRIC_DISPLAY_LATENCY);
104105
// special case for TIME, it needs to be relative to TIME of first frame and scaled ms => s
105106
if (metricId == PM_METRIC_TIME) {
106107
pAnnotation = std::make_unique<TypedAnnotation_<TimeAnnotationType_>>();
@@ -336,7 +337,7 @@ namespace p2c::pmon
336337
// tracking frame times
337338
pStatsTracker->Push(pQueryElementContainer->ExtractFrameTimeFromBlob(pBlob));
338339
}
339-
pQueryElementContainer->WriteFrame(procTracker, procName, file, pBlob);
340+
pQueryElementContainer->WriteFrame(procTracker.GetPid(), procName, file, pBlob);
340341
}
341342
} while (blobs.AllBlobsPopulated()); // if container filled, means more might be left
342343
file << std::flush;

IntelPresentMon/Core/source/pmon/metric/MetricFetcher.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,14 @@ namespace p2c::pmon::met
99
class MetricFetcher
1010
{
1111
public:
12+
MetricFetcher() = default;
1213
virtual ~MetricFetcher();
1314
virtual std::wstring ReadStringValue();
1415
virtual std::optional<float> ReadValue() = 0;
16+
17+
MetricFetcher(const MetricFetcher&) = delete;
18+
MetricFetcher & operator=(const MetricFetcher&) = delete;
19+
MetricFetcher(MetricFetcher&&) = delete;
20+
MetricFetcher & operator=(MetricFetcher&&) = delete;
1521
};
1622
}

IntelPresentMon/Interprocess/source/IntrospectionCloneAllocators.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ namespace pmon::ipc::intro
1616
ProbeAllocator(const ProbeAllocator<void>& other)
1717
: pTotalSize(other.pTotalSize)
1818
{}
19+
ProbeAllocator& operator=(const ProbeAllocator&) = delete;
1920
T* allocate(size_t count)
2021
{
2122
*pTotalSize += sizeof(T) * count + util::GetPadding<T>(*pTotalSize);
@@ -43,6 +44,7 @@ namespace pmon::ipc::intro
4344
pTotalSize(other.pTotalSize),
4445
pBytes{ other.pBytes }
4546
{}
47+
BlockAllocator& operator=(const BlockAllocator&) = delete;
4648
T* allocate(size_t count)
4749
{
4850
*pTotalSize += util::GetPadding<T>(*pTotalSize);

IntelPresentMon/Interprocess/source/metadata/EnumStat.h

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,18 @@
44
// enum annotation (enum_name_fragment, key_name_fragment, name, short_name, description)
55
#define ENUM_KEY_LIST_STAT(X_) \
66
X_(STAT, NONE, "None", "", "Null stat, typically used when querying static or consuming frame events") \
7-
X_(STAT, AVG, "Average", "avg", "Average or mean of frame samples over the sliding window") \
8-
X_(STAT, PERCENTILE_99, "99th Percentile", "99%", "Value below which 99% of the observations within the sliding window fall (worst 1% value)") \
9-
X_(STAT, PERCENTILE_95, "95th Percentile", "95%", "Value below which 95% of the observations within the sliding window fall (worst 5% value)") \
10-
X_(STAT, PERCENTILE_90, "90th Percentile", "90%", "Value below which 90% of the observations within the sliding window fall (worst 10% value)") \
11-
X_(STAT, MAX, "Maximum", "max", "Maximum value of frame samples within the sliding window") \
12-
X_(STAT, MIN, "Minimum", "min", "Minimum value of frame samples within the sliding window") \
13-
X_(STAT, MID_POINT, "Midpoint", "raw", "Point sample of the frame data nearest to the middle of the sliding window") \
14-
X_(STAT, MID_LERP, "Mid Lerp", "mlp", "Linear interpolation between the two points nearest to the middle of the sliding window") \
15-
X_(STAT, NEWEST_POINT, "Newest Point", "npt", "Value in the most recent frame in the sliding window") \
16-
X_(STAT, OLDEST_POINT, "Oldest Point", "opt", "Value in the least recent frame in the sliding window") \
17-
X_(STAT, COUNT, "Count", "cnt", "Count of frames in the sliding window matching a predicate (e.g. counting # of frames for which a field is boolean true)") \
7+
X_(STAT, AVG, "Average", "avg", "Average or mean of observations over the sliding window") \
8+
X_(STAT, PERCENTILE_99, "99th Percentile", "99%", "Value below which 99% of the observations within the sliding window fall") \
9+
X_(STAT, PERCENTILE_95, "95th Percentile", "95%", "Value below which 95% of the observations within the sliding window fall") \
10+
X_(STAT, PERCENTILE_90, "90th Percentile", "90%", "Value below which 90% of the observations within the sliding window fall") \
11+
X_(STAT, PERCENTILE_01, "1st Percentile", "1%", "Value below which 1% of the observations within the sliding window fall") \
12+
X_(STAT, PERCENTILE_05, "5th Percentile", "5%", "Value below which 5% of the observations within the sliding window fall") \
13+
X_(STAT, PERCENTILE_10, "10th Percentile", "10%", "Value below which 10% of the observations within the sliding window fall") \
14+
X_(STAT, MAX, "Maximum", "max", "Maximum value of observations within the sliding window") \
15+
X_(STAT, MIN, "Minimum", "min", "Minimum value of observations within the sliding window") \
16+
X_(STAT, MID_POINT, "Midpoint", "raw", "Point sample of the observation nearest to the middle of the sliding window") \
17+
X_(STAT, MID_LERP, "Mid Lerp", "mlp", "Linear interpolation between the two observations nearest to the middle of the sliding window") \
18+
X_(STAT, NEWEST_POINT, "Newest Point", "npt", "Value in the most recent observation in the sliding window") \
19+
X_(STAT, OLDEST_POINT, "Oldest Point", "opt", "Value in the least recent observation in the sliding window") \
20+
X_(STAT, COUNT, "Count", "cnt", "Count of observations in the sliding window matching a predicate (e.g. counting # of observations for which a field is boolean true)")
1821
X_(STAT, NON_ZERO_AVG, "Non-zero Average", (const char*)u8"øavg", "Average or mean of frame samples over the sliding window, excluding all zero values")

IntelPresentMon/Interprocess/source/metadata/StatsShortcuts.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
#include "../../../PresentMonAPI2/PresentMonAPI.h"
33

44
#define FULL_STATS PM_STAT_AVG, PM_STAT_PERCENTILE_99, PM_STAT_PERCENTILE_95, \
5-
PM_STAT_PERCENTILE_90, PM_STAT_MAX, PM_STAT_MIN, PM_STAT_MID_POINT
5+
PM_STAT_PERCENTILE_90, PM_STAT_PERCENTILE_01, PM_STAT_PERCENTILE_05, \
6+
PM_STAT_PERCENTILE_10, PM_STAT_MAX, PM_STAT_MIN, PM_STAT_MID_POINT

0 commit comments

Comments
 (0)