-
Notifications
You must be signed in to change notification settings - Fork 3k
Tools: Differential Memap #7590
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
Conversation
So if I understand correctly, is the following flow the correct way to enable/use this?
|
@screamerbg @MarceloSalazar This would change the default output. Thoughts? |
@cmonr No, It's always enabled. that's how you fix a particular mbed compile as the comparison point. |
@cmonr That's why it's 5.10, yeah? |
@theotherjimmy Correct, that's the only reason for marking it for 5.10. The story would change if the output were unmodified unless compiling with some option/flag/indicator/config option of some sort that was explicitly enabled by the user. |
Windows is dumb sometimes
f83b449
to
fc97d77
Compare
Considering that no objection has been brought up in two weeks, going to progress this PR. /morph build |
Build : SUCCESSBuild number : 2790 Triggering tests/morph test |
Exporter Build : SUCCESSBuild number : 2420 |
Test : SUCCESSBuild number : 2525 |
Would it be possible to add a command line option or even a configuration flag how to permanently disable this feature? This diff feature may be really useful for some or even most users, but it also harms us who used to copy&paste the build output to spreadsheet for further analysis or did simple text file comparisons between various builds' output captures. |
Tools: Differential Memap
@TeroJaasko Sorry for initially missing your comment. For reference, once a PR goes in, our visibility on updates to the PR is decreased. In general we recommend opening a GitHub issue since those are sync'd to Jira and are triaged just about daily. As for the option, as I understand the feature, it's not used unless the user explicitly sets an environment variable. |
@theotherjimmy @cmonr When I run the tool standalone it renames the input file (see here). Is that correct behaviour? I'd expect it would copy the file so when I run it for a 2nd time it shows |
Just tested, what I described above (copy rather than move) can be accomplished by removing the |
@vidavidorra Please open an issue referring to this PR. Once a PR is merged, our visibility on subsequent conversations with it are significantly hampered. |
Description
This PR adds a new feature to our memory analysis package: Differental
Analysis. With this new feature, every build of an Mbed OS project will
print out a comparison between the previous build, or a fixed build, and
the current build. Use the environment vairable
MBED_COMPARE_FIXED
to use the prior build as the fixed comparison point.
Example
In this example, I added a printf to blinky as follows:
Which results in the following table (stats depth at the defualt of 2):
Printf costs an extra 7074 bytes! and the call costs 16 bytes.
The following is a link to the flame graph generated by the same build
and colorized based on the delta:
http://mbed-os.s3-eu-west-1.amazonaws.com/builds/diff-memap-demo.html
The colorization scheme is:
up, as we don't show modules with size 0)
Pull request type