|
FireSync API
|
| kStatus kHealthLog_RegisterStat | ( | kHealthLog | log, |
| kHealthId | id, | ||
| k32u | instance, | ||
| const kChar * | name, | ||
| kBool | shouldRestore, | ||
| k64s | value | ||
| ) |
Adds or updates metadata for the specified stat.
This method must be called to notify the log about the existence of each health stat. It is only necessary to call this method once for each id-instance pair. However, this method can be called again at any time to update the health stat name.
This method is intended to be fast; no file I/O is performed.
This method is thread-safe.
| log | Health log object. |
| id | Health stat id. |
| instance | Health stat instance. |
| name | Health stat name. |
| shouldRestore | Should the previous value be reloaded as current value at construction time? |
| value | Initial value. |