mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-26 22:56:36 +00:00
@@ -12,16 +12,11 @@ import (
|
||||
// (for many use cases the index is sufficient)
|
||||
|
||||
var CounterNameTable = *QueryNameTable("Counter 009")
|
||||
var HelpNameTable = *QueryNameTable("Help 009")
|
||||
|
||||
func (p *perfObjectType) LookupName() string {
|
||||
return CounterNameTable.LookupString(p.ObjectNameTitleIndex)
|
||||
}
|
||||
|
||||
func (p *perfObjectType) LookupHelp() string {
|
||||
return HelpNameTable.LookupString(p.ObjectHelpTitleIndex)
|
||||
}
|
||||
|
||||
type NameTable struct {
|
||||
byIndex map[uint32]string
|
||||
byString map[string]uint32
|
||||
|
||||
Reference in New Issue
Block a user