HxUtil
const class HxUtil : Obj
Haxall utility methods
Convenience for parseEnum which returns only a list of string names
Current thread id
Parse enum as ordered map of Str:Dict keyed by name
Dump all threads
List timezones as grid
List units as grid
Dump a specific thread by its id
Process id or null if cannot be determined
List pods as grid
Dump thread deadlocks if detected
static Str:Dict parseEnum(Obj? enum)
Parse enum as ordered map of Str:Dict keyed by name. Dict tags:
- name: str key
- doc: fandoc string if available
Supported inputs:
- null returns empty list
- Dict of Dicts
- Str[] names
- Str newline separated names
- Str comma separated names
- Str fandoc list as - name: fandoc lines
static Str[] parseEnumNames(Obj? enum)
Convenience for parseEnum which returns only a list of string names. Using this method is more efficient than calling parseEnums and then mapping the keys.
static Int? pid()
Process id or null if cannot be determined
static Grid pods()
List pods as grid
static Str threadDump(Int id)
Dump a specific thread by its id
static Str threadDumpAll()
Dump all threads
static Str threadDumpDeadlocks()
Dump thread deadlocks if detected
static Int threadId()
Current thread id
static Grid tzdb()
List timezones as grid
static Grid unitdb()
List units as grid