forked from jl777/SuperNET
-
Notifications
You must be signed in to change notification settings - Fork 118
Seednodes memory leaks fix #1054
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
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
cabe676
impl TimeCache for order_pairs_trie_state_history
shamardy 0fcf2fd
Merge remote-tracking branch 'origin/dev' into memory-leak-fix
shamardy d0d2066
fix pair_trie error formating
shamardy 8cfc738
refactor TimeCache remove function
shamardy cc825ea
trie roots leak fix
shamardy 4804ac2
fix tests
shamardy fc76922
fix nightly fmt
shamardy 699af01
remove timedout orders from trie
shamardy 101dba4
Merge remote-tracking branch 'origin/dev' into memory-leak-fix
shamardy d22c855
TrieDiffHistory timeout + unit tests
shamardy 6e25c5a
update trie state history expiration on insert
shamardy 849c0b0
takerorders fix + history update timeout test
shamardy 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 @@ | ||
| # Memory profiling MM2 with heaptrack | ||
| 1. Install dependencies required by heaptrack if they are not already installed on the system | ||
| * extra-cmake-modules | ||
| * Qt 5.2 or higher: Core, Widgets | ||
| * KDE Frameworks 5: CoreAddons, I18n, ItemModels, ThreadWeaver, ConfigWidgets, KIO, IconThemes | ||
|
|
||
| 2. Install heaptrack on Ubuntu (18.04) or higher: | ||
| ``` | ||
| sudo apt install heaptrack heaptrack-gui | ||
| ``` | ||
|
|
||
| 3. Use heaptrack to run MM2 binary and pass parameters as usual. An example for this would be: | ||
| ``` | ||
| heaptrack ./mm2 "{\"gui\":\"MM2GUI\",\"netid\":7777, \"userhome\":\"/${HOME#"/"}\", \"passphrase\":\"YOUR_PASSPHRASE_HERE\", \"rpc_password\":\"YOUR_PASSWORD_HERE\",\"i_am_seed\":true}" & | ||
| ``` | ||
| Running heaptrack like this writes a gzipped result file in the same folder the above command ran from. We can now take a look at using the next step. | ||
|
|
||
| 4. After running MM2 for sometime we can visualize the memory profiling results using the below command. Note that ```heaptrack.mm2.xxxx.gz``` is the name of the file generated through the above command with numbers instead of xxxx | ||
| ``` | ||
| heaptrack_gui heaptrack.mm2.xxxx.gz | ||
| ``` |
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
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 |
|---|---|---|
|
|
@@ -141,7 +141,6 @@ mod behaviour; | |
| mod config; | ||
| mod handler; | ||
| mod mcache; | ||
| mod time_cache; | ||
| mod topic; | ||
|
|
||
| mod rpc_proto { | ||
|
|
||
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
Oops, something went wrong.
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.