-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "UAVCAN performance audit (#6829)"
This reverts commit 21e04c9.
- Loading branch information
David Sidrane
authored
Mar 18, 2017
1 parent
21e04c9
commit 2b6dad6
Showing
9 changed files
with
36 additions
and
40 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -1,20 +1,12 @@ | ||
#!/bin/bash | ||
# | ||
# Author: Pavel Kirienko <[email protected]> | ||
# | ||
# Poor man's sampling profiler for NuttX. | ||
# | ||
# Usage: Install flamegraph.pl in your PATH, configure your .gdbinit, run the script with proper arguments and go | ||
# have a coffee. When you're back, you'll see the flamegraph. Note that frequent calls to GDB significantly | ||
# interfere with normal operation of the target, which means that you can't profile real-time tasks with it. | ||
# For best results, ensure that the PC is not overloaded, the USB host controller to which the debugger is | ||
# connected is not congested. You should also allow the current user to set negative nice values. | ||
# | ||
# The FlameGraph script can be downloaded from https://github.com/brendangregg/FlameGraph. Thanks Mr. Gregg. | ||
# | ||
# Requirements: ARM GDB with Python support. You can get one by downloading the sources from | ||
# https://launchpad.net/gcc-arm-embedded and building them with correct flags. | ||
# Note that Python support is not required if no per-task sampling is needed. | ||
# Requirements: ARM GDB with Python support | ||
# | ||
|
||
set -e | ||
|
@@ -41,7 +33,7 @@ which flamegraph.pl > /dev/null || die "Install flamegraph.pl first" | |
nsamples=0 | ||
sleeptime=0.1 # Doctors recommend 7-8 hours a day | ||
taskname= | ||
elf= | ||
elf=$root/Build/px4fmu-v2_default.build/firmware.elf | ||
append=0 | ||
fgfontsize=10 | ||
fgwidth=1900 | ||
|
@@ -77,8 +69,6 @@ do | |
shift | ||
done | ||
|
||
[[ -z "$elf" ]] && die "Please specify the ELF file location, e.g.: build_px4fmu-v4_default/src/firmware/nuttx/firmware_nuttx" | ||
|
||
# | ||
# Temporary files | ||
# | ||
|
@@ -247,8 +237,8 @@ for s, f in sorted(stacks.items(), key=lambda (s, f): s): | |
print('Total stack frames:', num_stack_frames, file=sys.stderr) | ||
print('Top consumers (distribution of the stack tops):', file=sys.stderr) | ||
for name,num in sorted(stack_tops.items(), key=lambda (name, num): num, reverse=True)[:300]: | ||
print('% 7.3f%% ' % (100 * num / num_stack_frames), name, file=sys.stderr) | ||
for name,num in sorted(stack_tops.items(), key=lambda (name, num): num, reverse=True)[:10]: | ||
print('% 5.1f%% ' % (100 * num / num_stack_frames), name, file=sys.stderr) | ||
EOF | ||
|
||
cat $stacksfile | python /tmp/pmpn-folder.py > $foldfile | ||
|
This file contains 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 |
---|---|---|
|
@@ -25,5 +25,4 @@ then | |
param set MC_YAWRATE_D 0.0 | ||
fi | ||
|
||
set MIXER quad_x_can | ||
set OUTPUT_MODE uavcan_esc |
This file was deleted.
Oops, something went wrong.
Submodule matrix
updated
from 8ef252 to cf9249
This file contains 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 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 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 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 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