Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wb | enable cardano-profile #6070

Draft
wants to merge 13 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion bench/cardano-profile/app/cardano-profile.hs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import qualified Cardano.Benchmarking.Profile.Types as Types

data Cli =
Names
| NamesNoEra
| NamesCloudNoEra
| All
| ByName PrettyPrint String
Expand All @@ -43,6 +44,8 @@ main = do
case cli of
-- Print all profile names.
Names -> BSL8.putStrLn $ Aeson.encode Profiles.names
-- Print all profile names without the era suffix.
NamesNoEra -> BSL8.putStrLn $ Aeson.encode Profiles.namesNoEra
-- Print all cloud profile (-nomadperf) names.
NamesCloudNoEra -> BSL8.putStrLn $ Aeson.encode Profiles.namesCloudNoEra
-- Print a map with all profiles, with an optional overlay.
Expand Down Expand Up @@ -111,11 +114,17 @@ cliParser = OA.hsubparser $
(pure Names)
(OA.fullDesc <> OA.header "names" <> OA.progDesc "All profiles names")
)
<>
OA.command "names-noera"
(OA.info
(pure NamesNoEra)
(OA.fullDesc <> OA.header "names-noera" <> OA.progDesc "All profiles names (no era suffix)")
)
<>
OA.command "names-cloud-noera"
(OA.info
(pure NamesCloudNoEra)
(OA.fullDesc <> OA.header "names" <> OA.progDesc "All cloud profiles names (no era suffix)")
(OA.fullDesc <> OA.header "names-cloud-noera" <> OA.progDesc "All cloud profiles names (no era suffix)")
)
<>
OA.command "all"
Expand Down
4 changes: 4 additions & 0 deletions bench/cardano-profile/cardano-profile.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ data-files: data/all-profiles.json
data/ci-test-bage.json
data/genesis/epoch-timeline.json
data/genesis/overlays/*.json
data/presets/*.json
data/test/default-coay/*.json
data/test/chainsync-early-alonzo-coay/*.json
data/test/chainsync-early-byron-coay/*.json
Expand Down Expand Up @@ -59,10 +60,13 @@ library
, Cardano.Benchmarking.Profile.Builtin.Scenario.Idle
, Cardano.Benchmarking.Profile.Builtin.Scenario.TracerOnly
, Cardano.Benchmarking.Profile.Extra.Scaling
, Cardano.Benchmarking.Profile.Extra.Voting
, Cardano.Benchmarking.Profile.NodeSpecs
, Cardano.Benchmarking.Profile.Primitives
, Cardano.Benchmarking.Profile.Vocabulary
, Cardano.Benchmarking.Profile.Types
, Cardano.Benchmarking.Profile.Workload.Latency
, Cardano.Benchmarking.Profile.Workload.Voting
build-depends: base >=4.12 && <5
, time
, aeson
Expand Down
Loading
Loading