Skip to content
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

Profiler for perf files #15

Open
wants to merge 36 commits into
base: main
Choose a base branch
from
Open

Conversation

matburnx
Copy link
Contributor

@matburnx matburnx commented Jul 2, 2024

This is some work on the profiler. More tests could be added, but I think this PR is mostly done.

What has been done:

  • Regrouped PointOfInterest classes to a common super class
  • Regrouped DifferentialProfiler classes to a common super class
  • Completed the Others profile
  • Added some tests
  • profiles is working with perf files
  • table is working with perf files
  • Started renaming classes related to the profiler that are not XC specific anymore
  • Added more information in the README

Grafana:

  • First implementation of a SQL exporter that can be used with the content of the table method
  • Simple export that follows this template:
 id | bench_id | timestamp  |          profile         |  value
----+----------+------------+--------------------------+----------
  1 |        1 | 2023-07-17 | MC                       |    10.67
  2 |        2 | 2024-07-17 | Interpreter -> Primitive |    96.79
  3 |        2 | 2024-07-17 | Machine Code             | 10687.13
  4 |        2 | 2024-07-17 | compilation              |    49.61
  5 |        2 | 2024-07-17 | interpret                |        0
  6 |        2 | 2024-07-17 | Trampolines              |   110.71
  7 |        2 | 2024-07-17 | MC -> Primitive          |        0
  8 |        2 | 2024-07-17 | Total                    | 10944.24
  • Added tests to it and a baseline to download P3 and its dependencies
  • Added instructions in the README

matburnx and others added 12 commits June 27, 2024 10:24
Reduced XML usage in the profilers and points of interests
Added `isFromInstruments` to easily make the distinction
Fix `table` not working in DifferentialProfiler
Removed duplicate of `onFiles:`
`profiles` and `table` should now work with `DifferentialProfiler`
Added `time` to `TraceSample`
Removed the last part of `table` for now as it doesn't work as expected
Copy link

github-actions bot commented Jul 2, 2024

Mutation results

  • Commit: 363ada1
  • Pull Request: nil
Mutants Number of Mutants
🟢 Alive 207
🔴 Killed 817
🟤 Terminated 0

Mutation score: 79

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants