{"id":1575,"date":"2011-01-19T16:12:12","date_gmt":"2011-01-19T15:12:12","guid":{"rendered":"http:\/\/glandium.org\/blog\/?p=1575"},"modified":"2011-01-21T20:14:30","modified_gmt":"2011-01-21T19:14:30","slug":"little-extension-to-expose-startup-time","status":"publish","type":"post","link":"https:\/\/glandium.org\/blog\/?p=1575","title":{"rendered":"Little extension to expose startup time"},"content":{"rendered":"<p>A few days ago, <a href=\"http:\/\/blog.mozilla.com\/tglek\/\">Taras<\/a> <a href=\"http:\/\/hg.mozilla.org\/mozilla-central\/rev\/dfdf3e5dc749\">landed<\/a> a <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=522375\">new API to gather startup timings<\/a> for a few events occurring when Firefox starts.<\/p>\n<p>The timings that are currently reported through this API are the following:<\/p>\n<ul>\n<li><strong>process<\/strong> is when the Firefox process starts<\/li>\n<li><strong>main<\/strong> is when the <code>XRE_main<\/code> function is called (one of the first functions actively called)<\/li>\n<li><strong>firstPaint<\/strong> is when a web page has been displayed for the first time to the user<\/li>\n<li><strong>sessionRestored<\/strong> is pretty much self describing<\/li>\n<\/ul>\n<p>There are apparently still a few rough edges, but it is still quite valuable information. As such, I wrote a little (restart-less) extension that displays these information when you go to the about:startup url. It doesn't really display the raw values, but instead the number of milliseconds elapsed since the process startup until each further event above.<\/p>\n<p><a href=\"\/files\/startup.xpi\" onclick=\"InstallTrigger.install({'Startup' : { URL: event.target.href, Hash: '7e1b6808c544029c60d826031b6ad920426ceed4', toString: function() { return this.URL; }}); return false;\">Install extension.<\/a><\/p>\n<p>In the long run, we should have a <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=593743\">fully fledged extension<\/a> doing that.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A few days ago, Taras landed a new API to gather startup timings for a few events occurring when Firefox starts. The timings that are currently reported through this API are the following: process is when the Firefox process starts main is when the XRE_main function is called (one of the first functions actively called) [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[23],"class_list":["post-1575","post","type-post","status-publish","format-standard","hentry","category-planet-mozilla","tag-en"],"_links":{"self":[{"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1575","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1575"}],"version-history":[{"count":8,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1575\/revisions"}],"predecessor-version":[{"id":1596,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1575\/revisions\/1596"}],"wp:attachment":[{"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1575"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1575"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1575"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}