Code Monkey home page Code Monkey logo

Comments (2)

jrmadsen avatar jrmadsen commented on May 26, 2024

Hi @pelahi, currently the flat profiles are handled by timemory and the min/max/stddev is stored in a constant size data structure that does not require dynamic allocations: statistics.cpp.

In order to provide the requested functionality, it would have to effectively store every measurement because we wouldn't be able to bin the values until the min/max was established. Another way of explaining it is that we would need collect the full trace before condensing it into a flat profile during post-processing instead of condensing it into a flat profile on the fly. And that would significantly bloat the memory usage which is a non-starter since tracing at scale on supercomputers generates far too much data. So unfortunately, we will not be able to accommodate this request directly.

However, I've just finished work on integrating support for the perfetto trace format into a Python package called hatchet in hatchet/hatchet#501. This package will effectively translate the perfetto traces into a pandas dataframe and allow you to manipulate it into a flat profile and bin the measurements into however many percentiles you desire. Ideally, this capability could even be part of a omnitrace-analysis Python package installable via PyPi with a console script omnitrace-analyze which command-line-izes this functionality.

side note: hatchet already supports the JSON profiles generated by timemory.

from omnitrace.

jrmadsen avatar jrmadsen commented on May 26, 2024

As you can see in the hatchet docs for generating a flat profile, it is very straightforward to convert the trace to a flat profile and pandas has built-in capabilities for calculating the percentiles/quantiles (tutorial)

from omnitrace.

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.