package
0.0.0-20170519220231-d2356ba4fd5f
Repository: https://github.com/google/battery-historian.git
Documentation: pkg.go.dev

# Functions

AnalyzeHistory takes as input a complete history log and desired summary format.
BatteryLevelSummariesToCSV writes level summary CSV for the visualization.
UIDAndPackageNameMapping builds a mapping of UIDs to package names and package names to UIDs.

# Constants

Battery history event names.
These constants should be kept consistent with BatteryStats.java.
These constants should be kept consistent with BatteryStats.java.
These constants should be kept consistent with BatteryStats.java.
These constants should be kept consistent with BatteryStats.java.
These constants should be kept consistent with BatteryStats.java.
These constants should be kept consistent with BatteryStats.java.
These constants should be kept consistent with BatteryStats.java.
These constants should be kept consistent with BatteryStats.java.
These constants should be kept consistent with BatteryStats.java.
These constants should be kept consistent with BatteryStats.java.

# Variables

CheckinApkLineRE is a regular expression that matches the "apk" line in a checkin log.
DataRE is a regular expression to match the data event log.
GenericHistoryLineRE is a regular expression to match any of the history lines.
GenericHistoryStringPoolLineRE is a regular expression to match any of the history string pool lines.
OverflowRE is a regular expression that matches OVERFLOW event.
ResetRE is a regular expression to match RESET event.
ShutdownRE is a regular expression to match SHUTDOWN event.
StartRE is a regular expression to match START event.
TimeRE is a regular expression to match TIME event.
VersionLineRE is a regular expression to match the vers statement in the history log.

# Structs

ActivitySummary contains battery statistics during an aggregation interval.
AnalysisReport contains fields that are created as a result of analyzing and parsing a history.
AppCPUUsage is per app cpu usage in DCPU.
DCPU are CPU related statistics that detail the entire previous discharge step.
DeviceState maintains the instantaneous state of the device created using battery history events.
Dist is a distribution summary for a battery metric.
DPST are Process related statistics that detail the entire previous discharge step.
MultiDist is a named distribution summary for a battery metric.
PackageUIDMapping contains a series of mapping between package names and their UIDs.
PowerState represents one of the low power states that the CPU can go into.
ServiceUID contains the identifying service for battery operations.
Voter represents a voter for one of the low power states.

# Type aliases

SortByTimeAndCount sorts MultiDist in descending order of TotalDuration.