Skip to content

Reopening Perfetto in Node discussion #654

Description

@LeszekSwirski

Hi folks, I work on V8 and we would like to move V8's tracing to be Perfetto-only, to be able to take advantage of various things that Perfetto supports which the legacy tracing doesn't. I see there was a past project to make Node use Perfetto, which ended up getting dropped (#277). I assume that V8 moving to Perfetto would have consequences for Node, so I would like to reopen this conversation.

Activity

  1. RafaelGSS commented on Feb 18, 2025

    @RafaelGSS
    Member

    Apparently, it ended up being closed due to lack of bandwidth #277 (comment) I don't think there is a consequence for Node, and even if there was it might have changed by now (the issue has been going on for about 6 years now). I'm happy to help on this (but I don't have have much bandwidth too)

  2. LeszekSwirski commented on Feb 18, 2025

    @LeszekSwirski
    Author

    I don't really have the cycles nor mandate to move Node to Perfetto, I just would like to avoid breaking Node if I were to move V8 to require Perfetto. The legacy trace macros should still work, given that they currently work for V8 when compiled with Perfetto in Chromium, so it would be more of a build system change than a tracing change (of course afterward, Node would also be free to move to non-legacy tracing if it were to want to).

  3. jasnell commented on Feb 18, 2025

    @jasnell
    Member

    Well, a few years ago I opened a PR that made the switch to perfetto and ended up closing it because no one else expressed any interest in even helping to review it. I'm +1 on switching and will happily review PRs.

  4. Qard commented on Feb 20, 2025

    @Qard
    Member

    Same here. Happy to review, but don't have the bandwidth to build myself right now. 😅

  5. legendecas commented on Feb 21, 2025

    @legendecas
    Member

    If V8 is going to be perfetto-only for tracing, I think the answer to the question that how likely perfetto will be abandoned like gyp is we need to go with perfetto regardless. Maintaining the existing tracing library like https://github.com/nodejs/gyp-next/ seems infeasible as V8 traces will be missing in this case.

    @jasnell will you pick up nodejs/node#35900 again? Or I may try to pick it up.

  6. LeszekSwirski commented on Feb 21, 2025

    @LeszekSwirski
    Author

    Well, basically I hope it won't be, because if Perfetto is abandoned, then V8, Chromium, and Android are all going to have to scramble to replace it, and I imagine there would have to be some shim to help with migration (like we have for the existing legacy JSON-based tracing, which fwiw is already abandoned so we're comparing already-abandoned vs. maybe-future-abandoned). Obviously no one can make any promises here though.

  7. Qard commented on Apr 7, 2025

    @Qard
    Member

    @BridgeAR This is relevant to our conversation.

  8. 52 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions