Expand description
SRUM (System Resource Usage Monitor) record type definitions.
These are pure data types with no parsing logic.
Parsing is handled by the srum-parser crate.
Re-exports§
pub use app_timeline::AppTimelineRecord;pub use app_usage::AppUsageRecord;pub use connectivity::NetworkConnectivityRecord;pub use energy::EnergyUsageRecord;pub use energy_lt::EnergyLtRecord;pub use id_map::IdMapEntry;pub use network::NetworkUsageRecord;pub use push_notification::PushNotificationRecord;
Modules§
- app_
timeline - Application Timeline record — in-focus duration and user input time per app.
- app_
usage - Application resource usage record — CPU cycles, foreground/background time.
- connectivity
- Network connectivity record — L2 connection sessions per process.
- energy
- Energy usage record — battery charge and process energy consumption.
- energy_
lt - Energy Usage Long-Term record — same schema as
crate::EnergyUsageRecord. - id_map
- ID map entry — maps integer IDs to application/user string names.
- network
- Network usage record — bytes sent/received per process per ~1-hour interval.
- push_
notification - Push notification record — app notification activity per interval.
Constants§
- APP_
RECORD_ SIZE - Fixed byte length of a serialised
AppUsageRecord. - APP_
TIMELINE_ RECORD_ SIZE - Fixed byte length of a serialised
AppTimelineRecord. - ENERGY_
RECORD_ SIZE - Fixed byte length of a serialised
EnergyUsageRecord. - FILETIME_
EPOCH_ OFFSET - Number of 100ns ticks between the Windows epoch (1601-01-01) and the Unix epoch (1970-01-01).
- ID_
MAP_ MIN_ SIZE - Minimum byte length of a serialised
IdMapEntry. - NETWORK_
CONNECTIVITY_ RECORD_ SIZE - Fixed byte length of a serialised
NetworkConnectivityRecord. - NETWORK_
RECORD_ SIZE - Fixed byte length of a serialised
NetworkUsageRecord. - PUSH_
NOTIFICATION_ RECORD_ SIZE - Minimum byte length of a serialised
PushNotificationRecord.
Functions§
- filetime_
to_ datetime - Convert a Windows FILETIME value to a UTC
DateTime. - ole_
date_ to_ datetime - Convert an OLE Automation Date (f64) to a UTC
DateTime.