Skip to content

Commit 91e3a4e

Browse files
committed
trace-resources: renaming
1 parent 0d34651 commit 91e3a4e

File tree

1 file changed

+29
-28
lines changed
  • trace-resources/src/Cardano/Logging/Resources

1 file changed

+29
-28
lines changed

trace-resources/src/Cardano/Logging/Resources/Types.hs

Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -119,21 +119,21 @@ instance LogFormatting ResourceStats where
119119
]
120120

121121
asMetrics rs =
122-
[ IntM "Resources.Stat.Cputicks" (fromIntegral $ rCentiCpu rs)
123-
, IntM "Resources.RTS.Gcticks" (fromIntegral $ rCentiGC rs)
124-
, IntM "Resources.RTS.Mutticks" (fromIntegral $ rCentiMut rs)
125-
, IntM "Resources.RTS.GcMajorNum" (fromIntegral $ rGcsMajor rs)
126-
, IntM "Resources.RTS.GcMinorNum" (fromIntegral $ rGcsMinor rs)
127-
, IntM "Resources.RTS.Alloc" (fromIntegral $ rAlloc rs)
128-
, IntM "Resources.RTS.GcLiveBytes" (fromIntegral $ rLive rs)
129-
, IntM "Resources.RTS.Heap" (fromIntegral $ rHeap rs)
130-
, IntM "Resources.Mem.Resident" (fromIntegral $ rRSS rs)
131-
, IntM "Resources.Stat.BlkIOticks" (fromIntegral $ rCentiBlkIO rs)
132-
, IntM "Resources.State.NetRd" (fromIntegral $ rNetRd rs)
133-
, IntM "Resources.State.NetWr" (fromIntegral $ rNetWr rs)
134-
, IntM "Resources.State.FsRd" (fromIntegral $ rFsRd rs)
135-
, IntM "Resources.State.FsWr" (fromIntegral $ rFsWr rs)
136-
, IntM "Resources.RTS.Stat.Threads" (fromIntegral $ rThreads rs)
122+
[ IntM "Stat.cputicks" (fromIntegral $ rCentiCpu rs)
123+
, IntM "RTS.gcticks" (fromIntegral $ rCentiGC rs)
124+
, IntM "RTS.mutticks" (fromIntegral $ rCentiMut rs)
125+
, IntM "RTS.gcMajorNum" (fromIntegral $ rGcsMajor rs)
126+
, IntM "RTS.gcMinorNum" (fromIntegral $ rGcsMinor rs)
127+
, IntM "RTS.alloc" (fromIntegral $ rAlloc rs)
128+
, IntM "RTS.gcLiveBytes" (fromIntegral $ rLive rs)
129+
, IntM "RTS.gcHeapBytes" (fromIntegral $ rHeap rs)
130+
, IntM "Mem.resident" (fromIntegral $ rRSS rs)
131+
, IntM "Stat.blkIOticks" (fromIntegral $ rCentiBlkIO rs)
132+
, IntM "Stat.netRd" (fromIntegral $ rNetRd rs)
133+
, IntM "Stat.netWr" (fromIntegral $ rNetWr rs)
134+
, IntM "Stat.fsRd" (fromIntegral $ rFsRd rs)
135+
, IntM "Stat.fsWr" (fromIntegral $ rFsWr rs)
136+
, IntM "RTS.threads" (fromIntegral $ rThreads rs)
137137
]
138138

139139
instance MetaTrace ResourceStats where
@@ -144,19 +144,20 @@ instance MetaTrace ResourceStats where
144144
documentFor (Namespace _ ["Resources"]) = Just ""
145145
documentFor _ns = Nothing
146146
metricsDocFor (Namespace _ ["Resources"]) =
147-
[("Resources.Stat.Cputicks", "Kernel-reported CPU ticks (1/100th of a second), since process start")
148-
,("Resources.Mem.Resident", "Kernel-reported RSS (resident set size)")
149-
,("Resources.RTS.GcLiveBytes", "RTS-reported live bytes")
150-
,("Resources.RTS.GcMajorNum", "Major GCs")
151-
,("Resources.RTS.GcMinorNum", "Minor GCs")
152-
,("Resources.RTS.Gcticks", "RTS-reported CPU ticks spent on GC")
153-
,("Resources.RTS.Mutticks", "RTS-reported CPU ticks spent on mutator")
154-
,("Resources.State.NetRd", "IP packet bytes read")
155-
,("Resources.State.NetWr", "IP packet bytes written")
156-
,("Resources.State.FsRd", "FS bytes read")
157-
,("Resources.State.FsWr", "FS bytes written")
158-
,("Resources.RTS.Threads","RTS green thread count")
159-
]
147+
[("Stat.cputicks", "Kernel-reported CPU ticks (1/100th of a second), since process start")
148+
,("RTS.gcticks", "RTS-reported CPU ticks spent on GC")
149+
,("RTS.mutticks", "RTS-reported CPU ticks spent on mutator")
150+
,("RTS.gcMajorNum", "Major GCs")
151+
,("RTS.gcMinorNum", "Minor GCs")
152+
,("RTS.alloc", "RTS-reported bytes allocated")
153+
,("RTS.gcLiveBytes", "RTS-reported live bytes")
154+
,("RTS.gcHeapBytes", "RTS-reported heap bytes")
155+
,("Mem.resident", "Kernel-reported RSS (resident set size)")
156+
,("Stat.netRd", "IP packet bytes read")
157+
,("Stat.netWr", "IP packet bytes written")
158+
,("Stat.fsRd", "FS bytes read")
159+
,("Stat.fsWr", "FS bytes written")
160+
,("RTS.threads","RTS green thread count")]
160161
metricsDocFor _ns = []
161162
allNamespaces = [ Namespace [] ["Resources"]]
162163

0 commit comments

Comments
 (0)