Skip to main content

Crate srum_core

Crate srum_core 

Source
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.