Skip to content

Instantly share code, notes, and snippets.

@aeyakovenko
Last active February 18, 2020 19:09
Show Gist options
  • Save aeyakovenko/b2cda55c6ba0fcac5a87d74c5bc405ff to your computer and use it in GitHub Desktop.
Save aeyakovenko/b2cda55c6ba0fcac5a87d74c5bc405ff to your computer and use it in GitHub Desktop.
$ git diff
diff --git a/measure/src/lib.rs b/measure/src/lib.rs
index d2848c956..2d9750a90 100644
--- a/measure/src/lib.rs
+++ b/measure/src/lib.rs
@@ -4,6 +4,6 @@ pub mod thread_mem_usage;
#[cfg(unix)]
extern crate jemallocator;
-#[cfg(unix)]
-#[global_allocator]
-static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;
+// #[cfg(unix)]
+// #[global_allocator]
+// static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;
$ git diff
diff --git a/multinode-demo/validator.sh b/multinode-demo/validator.sh
index f61874033..cda689ce8 100755
--- a/multinode-demo/validator.sh
+++ b/multinode-demo/validator.sh
@@ -130,6 +130,9 @@ while [[ -n $1 ]]; do
elif [[ $1 = --limit-ledger-size ]]; then
args+=("$1")
shift
+ elif [[ $1 = --enable-rpc-get-confirmed-block ]]; then
+ args+=("$1")
+ shift
elif [[ $1 = --skip-poh-verify ]]; then
args+=("$1")
shift
@@ -284,7 +287,7 @@ setup_validator_accounts "$node_lamports"
while true; do
echo "$PS4$program ${args[*]}"
- $program "${args[@]}" &
+ heaptrack $program "${args[@]}" &
pid=$!
echo "pid: $pid"
$ git diff
diff --git a/Cargo.toml b/Cargo.toml
index 58011c8bc..ea0dfaad6 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -62,3 +62,6 @@ exclude = [
"programs/move_loader",
"programs/librapay",
]
+
+[profile.release]
+debug = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment