You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"a comma separated list of options: `call`,`no-call`,`record`,`no-record`.";
786
788
pub(crate)const parse_instrument_xray:&str = "either a boolean (`yes`, `no`, `on`, `off`, etc), or a comma separated list of settings: `always` or `never` (mutually exclusive), `ignore-loops`, `instruction-threshold=N`, `skip-entry`, `skip-exit`";
787
789
pub(crate)const parse_unpretty:&str = "`string` or `string=string`";
788
790
pub(crate)const parse_treat_err_as_bug:&str = "either no value or a non-negative number";
@@ -1538,6 +1540,32 @@ pub mod parse {
1538
1540
true
1539
1541
}
1540
1542
1543
+
pub(crate)fnparse_instrument_mcount_opts(
1544
+
slot:&mutInstrumentMcountOpts,
1545
+
v:Option<&str>,
1546
+
) -> bool{
1547
+
for option in v.into_iter().flat_map(|v| v.split(',')){
1548
+
match option {
1549
+
"no-call" => {
1550
+
slot.no_call = true;
1551
+
}
1552
+
"call" => {
1553
+
slot.no_call = false;
1554
+
}
1555
+
"no-record" => {
1556
+
slot.record = false;
1557
+
}
1558
+
"record" => {
1559
+
slot.record = true;
1560
+
}
1561
+
_ => {
1562
+
returnfalse;
1563
+
}
1564
+
}
1565
+
}
1566
+
v.is_some()
1567
+
}
1568
+
1541
1569
pub(crate)fnparse_instrument_xray(
1542
1570
slot:&mutOption<InstrumentXRay>,
1543
1571
v:Option<&str>,
@@ -2396,6 +2424,12 @@ options! {
2396
2424
"insert function instrument code for fentry-based tracing (default: no)"),
0 commit comments