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

Config: add benchmark tools to broker run script #385

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion src/applications/bmqbrkr/etc/bmqbrkrcfg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"taskConfig": {
"allocatorType": "STACKTRACETEST",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

STACKTRACETEST allocator is for debug only, it is slow. For better user experience, we should provide COUNTING allocator as a default

"allocatorType": "COUNTING",
"allocationLimit": 34359738368,
"logController": {
"fileName": "localBMQ/logs/logs.%T.%p",
Expand Down
4 changes: 4 additions & 0 deletions src/applications/bmqbrkr/run
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ while [ "$1" != "" ]; do
debugCmd="lldb --"
elif [ "$1" == "echo" ]; then
debugCmd="echo"
elif [ "$1" == "perf" ]; then
debugCmd="perf record -g"
elif [ "$1" == "valgrind" ]; then
debugCmd="valgrind --tool=callgrind"
fi
shift
done
Expand Down
Loading