This repository was archived by the owner on Feb 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 266
Profiling tools #2033
Open
StaticallyTypedAnxiety
wants to merge
13
commits into
develop
Choose a base branch
from
profiling-tools
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Profiling tools #2033
Changes from 6 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
e53567c
added profiling commands
StaticallyTypedAnxiety abfed37
added profiling tool for conductor
StaticallyTypedAnxiety f645b89
Merge branch 'develop' into profiling-tools
thedavidmeister 4ed5c1b
newer holonix
thedavidmeister 096e4eb
Merge branch 'profiling-tools' of github.com:holochain/holochain-rust…
thedavidmeister f50577a
Merge branch 'develop' into profiling-tools
StaticallyTypedAnxiety cb91c0c
check if flame graph already exists
StaticallyTypedAnxiety f68d73d
pass parameters and dont redownload
StaticallyTypedAnxiety 3207f02
Merge branch 'profiling-tools' of https://github.com/holochain/holoch…
StaticallyTypedAnxiety dca60a6
fixed merge
StaticallyTypedAnxiety b0d0684
using nix shell flame graph
StaticallyTypedAnxiety 93eed89
Merge branch 'develop' into profiling-tools
StaticallyTypedAnxiety 8703267
Merge branch 'develop' into profiling-tools
thedavidmeister File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -44,3 +44,6 @@ Cargo.lock | |
| !/Cargo.lock | ||
|
|
||
| stress-test/passthrough-dna.dna.json | ||
| FlameGraph | ||
| *.svg | ||
| perf.data* | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| { pkgs,config }: | ||
| let | ||
| name = "hc-sim2h-server-perf"; | ||
| script-sim2h-server-perf = pkgs.writeShellScriptBin name | ||
| '' | ||
| cd crates/sim2h_server && cargo build -p sim2h_server --release && perf record --call-graph dwarf sim2h_server | ||
| ''; | ||
|
|
||
| script-hc-conductor-perf = pkgs.writeShellScriptBin "hc-conductor-perf" | ||
| '' | ||
| cd crates/holochain && cargo build -p holochain --release && perf record --call-graph dwarf holochain | ||
| ''; | ||
|
|
||
| script-hc-generate-flame-graph = pkgs.writeShellScriptBin "hc-generate-flame-graph" | ||
| '' | ||
| rm -rf FlameGraph && git clone https://github.com/brendangregg/FlameGraph && perf script | perl FlameGraph/stackcollapse-perf.pl | perl FlameGraph/flamegraph.pl > generated-graph.svg | ||
StaticallyTypedAnxiety marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| ''; | ||
| in | ||
| { | ||
| buildInputs = [ script-sim2h-server-perf script-hc-generate-flame-graph script-hc-conductor-perf]; | ||
| } | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.