xhgui | Web interface for XHProf profiling data | Database library
kandi X-RAY | xhgui Summary
kandi X-RAY | xhgui Summary
A graphical interface for XHProf profiling data that can store the results in MongoDB or PDO database. Application is profiled and the profiling data is transferred to XHGui, which takes that information, saves it in MongoDB (or PDO database), and provides a convenient GUI for working with it.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Takes a donus segment of the vertices .
- Default prefet handler .
- trigger brush event
- Callback for the AJAX request .
- Create an animation
- Creates a new matcher matcher .
- Create a compound .
- Creates a new matcher handler .
- clip - area clip - intercept
- d3d tree layout
xhgui Key Features
xhgui Examples and Code Snippets
Community Discussions
Trending Discussions on xhgui
QUESTION
I'm trying to setup Xhgui with Xhprof. I followed the github instructions (https://github.com/perftools/xhgui), but this error message keeps appearing in error logs :
"xhgui - document to insert contains invalid key: keys cannot contain ".": "main()==>load..."
Looks like mongoDB can't use dots in keys, but yet Xhgui is trying to do that.
Is there a way do disable this limitation in mongoDB ? Or to fix this bug in Xhgui ?
...ANSWER
Answered 2017-Nov-30 at 10:00https://github.com/perftools/xhgui/issues/209#issuecomment-339281276
For anyone experiencing this issue, I was able to make it work by adding the following snippet of code to xhgui/external/header.php right before ignore_user_abort(true); call. Not sure how correct is this and if it could affect anything else, but it did the trick for me.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install xhgui
Clone or download xhgui from GitHub.
Point your webserver to the webroot directory.
Set the permissions on the cache directory to allow the webserver to create files. If you're lazy, 0777 will work. The following command changes the permissions for the cache directory: chmod -R 0777 cache
Start a MongoDB instance. XHGui uses the MongoDB instance to store profiling data.
If your MongoDB setup uses authentication, or isn't running on the default port and localhost, update XHGui's config/config.php so that XHGui can connect to your mongod instance.
(Optional, but recommended) Add indexes to MongoDB to improve performance. XHGui stores profiling information in a results collection in the xhprof database in MongoDB. Adding indexes improves performance, letting you navigate pages more quickly. To add an index, open a mongo shell from your command prompt. Then, use MongoDB's db.collection.ensureIndex() method to add the indexes, as in the following: $ mongo > use xhprof > db.results.ensureIndex( { 'meta.SERVER.REQUEST_TIME' : -1 } ) > db.results.ensureIndex( { 'profile.main().wt' : -1 } ) > db.results.ensureIndex( { 'profile.main().mu' : -1 } ) > db.results.ensureIndex( { 'profile.main().cpu' : -1 } ) > db.results.ensureIndex( { 'meta.url' : 1 } ) > db.results.ensureIndex( { 'meta.simple_url' : 1 } ) > db.results.ensureIndex( { 'meta.SERVER.SERVER_NAME' : 1 } )
Install dependencies with composer composer install --no-dev
Set up your webserver. The Configuration section below describes how to setup the rewrite rules for both nginx and apache.
This setup uses docker-compose to orchestrate docker containers.
Clone or download xhgui from GitHub.
Startup the containers: docker-compose up -d
Open your browser at http://xhgui.127.0.0.1.xip.io:8142 or just http://localhost:8142 or type at terminal composer open
To customize xhgui, copy config/config.default.php to config/config.php and edit that file.
To customize docker-compose, copy docker-compose.yml to docker-compose.override.yml and edit that file.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page