Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1462543rwb; Wed, 26 Jul 2023 12:56:34 -0700 (PDT) X-Google-Smtp-Source: APBJJlHsMExxJo7/oDrltd8zozw5wIXkBp7OzwknrpedtFhCaNK61+lMmHDsAuriHRDtzLLMk/Ii X-Received: by 2002:a05:6512:3588:b0:4fb:94c6:fd63 with SMTP id m8-20020a056512358800b004fb94c6fd63mr122180lfr.17.1690401394091; Wed, 26 Jul 2023 12:56:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690401394; cv=none; d=google.com; s=arc-20160816; b=PAggJ8q4zzNK8AdXizw5axukVlPuE04uafe9R6xgBoFRX/iskMq6rOtaXlNys+IVpy SXBH7inCvDSgbdc+nLtUhez26O5VWnCUzaZwuwdRW4urzPcDUv8iu38RGDGeYVlu2iBa ntca33+cD9HMV0PKJVoamXgS6JFRdFqpG5MKkBgRajwkj+VzqOEWSTSH9xY3hyVam9Q7 L2wEPNyXFs3JbdNyUXBh2Px568lkeoB/gMslnf0EVID9bQmtxdGTxbqTVyCexXBJnDVH AyEJaEiKljv/VySzU2IEgwJ/1BdUgM56UPnmwzMVUNijxgQVGNkBNH8xacGgbPyHXZy7 jFqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=pCLlVtCdIUbB7LRppWhUFl2YyjsBpTqqjbLaJtpElIA=; fh=EhAGhJ3BuC4EgdcpHHQRU6e2eiG3HFesx3a3JD4q9qM=; b=w5jiMOvw7XBV9j6yZp6OrFbxxZrnxgwi1KnMNKB90PiiZaY13GHseCZA0MC3Gnntno bdYY64qjaAMq3ApK+XVc+EkFWB3ldT8mlD9k2oDduv7xPMbSN8OOOIMQuw8nJloD89Pt G/nJiDnOJt3j+eAZF5FYGNQg4nkaxENLKz0oEgcM+n5HEXw0+q6S3/mAZq/EJY0A5jdY 3xn9eO020XPqJJcD+c8EKG5VTw/Wty+fD+YbjcEgolAS7cLscRmQtEvToaTwnLBs62F1 zQpy08Eh0XunbFniVyE/+hIVGGx5ZJAbU1A+xJyJt7hA6ZjAXN2+eqtPhswu3wuruE0o K6aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sPhuTXCt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t8-20020a05640203c800b0051fde3afeaesi10055453edw.689.2023.07.26.12.56.08; Wed, 26 Jul 2023 12:56:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sPhuTXCt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230431AbjGZTXE (ORCPT + 99 others); Wed, 26 Jul 2023 15:23:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232287AbjGZTW5 (ORCPT ); Wed, 26 Jul 2023 15:22:57 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 167E22115; Wed, 26 Jul 2023 12:22:56 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 979B661CA1; Wed, 26 Jul 2023 19:22:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C401CC433C7; Wed, 26 Jul 2023 19:22:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690399375; bh=y2c01r5DrVD9LAWnn2eltEtIg/G4Uc7VK457lA2zvus=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sPhuTXCt42tSTRyuQCBdAgJNzENfkbID3457aJg5QG5aRDw8b+XcU4Jn3F0I7KUJ+ e7dNTp41wpR/6z25W1tHLKbOpA2fR5e5APaB4PqpHTrd29N1ThQI5wb+3fruRZJxUj SD/5yS1g4DV0kLohvGCDCSXqk8VHPqJkMHqy30KyHW1zBMEDbnLx9kBR09VGS461QS R5Z0JbGBUCEcHNkjKMyzaP1NIAH2ZDyg1HxeAKrHukWTXbpMQTpMXK/+rywMkgdrJa jYUSGNtY10gTCg+tQ+it7+QuWOhjUPwtO21UZMN9mjk06t5M3usvOLOBXwQ9n9SczM +JlP8/2oND/Gw== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id EA7E940516; Wed, 26 Jul 2023 16:22:51 -0300 (-03) Date: Wed, 26 Jul 2023 16:22:51 -0300 From: Arnaldo Carvalho de Melo To: Anup Sharma Cc: Adrian Hunter , Namhyung Kim , Ian Rogers , linux-perf-users@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , linux-kernel@vger.kernel.org Subject: Re: [RFC] Adding Support for Firefox's Gecko Profile Format Message-ID: References: <287bf3c8-fa0e-8c36-df14-7d728c63c265@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://acmel.wordpress.com X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Wed, Jul 26, 2023 at 11:34:17PM +0530, Anup Sharma escreveu: > Dear all, > > I want to share a recent development in our project that > I have been working on this week. I have successfully > implemented a new feature that allows users to directly > open the browser and visualize the output of perf.data > on Firefox Profiler. Excellent news! > To enhance user experience, I have made sure this option > is enabled by default. Additionally, I've also added a > handy command line argument, "--save-only," which allows > users to save the output file as needed. This enhancement > replaces the previous standard output method, providing a > much-improved experience. > > Moreover, Everything is processed locally, and no data is > sent to any server. That addresses the worry about sending possibly sensitive data over the network by default, great. > During this implementation, I had the opportunity to delve > into several exciting topics, including threading, HTTP server, > and CORS mechanisms. The learning process has been both > challenging and rewarding. Cool that you're so excited learning all this. > Currently, I am in the process of performing some clean-up tasks. > Once that is complete, I will be sharing the next version of the > series, which includes this fantastic new feature, with all of > you very soon. > > Thank you for your ongoing support and encouragement. Keep it up! - Arnaldo > Thanks, > Anup > > > > Regards, > > > Anup > > > > > > > > > >> > > > > >> The second challenge revolved around the usage of event hooks provided with the perf script > > > > >> python event handlers. I found myself deliberating between two approaches. The first > > > > >> approach involved creating custom functions that would be called using the event > > > > >> handlers. These functions would then save the data in an organized format within > > > > >> globally created data structures. The alternative approach was to write the entire > > > > >> logic inside the event handlers themselves. > > > > >> > > > > >> Additionally, I contemplated whether it would be more suitable to handle the creation of > > > > >> a Gecko format for JSON and the profile format within the same script or to separate > > > > >> them into different scripts. > > > > >> > > > > >> I will discuss this points during tomorrow's office hour. > > > > >> > > > > >> However, I have gained a deeper understanding of the problem at hand and will use this > > > > >> knowledge to make more informed decisions and progress more effectively in the coming weeks. > > > > > > > > > > Sounds like you did a good amount of research on how perf script > > > > > works. We can talk about the details in the meeting. > > > > > > > > > > Thanks, > > > > > Namhyung > > > > -- - Arnaldo