Giter VIP home page Giter VIP logo

Comments (4)

andikleen avatar andikleen commented on June 26, 2024

With this change, will events specified with dot still work? It doesn't look like it because you replace the name mapping. Should be fine to allow specifying events with underscores, but doted events still need to work. So it would need two entries in the events hash for each event: one with dots, and another with underscores.

BTW not clear what problem this solves? You want to pass events from perf evlist back to ocperf?

from pmu-tools.

andikleen avatar andikleen commented on June 26, 2024

Ok it looks like your second patch does just that. Added thanks.

from pmu-tools.

RainM avatar RainM commented on June 26, 2024

Events with dots will work properly. In my pull-request I added new dictionary for perf-style named events ('perf_events' field) and added one more 'elif' statement to 'getevent' method:

I try to use ocperf.py with JMH (java microbenchmarking framework). JMH is able to run perf (or any other executable if I overwrite environment variable) and parser it's result. JMH memorizes event names which I specified in parameters (I should specify names with dots because these names will be passed to ocperf.py). During perf/ocperf.py output parsing JMH become a bit confused since there is not parameter names I specified (because underlying perf outputs names with underscored only).
Anyway, I believe it's a bit confusing: ocperf.py outputs (right, perf outputs) event names which differ from event names I passed as argument.

BTW, may be it's better to remove '.replace(".", "_")' from Event.output_newstyle method?

from pmu-tools.

andikleen avatar andikleen commented on June 26, 2024

from pmu-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.