Skip to content

Commit b475003

Browse files
authored
Merge pull request #5091 from input-output-hk/bench-master
workbench: updates
2 parents c58bf98 + 131c9ac commit b475003

File tree

5 files changed

+22
-19
lines changed

5 files changed

+22
-19
lines changed

Diff for: bench/locli/src/Cardano/Command.hs

+5-2
Original file line numberDiff line numberDiff line change
@@ -381,16 +381,19 @@ sAnchor State{sTags=[]} = error "sAnchor with no run or multi-summary."
381381
sAnchor s@State{sTags}
382382
= stateAnchor sTags s
383383

384+
quote :: T.Text -> T.Text
385+
quote = (<> "\"") . ("\"" <>)
386+
384387
runChainCommand :: State -> ChainCommand -> ExceptT CommandError IO State
385388

386389
runChainCommand s
387390
c@(ListLogobjectKeys f) = do
388-
dumpText "logobject-keys" (toText <$> logObjectStreamInterpreterKeys) f
391+
dumpText "logobject-keys" (quote . toText <$> logObjectStreamInterpreterKeys) f
389392
& firstExceptT (CommandError c)
390393
pure s
391394
runChainCommand s
392395
c@(ListLogobjectKeysLegacy f) = do
393-
dumpText "logobject-keys-legacy" (toText <$> logObjectStreamInterpreterKeysLegacy) f
396+
dumpText "logobject-keys-legacy" (quote . toText <$> logObjectStreamInterpreterKeysLegacy) f
394397
& firstExceptT (CommandError c)
395398
pure s
396399

Diff for: bench/locli/src/Cardano/Unlog/LogObject.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ interpreters = map3ple Map.fromList . unzip3 . fmap ent $
264264
<*> pure 1
265265

266266
-- Ledger snapshots:
267-
, (,,,) "TraceSnapshotEvent.TookSnapshot" "LedgerEvent.TookSnapshot" "ChainDB.LedgerEvent.TookSnapshot" $
267+
, (,,,) "TraceSnapshotEvent.TookSnapshot" "TraceLedgerEvent.TookSnapshot" "ChainDB.LedgerEvent.TookSnapshot" $
268268
\_ -> pure LOLedgerTookSnapshot
269269

270270
-- Tx receive path & mempool:

Diff for: cardano-node/src/Cardano/Node/Tracing/Tracers/Consensus.hs

+7-7
Original file line numberDiff line numberDiff line change
@@ -971,48 +971,48 @@ instance MetaTrace (ForgeTracerType blk) where
971971
namespaceFor (Left ev) =
972972
nsCast (namespaceFor ev)
973973
namespaceFor (Right _ev) =
974-
Namespace [] ["StartLeadershipCheckPlus"]
974+
Namespace [] ["StartLeadershipCheck"]
975975

976-
severityFor (Namespace _ ["StartLeadershipCheckPlus"]) _ = Just
976+
severityFor (Namespace _ ["StartLeadershipCheck"]) _ = Just
977977
Info
978978
severityFor ns (Just (Left ev')) =
979979
severityFor (nsCast ns) (Just ev')
980980
severityFor ns Nothing =
981981
severityFor (nsCast ns :: Namespace (TraceForgeEvent blk)) Nothing
982982
severityFor _ _ = Nothing
983983

984-
detailsFor (Namespace _ ["StartLeadershipCheckPlus"]) _ = Just
984+
detailsFor (Namespace _ ["StartLeadershipCheck"]) _ = Just
985985
DNormal
986986
detailsFor ns (Just (Left ev')) =
987987
detailsFor (nsCast ns) (Just ev')
988988
detailsFor ns Nothing =
989989
detailsFor (nsCast ns :: Namespace (TraceForgeEvent blk)) Nothing
990990
detailsFor _ _ = Nothing
991991

992-
privacyFor (Namespace _ ["StartLeadershipCheckPlus"]) _ = Just
992+
privacyFor (Namespace _ ["StartLeadershipCheck"]) _ = Just
993993
Public
994994
privacyFor ns (Just (Left ev')) =
995995
privacyFor (nsCast ns) (Just ev')
996996
privacyFor ns Nothing =
997997
privacyFor (nsCast ns :: Namespace (TraceForgeEvent blk)) Nothing
998998
privacyFor _ _ = Nothing
999999

1000-
metricsDocFor (Namespace _ ["StartLeadershipCheckPlus"]) =
1000+
metricsDocFor (Namespace _ ["StartLeadershipCheck"]) =
10011001
[ ("Forge.UtxoSize", "")
10021002
, ("Forge.DelegMapSize", "")
10031003
]
10041004
metricsDocFor ns =
10051005
metricsDocFor (nsCast ns :: Namespace (TraceForgeEvent blk))
10061006

1007-
documentFor (Namespace _ ["StartLeadershipCheckPlus"]) = Just $ mconcat
1007+
documentFor (Namespace _ ["StartLeadershipCheck"]) = Just $ mconcat
10081008
[ "We adopted the block we produced, we also trace the transactions"
10091009
, " that were adopted."
10101010
]
10111011
documentFor ns =
10121012
documentFor (nsCast ns :: Namespace (TraceForgeEvent blk))
10131013

10141014
allNamespaces =
1015-
Namespace [] ["StartLeadershipCheckPlus"]
1015+
Namespace [] ["StartLeadershipCheck"]
10161016
: map nsCast (allNamespaces :: [Namespace (TraceForgeEvent blk)])
10171017

10181018
--------------------------------------------------------------------------------

Diff for: nix/workbench/analyse/analyse.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ do case "$1" in
101101
--filter-slot-expr | -fsex ) sargs+=($1 "$2"); filter_exprs+=('{ "tag":"CSlot" , "contents": '"$2"'}'); shift;;
102102
--no-filters | --unfiltered | -u )
103103
sargs+=($1); arg_filters=(); unfiltered='true';;
104-
--loany-ok ) sargs+=($1); locli_args+=(--loany-ok);;
104+
--ok-loany ) sargs+=($1); locli_args+=(--ok-loany);;
105105
--lodecodeerror-ok ) sargs+=($1); locli_args+=(--lodecodeerror-ok);;
106106
--dump-logobjects | -lo ) sargs+=($1); dump_logobjects='true';;
107107
--dump-machviews | -mw ) sargs+=($1); dump_machviews='true';;

Diff for: nix/workbench/service/tracing.nix

+8-8
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@
2222

2323
## These are benchmarking-specific config deviations from the default.
2424
##
25-
"BlockFetch".severity = "Info";
25+
"BlockFetch".severity = "Debug";
2626
"BlockFetch.Client.CompletedBlockFetch".maxFrequency = 0;
27-
"ChainSync".severity = "Info";
27+
"ChainSync".severity = "Debug";
2828
"ChainSync.Client.DownloadedHeader".maxFrequency = 0;
29-
"Forge.Loop.BlockContext".severity = "Info";
30-
"Forge.Loop.LedgerState".severity = "Info";
31-
"Forge.Loop.LedgerView".severity = "Info";
32-
"Forge.Loop.MempoolSnapshot".severity = "Info";
33-
"Forge.Loop.TickedLedgerState".severity = "Info";
34-
"Startup".severity = "Info";
29+
"Forge.Loop.BlockContext".severity = "Debug";
30+
"Forge.Loop.LedgerState".severity = "Debug";
31+
"Forge.Loop.LedgerView".severity = "Debug";
32+
"Forge.Loop.MempoolSnapshot".severity = "Debug";
33+
"Forge.Loop.TickedLedgerState".severity = "Debug";
34+
"Startup".severity = "Debug";
3535
};
3636
}

0 commit comments

Comments
 (0)