metric

package
v1.7.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2025 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BOOL added in v1.7.1

type BOOL int32

BOOL is an int32 for structure align.

func (BOOL) MarshalText added in v1.7.2

func (b BOOL) MarshalText() ([]byte, error)

MarshalText is used to implement TextMarshaler interface.

func (BOOL) String added in v1.7.1

func (b BOOL) String() string

func (BOOL) ToBool added in v1.7.1

func (b BOOL) ToBool() bool

ToBool is used to convert to go bool.

func (*BOOL) UnmarshalText added in v1.7.2

func (b *BOOL) UnmarshalText(data []byte) error

UnmarshalText is used to implement TextUnmarshaler interface.

type DTStatus added in v1.7.0

type DTStatus struct {
	IsEnabled        BOOL  `toml:"is_enabled"         json:"is_enabled"`
	HasDebugger      BOOL  `toml:"has_debugger"       json:"has_debugger"`
	HasMemoryScanner BOOL  `toml:"has_memory_scanner" json:"has_memory_scanner"`
	InSandbox        BOOL  `toml:"in_sandbox"         json:"in_sandbox"`
	InVirtualMachine BOOL  `toml:"in_virtual_machine" json:"in_virtual_machine"`
	InEmulator       BOOL  `toml:"in_emulator"        json:"in_emulator"`
	IsAccelerated    BOOL  `toml:"is_accelerated"     json:"is_accelerated"`
	SafeRank         int32 `toml:"safe_rank"          json:"safe_rank"`
}

DTStatus contains status about detector.

type LTStatus

type LTStatus struct {
	NumModules    int64 `toml:"num_modules"    json:"num_modules"`
	NumProcedures int64 `toml:"num_procedures" json:"num_procedures"`
}

LTStatus contains status about library tracker.

type MTStatus

type MTStatus struct {
	NumGlobals int64 `toml:"num_globals" json:"num_globals"`
	NumLocals  int64 `toml:"num_locals"  json:"num_locals"`
	NumBlocks  int64 `toml:"num_blocks"  json:"num_blocks"`
	NumRegions int64 `toml:"num_regions" json:"num_regions"`
	NumPages   int64 `toml:"num_pages"   json:"num_pages"`
	NumHeaps   int64 `toml:"num_heaps"   json:"num_heaps"`
}

MTStatus contains status about memory tracker.

type Metrics

type Metrics struct {
	Library  LTStatus `toml:"library"  json:"library"`
	Memory   MTStatus `toml:"memory"   json:"memory"`
	Thread   TTStatus `toml:"thread"   json:"thread"`
	Resource RTStatus `toml:"resource" json:"resource"`
	Detector DTStatus `toml:"detector" json:"detector"`
	Sysmon   SMStatus `toml:"sysmon"   json:"sysmon"`
	Watchdog WDStatus `toml:"watchdog" json:"watchdog"`
}

Metrics contains status about runtime submodules.

type RTStatus

type RTStatus struct {
	NumMutexs         int64 `toml:"num_mutexs"          json:"num_mutexs"`
	NumEvents         int64 `toml:"num_events"          json:"num_events"`
	NumSemaphores     int64 `toml:"num_semaphores"      json:"num_semaphores"`
	NumWaitableTimers int64 `toml:"num_waitable_timers" json:"num_waitable_timers"`
	NumFiles          int64 `toml:"num_files"           json:"num_files"`
	NumDirectories    int64 `toml:"num_directories"     json:"num_directories"`
	NumIOCPs          int64 `toml:"num_iocps"           json:"num_iocps"`
	NumRegKeys        int64 `toml:"num_reg_keys"        json:"num_reg_keys"`
	NumSockets        int64 `toml:"num_sockets"         json:"num_sockets"`
}

RTStatus contains status about resource tracker.

type SMStatus

type SMStatus struct {
	IsEnabled  BOOL  `toml:"is_enabled"  json:"is_enabled"`
	Reserved   int32 `toml:"-"           json:"-"`
	NumNormal  int64 `toml:"num_normal"  json:"num_normal"`
	NumRecover int64 `toml:"num_recover" json:"num_recover"`
	NumPanic   int64 `toml:"num_panic"   json:"num_panic"`
}

SMStatus contains status about sysmon.

type TTStatus

type TTStatus struct {
	NumThreads  int64 `toml:"num_threads"   json:"num_threads"`
	NumTLSIndex int64 `toml:"num_tls_index" json:"num_tls_index"`
	NumSuspend  int64 `toml:"num_suspend"   json:"num_suspend"`
}

TTStatus contains status about thread tracker.

type WDStatus

type WDStatus struct {
	IsEnabled BOOL  `toml:"is_enabled" json:"is_enabled"`
	Reserved  int32 `toml:"-"          json:"-"`
	NumKick   int64 `toml:"num_kick"   json:"num_kick"`
	NumNormal int64 `toml:"num_normal" json:"num_normal"`
	NumReset  int64 `toml:"num_reset"  json:"num_reset"`
}

WDStatus contains status about watchdog.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL