From owner-freebsd-gecko@freebsd.org Sat May 28 13:47:38 2016 Return-Path: Delivered-To: freebsd-gecko@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 58C82B4EA63 for ; Sat, 28 May 2016 13:47:38 +0000 (UTC) (envelope-from isoa@kapsi.fi) Received: from mail.kapsi.fi (mx1.kapsi.fi [IPv6:2001:1bc8:1004::1:25]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1DE1F1DBC for ; Sat, 28 May 2016 13:47:37 +0000 (UTC) (envelope-from isoa@kapsi.fi) Received: from 91-159-15-56.elisa-laajakaista.fi ([91.159.15.56] helo=[192.168.255.143]) by mail.kapsi.fi with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1b6eaW-0001Do-2F for freebsd-gecko@freebsd.org; Sat, 28 May 2016 16:47:36 +0300 To: freebsd-gecko@freebsd.org From: Arto Pekkanen Subject: How to profile www/firefox to find out the reason for high CPU usage Message-ID: Date: Sat, 28 May 2016 16:47:34 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="6LnAsTVmCJb6KO0abtdmlM0CFssSmLqSr" X-SA-Exim-Connect-IP: 91.159.15.56 X-SA-Exim-Mail-From: isoa@kapsi.fi X-SA-Exim-Scanned: No (on mail.kapsi.fi); SAEximRunCond expanded to false X-BeenThere: freebsd-gecko@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Gecko Rendering Engine issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 May 2016 13:47:38 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --6LnAsTVmCJb6KO0abtdmlM0CFssSmLqSr Content-Type: multipart/mixed; boundary="knXEav6HwaSFwu7QK2PxDpjecrN2sjX6N" From: Arto Pekkanen To: freebsd-gecko@freebsd.org Message-ID: Subject: How to profile www/firefox to find out the reason for high CPU usage --knXEav6HwaSFwu7QK2PxDpjecrN2sjX6N Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello. I've noticed that there is a constant problem with high CPU usage with www/firefox on my laptop (Thinkpad T430, dual-core i5, 8 Gt RAM). The high CPU usage is primarily on the firefox process itself. Firefox is installed from FreeBSD-latest repository, and all the related components are also vanilla, so the should be no margin for user error. I can reproduce the high CPU usage just by opening a couple dozen tabs and then letting Firefox run for a few hours. In order to fix this high CPU usage, I would need to figure out how much time gets spent in which components of Firefox, ie. I need to profile Firefox. However, I lack knowledge on how to do this. The "official" documentation only mentions installing the profiler plugin (.xpi), but the plugin does NOT work on FreeBSD out of box. It doesn't work even if I build Firefox with profiling support enabled. So ... how can profile Firefox, any ideas? How do you guys do it? Is there some complicated set of utilities I need to use? --=20 Arto Pekkanen --knXEav6HwaSFwu7QK2PxDpjecrN2sjX6N-- --6LnAsTVmCJb6KO0abtdmlM0CFssSmLqSr Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iF4EAREIAAYFAldJoXcACgkQTBivhqtJa27pTQEAgm/uSVy+jYhWs9SPQ9mxtsGp wLOW4rU914T/dFSfAzcBALOTJyex+iCgr8hIk/0ltLuHO9vI/EqlR5k0pSclOC2k =D2gp -----END PGP SIGNATURE----- --6LnAsTVmCJb6KO0abtdmlM0CFssSmLqSr--