Code Monkey home page Code Monkey logo

Comments (4)

jessieAnhNguyen avatar jessieAnhNguyen commented on May 14, 2024 1

I went through the files, and I believe one helpful file is android_events.

  • It constructs an Android Tracing Agent (here).
  • Methods that collect and preprocess trace data: here and here
    I think this would help us understand how each event is traced on Android.

However, I didn't find where they label the phases of these events. I just found they list the categories of the events, which are not the same as phases (here).
Also we need to research how they generate the stackFrames of events.

from hermes-profile-transformer.

saphal1998 avatar saphal1998 commented on May 14, 2024

I went through how the Chrome Profiles do this and came across the Catapult Project which basically implements the trace-viewer for Chrome. I believe we can find the way to make sense of our code by digging deep through this repository

On some research I found this systrace/profile_chrome/main.py file to be relevant to what we want to achieve. My reasons for believing so are simply based on this line in the code. This leads us to this systrace/profile_chrome/profiler.py file where a CaptureProfile Method has been implemented, now the relevant line in this method is probably the tracing_controller, which leads us to the systrace/systrace/tracing_controller.py file containing tracing code, however such tracing code is also available at other locations, for example: ftrace_events, android_events. From what I understand, the tracing_controller mentioned earlier, aggregates the events generated by these events. For the purposes for this project, I think we should pay particular emphasis on the Android Agent. However, this does require an extremely deep dive into the code. I think we should confirm with @jevakallio if we are on the right path, or if I am mistaken here.

from hermes-profile-transformer.

saphal1998 avatar saphal1998 commented on May 14, 2024

I think the categories are input as args via the command line or something, because they say "--list-categories". Looks like a command line thing, right?

from hermes-profile-transformer.

saphal1998 avatar saphal1998 commented on May 14, 2024

The Hermes Profile can be converted to a format that Lighthouse parser can understand, which can convert the profile into B/E type events.

This finding makes this issue redundant.

from hermes-profile-transformer.

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.