pub enum JvmCommand {
Sample {
duration_secs: Option<u64>,
interval_ms: Option<u64>,
top: u64,
folded_out: Option<PathBuf>,
follow: bool,
i_accept_the_risk: bool,
project: String,
},
Jfr(JvmJfrArgs),
}Variants§
Sample
Sample every JVM thread’s stack for a capped window and rank the hottest methods and stacks (the folded output is flamegraph-ready). ACTIVE instrumentation: CPU overhead grows with thread count x frequency — refused without –i-accept-the-risk; duration is HARD-CAPPED at 120s
Fields
duration_secs: Option<u64>Seconds to sample per window (default 30 — 10 with –follow; 5–120, the cap is not configurable)
interval_ms: Option<u64>Milliseconds between thread dumps (default 20 — 50 with –follow; 5–1000 — below 5ms the sampler thread itself skews the JVM)
folded_out: Option<PathBuf>Also write the folded stacks to this file (flamegraph.pl / speedscope input; one-shot only — refused with –follow)
follow: boolCONTINUOUS MODE: repeat bounded sampling windows
back-to-back, streaming each window’s rollup as it lands
(NDJSON envelopes under –json/–compact, the logs -f
precedent), until Ctrl-C. Continuous sampling IS
continuous gateway overhead — watch it, then stop it
Jfr(JvmJfrArgs)
Java Flight Recorder operations — start is gated active
instrumentation; status and stop are ungated (checking and
cleaning up must always be cheap to reach)
Trait Implementations§
Source§impl Debug for JvmCommand
impl Debug for JvmCommand
Source§impl FromArgMatches for JvmCommand
impl FromArgMatches for JvmCommand
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Subcommand for JvmCommand
impl Subcommand for JvmCommand
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommand