Development

Tideways and Xhgui in Valet+ (Valet Plus)

This post is for folks who are already familiar with PHP, command line, Valet, Tideways and XHGui.

You can see some explanation and screenshots of Tideways and Xhgui in my Tideways and Xhgui using Dev Desktop post if you need a bit of an introduction.

I’ve successfully gotten Tideways running with Acquia Dev Desktop, Lando, and now Valet+. This post illustrates the process I used to get Tideways, Xhgui, and their dependencies running on my Mac for use in Valet+ sites.

 

Step 1: Setup in Valet the site we want to profile

 

Step 2: Setup Tideways php extension

 

Step 3: Setup mongodb and its php extension

 

Step 4: Setup in Valet the xhgui web application

 

Step 5: Verify PHP extensions

First, restart valet with valet restart .

Then, create an info.php ( <?php phpinfo(); ?> ) file and verify that we have Tideways and mongodb libraries loading.

 

Step 6: Attempt to profile something

Drop in one-liners above and below what you want to profile. Example:

 

Step 7: Import the data into Xhgui and look at the results

Import the data into xhgui’s database

Visit http://xhgui.test

3 Comments

Leave a Reply

Your email address will not be published.