Page MenuHomePhabricator
Feed Advanced Search

Jan 30 2019

epriestley added a comment to T12297: Make Conduit API calls on `admin.phacility.com` reasonably easy to profile.

Success! D20046 worked to fix the "profiler not sticking across form posts" issue on secure. 🐈

Jan 30 2019, 7:56 PM · XHProf, Ops, Phacility

Jan 28 2019

epriestley added a revision to T12297: Make Conduit API calls on `admin.phacility.com` reasonably easy to profile: D20046: Read "$_POST" before hooking the profiler, and remove "aphront.default-application-configuration-class".
Jan 28 2019, 7:09 PM · XHProf, Ops, Phacility
epriestley added a comment to T12297: Make Conduit API calls on `admin.phacility.com` reasonably easy to profile.

Yeah, I think the issue is:

Jan 28 2019, 6:41 PM · XHProf, Ops, Phacility
epriestley added a comment to T12297: Make Conduit API calls on `admin.phacility.com` reasonably easy to profile.

The "keep the profiler on across form submissions" code isn't working on secure.phabricator.com, even though it works locally and __profile__=page appears on the "Request" tab.

Jan 28 2019, 4:58 PM · XHProf, Ops, Phacility

Sep 27 2018

epriestley moved T9254: Make --xprofile upload to XHProf from Backlog to Upstream on the Arcanist board.
Sep 27 2018, 3:17 PM · XHProf, Arcanist

Nov 29 2017

epriestley added a comment to T9805: XHProf will not build on PHP7.

(I'm also open to improvements to the XHProf UI in Phabricator if you plan to use that to store and review profiles. Many obvious features like tagging and API access which would make it more usable for handling profiles of projects other than Phabricator itself are likely very easy to implement. But I'm not sure there's tons of room for real integrations, even if you used everything else in Phabricator, and you may imagine tooling which can't realistically exist in the scope of Phabricator.)

Nov 29 2017, 9:05 PM · XHProf
epriestley added a comment to T9805: XHProf will not build on PHP7.

For general context:

Nov 29 2017, 8:58 PM · XHProf
20after4 updated subscribers of T9805: XHProf will not build on PHP7.
Nov 29 2017, 6:50 PM · XHProf

Nov 28 2017

epriestley added a revision to T12297: Make Conduit API calls on `admin.phacility.com` reasonably easy to profile: Restricted Differential Revision.
Nov 28 2017, 3:51 PM · XHProf, Ops, Phacility

Apr 4 2017

epriestley removed a project from T7954: Make it easier to upload XHProf profiles: Files.

(This isn't really very closely related to the Files application anymore, just cleaning up that board a little.)

Apr 4 2017, 1:01 PM · Infrastructure, XHProf

Feb 26 2017

epriestley added a comment to T9805: XHProf will not build on PHP7.

I have a build of this that technically works now (produces profiles, passes tests, does not segfault when gently poked). It's still extremely really rough so I don't know when I'll clean it up enough to push upstream.

Feb 26 2017, 11:45 PM · XHProf

Feb 25 2017

epriestley added a comment to T12297: Make Conduit API calls on `admin.phacility.com` reasonably easy to profile.

Total cost is about 1.6s. Of this:

Feb 25 2017, 4:09 PM · XHProf, Ops, Phacility
epriestley added a comment to T12297: Make Conduit API calls on `admin.phacility.com` reasonably easy to profile.

This is still a little bit of a pain but far more reasonable now, here's an actual profile:

Feb 25 2017, 4:03 PM · XHProf, Ops, Phacility

Feb 23 2017

epriestley added a comment to T7954: Make it easier to upload XHProf profiles.

I didn't "ref" it here, but D17401 sort of technically did this. I'd like to clean it up a bit more before calling this resolved, though -- particularly, this is basically a secret that only I know about.

Feb 23 2017, 7:34 PM · Infrastructure, XHProf
epriestley added a revision to T12297: Make Conduit API calls on `admin.phacility.com` reasonably easy to profile: D17401: Allow XHProf profiles to be drag-and-dropped to upload them.
Feb 23 2017, 6:41 PM · XHProf, Ops, Phacility
epriestley added a revision to T12297: Make Conduit API calls on `admin.phacility.com` reasonably easy to profile: D17400: Use ApplicationSearch in XHProf.
Feb 23 2017, 5:59 PM · XHProf, Ops, Phacility
epriestley added a revision to T12297: Make Conduit API calls on `admin.phacility.com` reasonably easy to profile: D17399: When the profiler is active, keep it active if the user submits forms.
Feb 23 2017, 5:31 PM · XHProf, Ops, Phacility

Feb 22 2017

epriestley added a subtask for T12297: Make Conduit API calls on `admin.phacility.com` reasonably easy to profile: T7954: Make it easier to upload XHProf profiles.
Feb 22 2017, 12:16 PM · XHProf, Ops, Phacility
epriestley added a parent task for T7954: Make it easier to upload XHProf profiles: T12297: Make Conduit API calls on `admin.phacility.com` reasonably easy to profile.
Feb 22 2017, 12:16 PM · Infrastructure, XHProf

Feb 20 2017

epriestley added a comment to T12297: Make Conduit API calls on `admin.phacility.com` reasonably easy to profile.

Some possible approaches here:

Feb 20 2017, 4:34 PM · XHProf, Ops, Phacility
epriestley updated the task description for T12297: Make Conduit API calls on `admin.phacility.com` reasonably easy to profile.
Feb 20 2017, 4:33 PM · XHProf, Ops, Phacility
epriestley created T12297: Make Conduit API calls on `admin.phacility.com` reasonably easy to profile.
Feb 20 2017, 4:19 PM · XHProf, Ops, Phacility
epriestley added a parent task for T9805: XHProf will not build on PHP7: T12101: Phabricator PHP 7 Compatibility.
Feb 20 2017, 4:16 PM · XHProf
epriestley moved T7954: Make it easier to upload XHProf profiles from Backlog to vNext on the XHProf board.
Feb 20 2017, 4:13 PM · Infrastructure, XHProf

Dec 3 2016

legoktm added a comment to T9805: XHProf will not build on PHP7.

For reference, xhprof will not be included in Debian Stretch due to lack of PHP7 support: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=846138

Dec 3 2016, 11:30 PM · XHProf

Apr 1 2016

michaeljs1990 added a comment to T9805: XHProf will not build on PHP7.

keep in mind that that was successfully compiled by removing lots of code https://github.com/RustJason/xhprof/commit/6c473e39fa93fb7f0acc3fae73f626e5c66dff1a and i'm not completely sure of the implications of the changes.

Apr 1 2016, 8:38 PM · XHProf

Feb 15 2016

kleijnweb added a comment to T9805: XHProf will not build on PHP7.

For my (and others') understanding, the discussion is limited to how to make the needed changes BC, otherwise https://github.com/RustJason/xhprof/tree/php7 would be fine? If so, might I suggest a new major version?

Feb 15 2016, 6:13 AM · XHProf

Nov 19 2015

Mnkras added a comment to T9805: XHProf will not build on PHP7.

I don't think that is going to work here are some things I pulled from the extension migration page (unless we ifdef large blocks of code):

zval

  • PHPNG doesn't require any involvement of pointers to pointers to zval. Most occurrences of zval** variables and parameters have to be changed into zval*. The corresponding Z_*_PP() macros that work with such variables should be changed into Z_*_P().
  • In many places PHPNG work with zval directly (eliminating need for allocation and deallocation). In these cases corresponding zval* variable should be converted into plain zval, macros that use this variable from Z_*P() into Z_*() and corresponding creation macros from ZVAL_*(var, …) into ZVAL_*(&var, …). Be always careful about passing addresses of zval and & operator. PHPNG almost never require passing address of zval*. In some places & operator should be removed.
  • zval allocation macros ALLOC_ZVAL, ALLOC_INIT_ZVAL, MAKE_STD_ZVAL are removed. In most cases their usage indicate that zval* need to be changed into plain zval. Macro INIT_PZVAL is removed as well and its usages in most cases should be just removed.
Nov 19 2015, 2:39 AM · XHProf

Nov 18 2015

epriestley added a comment to T9805: XHProf will not build on PHP7.
  • If the changes are relatively minor, add a bunch more #ifdefs? We already have some of this to deal with prior API changes, and I believe this approach is historically a standard one across other extensions.
    • If the changes are substantial, maybe we need to get more creative.
Nov 18 2015, 4:14 PM · XHProf
Mnkras updated subscribers of T9805: XHProf will not build on PHP7.

@epriestley, due to the fact that the Zend APIs for PHP7+ are different than those in PHP5* how should changes to XHProf be submitted so we don't break stuff?

Nov 18 2015, 3:29 PM · XHProf

Nov 17 2015

richardvanvelzen added a comment to T9805: XHProf will not build on PHP7.

https://wiki.php.net/phpng-upgrading should contain a lot of relevant information.

Nov 17 2015, 8:48 PM · XHProf
joshuaspence renamed T9805: XHProf will not build on PHP7 from XHPAST will not build on PHP7 to XHProf will not build on PHP7.
Nov 17 2015, 7:07 AM · XHProf
Mnkras added a parent task for T9805: XHProf will not build on PHP7: T9640: Make Phabricator compatible with PHP7.
Nov 17 2015, 4:49 AM · XHProf
Mnkras created T9805: XHProf will not build on PHP7.
Nov 17 2015, 4:37 AM · XHProf

Aug 25 2015

epriestley added a comment to T9254: Make --xprofile upload to XHProf.

--upload-xprofile is definitely more useful overall than --xprofile <file> since 99% of the time I've also done some approximation of that upload dance, it just feels a little weird for some stuff to take --xprofile <file> and some stuff to take --xprofile which takes no argument and means something completely different.

Aug 25 2015, 4:17 AM · XHProf, Arcanist

Aug 24 2015

joshuaspence added a comment to T9254: Make --xprofile upload to XHProf.

It seems sort-of-nice-to-have to have the raw version, maybe.

Aug 24 2015, 9:34 PM · XHProf, Arcanist
joshuaspence added a comment to T9254: Make --xprofile upload to XHProf.

Not sure if it would be desirable but perhaps Arcanist would override libphutil's --xprofile and wrap around it to provide the suggested functionality? This is probably too magical. arc --upload-xprofile seems reasonable.

Aug 24 2015, 9:32 PM · XHProf, Arcanist
epriestley added a comment to T9254: Make --xprofile upload to XHProf.

I think --xprofile is provided by libphutil but it doesn't know about Phabricator. It seems sort-of-nice-to-have to have the raw version, maybe. Not sure how easy it is to add --upload-xprofile to arc.

Aug 24 2015, 9:30 PM · XHProf, Arcanist
joshuaspence updated the task description for T9254: Make --xprofile upload to XHProf.
Aug 24 2015, 8:57 PM · XHProf, Arcanist
joshuaspence updated the task description for T9254: Make --xprofile upload to XHProf.
Aug 24 2015, 8:57 PM · XHProf, Arcanist
joshuaspence created T9254: Make --xprofile upload to XHProf.
Aug 24 2015, 8:56 PM · XHProf, Arcanist

Aug 6 2015

joshuaspence added a member for XHProf: joshuaspence.
Aug 6 2015, 9:08 AM

May 7 2015

epriestley triaged T7954: Make it easier to upload XHProf profiles as Wishlist priority.
May 7 2015, 1:42 PM · Infrastructure, XHProf

Apr 26 2015

joshuaspence created T7954: Make it easier to upload XHProf profiles.
Apr 26 2015, 10:12 PM · Infrastructure, XHProf

Mar 13 2015

chad closed T7300: XHProf application is not optimized for mobile as Resolved.

Should be resolved, probably.

Mar 13 2015, 6:41 PM · Mobile, XHProf

Mar 5 2015

chad added a revision to T7300: XHProf application is not optimized for mobile: D11980: Set device true on all XHProf pages.
Mar 5 2015, 4:47 PM · Mobile, XHProf
epriestley added a comment to T7300: XHProf application is not optimized for mobile.

Definitely desirable, although some of them (releeph, oauth server, arcanist project edit) might be tricky to test.

Mar 5 2015, 4:20 PM · Mobile, XHProf
chad added a comment to T7300: XHProf application is not optimized for mobile.

There is a manageable number of buildStandardPage callsites, might be easy to remove if there is only 1-2 missing features.

Mar 5 2015, 4:12 PM · Mobile, XHProf
chad added a comment to T7300: XHProf application is not optimized for mobile.

Typically I'd just switch this over to buildApplicationPage and call it a day, but I don't think that works with frame.

Mar 5 2015, 4:11 PM · Mobile, XHProf
epriestley added a comment to T7300: XHProf application is not optimized for mobile.

I think we can put the frame logic in buildApplicationPage(), and then switch to it. I can tackle that if you aren't sure how to not break stuff.

Mar 5 2015, 4:10 PM · Mobile, XHProf
epriestley added a comment to T7300: XHProf application is not optimized for mobile.

buildApplicationPage() calls setDeviceReady(true) on the $page, buildStandardPage() does not.

Mar 5 2015, 4:09 PM · Mobile, XHProf
chad added a comment to T7300: XHProf application is not optimized for mobile.

I'm not sure how best to proceed here. What's the difference with buildApplicationPage and buildStandardPage when it comes to device?

Mar 5 2015, 4:06 PM · Mobile, XHProf
epriestley added a comment to T7300: XHProf application is not optimized for mobile.

Removing $is_framed will break the DarkConsole "XHProf" tab, which loads the profile in an <iframe />.

Mar 5 2015, 3:21 PM · Mobile, XHProf
chad added a comment to T7300: XHProf application is not optimized for mobile.

hmmm maybe this is buildStandardPage thing.

Mar 5 2015, 3:20 PM · Mobile, XHProf
chad added a comment to T7300: XHProf application is not optimized for mobile.

Oh, on an actual mobile device. We should remove that JS check now, I think it's safe globally.

Mar 5 2015, 2:59 PM · Mobile, XHProf
chad added a comment to T7300: XHProf application is not optimized for mobile.

I assume you mean the table? That is our mobile display for tables (scrollable).

Mar 5 2015, 2:28 PM · Mobile, XHProf
joshuaspence reopened T7300: XHProf application is not optimized for mobile as "Open".

Not quite, see https://secure.phabricator.com/xhprof/profile/PHID-FILE-i37p3oetbxkqjt2fs35h/.

Mar 5 2015, 8:15 AM · Mobile, XHProf

Feb 26 2015

chad added a comment to T7300: XHProf application is not optimized for mobile.

Seems working fine now on mobile.

Feb 26 2015, 3:33 AM · Mobile, XHProf
chad closed T7300: XHProf application is not optimized for mobile as Resolved.
Feb 26 2015, 3:33 AM · Mobile, XHProf

Feb 18 2015

epriestley added a comment to T7300: XHProf application is not optimized for mobile.

I almost merged them when they popped up. :P

Feb 18 2015, 3:05 PM · Mobile, XHProf
chad added a comment to T7300: XHProf application is not optimized for mobile.

OIC, I am confusing XPHAST and XHPROF tasks, I'm a bit jetlagged it seems. Didn't notice two different tasks here.

Feb 18 2015, 3:04 PM · Mobile, XHProf
chad added a comment to T7300: XHProf application is not optimized for mobile.

Haha, well you know me and killing apps. Always a fan. :-)

Feb 18 2015, 2:53 PM · Mobile, XHProf
epriestley triaged T7300: XHProf application is not optimized for mobile as Wishlist priority.

This stretches the bounds of imagination, but I can come up with a use: although we do only a tiny amount of this today, a possible use case is that we may take a different server-side rendering pathway for mobile agents than we do for desktop agents in the future. This does technically happen today, but the amount of code involved is tiny, and is unlikely to ever affect a profile.

Feb 18 2015, 2:50 PM · Mobile, XHProf
chad added a comment to T7300: XHProf application is not optimized for mobile.

@joshuaspence my assumption is exactly 0 people use this tool on mobile, And maybe 5 use it on desktop.

Feb 18 2015, 2:33 PM · Mobile, XHProf
joshuaspence added a comment to T7300: XHProf application is not optimized for mobile.

Definitely low priority, but why not?

Feb 18 2015, 7:39 AM · Mobile, XHProf
chad added a comment to T7300: XHProf application is not optimized for mobile.

I can't imagine someone using this on mobile, is there a need for it o can't think of?

Feb 18 2015, 2:00 AM · Mobile, XHProf
chad removed a project from T7300: XHProf application is not optimized for mobile: Design.
Feb 18 2015, 2:00 AM · Mobile, XHProf

Feb 17 2015

joshuaspence created T7300: XHProf application is not optimized for mobile.
Feb 17 2015, 8:50 PM · Mobile, XHProf

Dec 3 2014

richardvanvelzen added a comment to T6675: Profile GC costs in XHProf.

Qafoolabs mentions a "proposed timing API" in a pull request. I can't seem to find anything about anything having been proposed, but it might be worthwhile to keep that in mind.

Dec 3 2014, 11:36 AM · XHProf

Dec 2 2014

richardvanvelzen added a comment to T6675: Profile GC costs in XHProf.

I do see that gc_runs and collected are available (via GC_G(...)) unconditionally? It's not much, but it's more than is available now.

Dec 2 2014, 7:03 PM · XHProf
epriestley added a comment to T6675: Profile GC costs in XHProf.

What I'm ideally after is gc_check_possible_root (or some similar call) to be a global function pointer which we could rebind like XHProf currently rebinds zend_execute and similar -- basically do this dance:

Dec 2 2014, 6:36 PM · XHProf
richardvanvelzen added a comment to T6675: Profile GC costs in XHProf.

Pretty sure you've been across the same path as I was, but I want to share my findings just in case someone can find a way to use it:

Dec 2 2014, 6:27 PM · XHProf
epriestley added a comment to T6675: Profile GC costs in XHProf.

I poked at this very briefly and didn't immediately see a way to hook the GC from an extension, at least in PHP 5.4.

Dec 2 2014, 5:30 PM · XHProf
epriestley created T6675: Profile GC costs in XHProf.
Dec 2 2014, 5:10 PM · XHProf