-
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.
Merge pull request #2 from PX4/master
合并主分支
- Loading branch information
Showing
172 changed files
with
2,943 additions
and
2,883 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,12 +1,20 @@ | ||
#!/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 | ||
# 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. | ||
# | ||
|
||
set -e | ||
|
@@ -33,7 +41,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=$root/Build/px4fmu-v2_default.build/firmware.elf | ||
elf= | ||
append=0 | ||
fgfontsize=10 | ||
fgwidth=1900 | ||
|
@@ -69,6 +77,8 @@ 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 | ||
# | ||
|
@@ -237,8 +247,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)[:10]: | ||
print('% 5.1f%% ' % (100 * num / num_stack_frames), name, 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) | ||
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,4 +25,5 @@ then | |
param set MC_YAWRATE_D 0.0 | ||
fi | ||
|
||
set MIXER quad_x_can | ||
set OUTPUT_MODE uavcan_esc |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
R: 4x 10000 10000 10000 0 |
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
Submodule jMAVSim
updated
3 files
+1 −1 | README.md | |
+1 −1 | jMAVlib | |
+10 −10 | src/me/drton/jmavsim/MAVLinkHILSystem.java |
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
Submodule sitl_gazebo
updated
from 2c64dd to f6a116
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
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
Oops, something went wrong.