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

equeue: Added profiling reports to Travis #6378

Merged
merged 1 commit into from Mar 21, 2018

Conversation

Projects
None yet
5 participants
@geky
Member

geky commented Mar 16, 2018

Description

Adds equeue profiling reports to Travis. Just like the code size report for LittleFS and inbound Astyle warning reports. You should be able to see the report in the travis-ci/events job.

The equeue make prof also measures code size and size of important structures. But it's hard to report more than one number without cluttering up the Travis statuses.

Pull request type

  • Fix
  • Refactor
  • New target
  • Feature
  • Breaking change

@geky geky force-pushed the geky:events-travis-prof branch from 027a3f1 to d828fc0 Mar 16, 2018

@cmonr

This comment has been minimized.

Contributor

cmonr commented Mar 19, 2018

/morph build

@mbed-ci

This comment has been minimized.

mbed-ci commented Mar 19, 2018

Build : SUCCESS

Build number : 1481
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/6378/

Triggering tests

/morph test
/morph uvisor-test
/morph export-build
/morph mbed2-build

@mbed-ci

This comment has been minimized.

@mbed-ci

This comment has been minimized.

@0xc0170 0xc0170 requested review from cmonr and adbridge Mar 20, 2018

@cmonr

cmonr approved these changes Mar 20, 2018

- |
CURR=$(grep -o '[0-9]\+ cycles' prof | awk '{sum += $1} END {print sum}')
PREV=$(curl https://api.github.com/repos/$TRAVIS_REPO_SLUG/status/master \
| jq -re "select(.sha != \"$TRAVIS_COMMIT\")

This comment has been minimized.

@cmonr

cmonr Mar 20, 2018

Contributor

jq: Command-line JSON parser.

Good to know.

This comment has been minimized.

@geky

geky Mar 20, 2018

Member

It's not on all Ubuntu distros yet, but Travis guarantees it's their machines.

This comment has been minimized.

@cmonr

cmonr Mar 21, 2018

Contributor

As long as Travis guarantees it 👍

Also, I take it that's one of the reasons why || echo 0 exists?

This comment has been minimized.

@geky

geky Mar 21, 2018

Member

Oh, that's a trick on my end. Since we're calculating a ratio below, if we fetch an old value of 0, we would divide by zero.

So for any errors, we just treat it as zero, and check it later.

@cmonr

This comment has been minimized.

Contributor

cmonr commented Mar 20, 2018

Gonna wait on @adbridge

@0xc0170 0xc0170 removed the needs: review label Mar 21, 2018

@cmonr cmonr merged commit 58f5795 into ARMmbed:master Mar 21, 2018

19 checks passed

AWS-CI uVisor Build & Test Success
Details
ci-morph-build build completed
Details
ci-morph-exporter build completed
Details
ci-morph-mbed2-build build completed
Details
ci-morph-test test completed
Details
continuous-integration/jenkins/pr-head This commit looks good
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
travis-ci/docs Local docs testing has passed
Details
travis-ci/events Passed, runtime is 9561 cycles
Details
travis-ci/littlefs Passed, code size is 10060B (+0.00%)
Details
travis-ci/mbed2-ATMEL Local mbed2-ATMEL testing has passed
Details
travis-ci/mbed2-MAXIM Local mbed2-MAXIM testing has passed
Details
travis-ci/mbed2-NORDIC Local mbed2-NORDIC testing has passed
Details
travis-ci/mbed2-NUVOTON Local mbed2-NUVOTON testing has passed
Details
travis-ci/mbed2-NXP Local mbed2-NXP testing has passed
Details
travis-ci/mbed2-RENESAS Local mbed2-RENESAS testing has passed
Details
travis-ci/mbed2-SILICON_LABS Local mbed2-SILICON_LABS testing has passed
Details
travis-ci/mbed2-STM Local mbed2-STM testing has passed
Details
travis-ci/tools Local tools testing has passed
Details

@cmonr cmonr removed the ready for merge label Mar 21, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment