forked from Blendman974/faceclaw
Port the Developer app's resource monitor to iOS
This commit is contained in:
1 parent
c5f80a0b00
commit
f47d82b871
13 files changed
+344
-74
No files matched your search
@@ -0,0 +1,16 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
/** Lightweight process counters for the on-glasses resource-usage monitor. */
|
||||
@interface FaceclawResourceUsage : NSObject
|
||||
/**
|
||||
* One sample as a JSON object: atMs (monotonic clock, counting sleep), cpuMs
|
||||
* (user+system time of every thread, alive or exited), footprintKb (the
|
||||
* phys_footprint that jetsam limits and Xcode's memory gauge shows),
|
||||
* footprintPeakKb (lifetime peak), residentKb, mallocKb (bytes in use across
|
||||
* malloc zones), availableKb (headroom before the jetsam limit; 0 when there
|
||||
* is none, as on the simulator), threads, thermalState
|
||||
* (NSProcessInfoThermalState) and lowPower. Fields whose query fails are
|
||||
* omitted.
|
||||
*/
|
||||
+ (NSString *)sample;
|
||||
@end
|
||||
Reference in new issue
Block a user