Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • D dune-codegen
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 35
    • Issues 35
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • extensions
  • dune-codegen
  • Wiki
  • Statistic profiling with perf

Statistic profiling with perf · Changes

Page history
dominic created page: Statistic profiling with perf authored Dec 19, 2017 by Dominic Kempf's avatar Dominic Kempf
Hide whitespace changes
Inline Side-by-side
Statistic-profiling-with-perf.md 0 → 100644
View page @ 6d7899a7
Small documentation on how to get some meaningful results on where we spend our time:
# Step 1: Building
Start from a fully optimized build and add the following flags
* `-ggdb` for debug symbols
* `-fno-omit-frame-pointer` to not have unidentifiable samples in the dataset
# Step 2: Running
Start the program (for sake of simplicity: sequential program) through the following wrapper:
```
perf record --call-graph fp ./program
```
# Step 3: Analyzing
For a live analysis try (in the same directory you ran stuff in):
```
perf report --hierarchy
```
Unfortunately, PDELab types are so long, that perf completely trips over and cuts them unreadable.
To get around, do:
```
perf report --hierarchy --stdio --no-demangle > undemangled
c++filt < undemangled > demangled
```
And try to read the `demangled` file.
# Step 4: Postprocessing
I am currently writing a small postprocessing tool to dig through template parameters efficiently.
\ No newline at end of file
Clone repository
  • Assembly level studies in Godbolt
  • Code generation profiling
  • Documentation of Loop Invariant Code Motion Implementation
  • Statistic profiling with perf
  • Home