Skip to content
This repository has been archived by the owner on Feb 13, 2023. It is now read-only.

XHProf UI at local.xhprof.com needs improvement #91

Closed
bt-eric opened this issue May 3, 2015 · 11 comments
Closed

XHProf UI at local.xhprof.com needs improvement #91

bt-eric opened this issue May 3, 2015 · 11 comments
Labels

Comments

@bt-eric
Copy link

bt-eric commented May 3, 2015

I noticed that after adding 192.168.88.88 local.xhprof.com in my hosts file to try and use the xhprof ui, the styling was not correct and the autocomplete box was not working. This is due to /usr/share/php/xhprof_html missing css, jquery, and js folders that exist when you download the tgz from https://pecl.php.net/package/xhprof. Locally, I ran the pecl command line to install xhprof and noticed the same behavior. That is, the xhprof_html css, jquery, and js folders were not created.

I added the folders to /usr/share/php/xhprof_html which solved the CSS problem and autocomplete tried to work, but ran into php errors. The errors are due to xhprof_lib replacing the space in the site name with %20, and the file was not found. Changing the site name to "Drupal Test Site" to a name without spaces solved that issue.

@YesCT
Copy link

YesCT commented May 3, 2015

We can find the location of the xhprof_html in https://github.com/geerlingguy/drupal-vm/blob/master/example.config.yml#L50
which says it is /usr/share/php/xhprof_html
(after doing vagrant ssh)
cd /usr/share/php/xhprof_html
ls
I get:
callgraph.php index.php typeahead.php

@bt-eric says they looked at the output of the pecl install, it seemed to do a phpize, make, and make install, but maybe not the ./configure that I had to do when I got xhprof from the facebook repo to work, not in the vm. (See http://yesct.net/xhprof )

@YesCT
Copy link

YesCT commented May 3, 2015

oops. checking the output better, it does do a configure
(search for "running:" in the output

@geerlingguy
Copy link
Owner

So it seems the pecl-based installation might not be up to snuff; I'll look into this in the upstream geerlingguy.php-xhprof project.

@geerlingguy geerlingguy changed the title Can't use XHProf UI from local.xhprof.com: missing xhprof_html css, jquery, and js folders; xhprof_lib doesn't like space in Drupal site name. XHProf UI at local.xhprof.com needs improvement May 9, 2015
@geerlingguy
Copy link
Owner

Updating the title a bit... it seems there are two problems:

  • Missing xhprof_html css, jquery, and js folders
  • xhprof_lib doesn't like space in Drupal site name.

I've fixed the latter (at least with the default install), and for the former, I'll take a look upstream, later, to see if we can get the layout to look a little nicer.

@geerlingguy
Copy link
Owner

This seems to be an upstream bug in the pecl repository for XHProf: Bug #65992 - xhprof_html is incomplete.

Rather than change the method of installation (for now, at least), I'm going to mark this as postponed, pending any further action upstream...

@geerlingguy geerlingguy added postponed and removed bug labels May 10, 2015
@geerlingguy
Copy link
Owner

Just wanted to leave a note here, too; I might want to add Blackfire to Drupal VM at some point (thanks for reminding me, @afraazali!).

@JorisVanEijden
Copy link

Created pull request upstream: phacility/xhprof#66

@oxyc
Copy link
Collaborator

oxyc commented Mar 1, 2016

This is fixed upstream in the xhprof role geerlingguy/ansible-role-php-xhprof#11.

@oxyc oxyc closed this as completed Mar 1, 2016
@geerlingguy
Copy link
Owner

Thanks for your work, @oxyc !

@oxyc
Copy link
Collaborator

oxyc commented Mar 1, 2016

No problem, I was hoping for an additional css file with some styling though :D Does the role need to be tagged or something btw? I noticed it wasnt used on travis yet.

@geerlingguy
Copy link
Owner

Yeah, I'll be tagging later tonight; was away getting supplies for home projects, and then working on said projects. Busy week!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants