From 6d506887cd1e7d86f9647f8d2f826064cdd547d8 Mon Sep 17 00:00:00 2001 From: amdmax Date: Mon, 5 Sep 2022 09:12:18 +0500 Subject: [PATCH] Add comments to changes Signed-off-by: Max Trunov --- collector/netframework_clrmemory.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/collector/netframework_clrmemory.go b/collector/netframework_clrmemory.go index f5087b9a..9fa317a2 100644 --- a/collector/netframework_clrmemory.go +++ b/collector/netframework_clrmemory.go @@ -143,7 +143,11 @@ type Win32_PerfRawData_NETFramework_NETCLRMemory struct { NumberofSinkBlocksinuse uint64 NumberTotalcommittedBytes uint64 NumberTotalreservedBytes uint64 + // PercentTimeinGC has countertype=PERF_RAW_FRACTION. + // Formula: (100 * CounterValue) / BaseValue + // By docs https://docs.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/scripting-articles/ms974615(v=msdn.10)#perf_raw_fraction PercentTimeinGC uint32 + // BaseValue is just a "magic" number used to make the calculation come out right. PercentTimeinGC_base uint32 ProcessID uint64 PromotedFinalizationMemoryfromGen0 uint64