glcov/args
Types
pub type Command {
Run(Options)
Prof(ProfOptions)
Help
Version
}
Constructors
-
Run(Options) -
Prof(ProfOptions) -
Help -
Version
pub type Options {
Options(
min_bp: option.Option(Int),
lcov: option.Option(String),
no_lcov: Bool,
excludes: List(String),
include_deps: List(String),
use_path_deps: Bool,
quiet: Bool,
no_color: Bool,
no_build: Bool,
root: option.Option(String),
app: option.Option(String),
target: Target,
verbose: Bool,
)
}
Constructors
-
Options( min_bp: option.Option(Int), lcov: option.Option(String), no_lcov: Bool, excludes: List(String), include_deps: List(String), use_path_deps: Bool, quiet: Bool, no_color: Bool, no_build: Bool, root: option.Option(String), app: option.Option(String), target: Target, verbose: Bool, )
pub type ProfOptions {
ProfOptions(
mode: ProfileMode,
top: Int,
root: option.Option(String),
app: option.Option(String),
no_build: Bool,
no_color: Bool,
quiet: Bool,
)
}
Constructors
-
ProfOptions( mode: ProfileMode, top: Int, root: option.Option(String), app: option.Option(String), no_build: Bool, no_color: Bool, quiet: Bool, )
pub type ProfileMode {
CallTime
CallCount
SelfTime
}
Constructors
-
CallTime -
CallCount -
SelfTime
Values
pub fn default_options() -> Options
pub fn default_prof_options() -> ProfOptions
pub fn format_percent(basis_points: Int) -> String
pub fn normalise(options: Options) -> Options
Sort and deduplicate options for deterministic tests and output.
pub fn parse_percent(value: String) -> Result(Int, String)
Parse a percentage into basis points (1/100th of a percent).
80 -> 8000, 80.5 -> 8050, 80.05 -> 8005.
More than two decimal places is rejected.