aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDawid Pakuła2018-05-30 10:18:05 -0400
committerDawid Pakuła2018-05-30 10:18:05 -0400
commit9a4da9d213bb91c75913c2f8610b2192331f7587 (patch)
tree56166f1ab059eba76025212ea561f34fd340f1cd
parent2d007bbe59cf64cc8a95d59a4a4f748cd3a2487b (diff)
downloadorg.eclipse.pdt-9a4da9d213bb91c75913c2f8610b2192331f7587.tar.gz
org.eclipse.pdt-9a4da9d213bb91c75913c2f8610b2192331f7587.tar.xz
org.eclipse.pdt-9a4da9d213bb91c75913c2f8610b2192331f7587.zip
No bug - Xdebug profiling documentation
Signed-off-by: Dawid Pakuła <zulus@w3des.net>
-rw-r--r--plugins/org.eclipse.php.help/docs/source/016-concepts/200-profiling_concept.md14
-rw-r--r--plugins/org.eclipse.php.help/docs/source/024-tasks/216-profiling/016-profiling_php_web_page.md8
-rw-r--r--plugins/org.eclipse.php.help/docs/source/024-tasks/216-profiling/024-profiling_with_browser_toolbars.md10
-rw-r--r--plugins/org.eclipse.php.help/docs/source/024-tasks/216-profiling/040-importing_profile_sessions.md5
4 files changed, 31 insertions, 6 deletions
diff --git a/plugins/org.eclipse.php.help/docs/source/016-concepts/200-profiling_concept.md b/plugins/org.eclipse.php.help/docs/source/016-concepts/200-profiling_concept.md
index a5028a6e3..f500cc545 100644
--- a/plugins/org.eclipse.php.help/docs/source/016-concepts/200-profiling_concept.md
+++ b/plugins/org.eclipse.php.help/docs/source/016-concepts/200-profiling_concept.md
@@ -17,7 +17,7 @@ See [Locally Profiling a PHP Script](../024-tasks/216-profiling/008-profiling_lo
#### Note:
-Your PHP CLI must be running the Zend Debugger in order for profiling capabilities to function. Xdebug is not supported yet.
+Your PHP CLI must be running the Zend Debugger or Xdebug in order for profiling capabilities to function.
<!--note-end-->
@@ -25,7 +25,7 @@ Your PHP CLI must be running the Zend Debugger in order for profiling capabiliti
Allows you to profile applications situated on a server. It allows you to profile whole applications and projects.
-The PHP Web Page Profile setting has an option to give the files you are working on first priority when profiling, using the Local Copy option. This means that, when possible, file content is taken from the files situated on your Workspace. This prevents you from having to upload the latest revisions.
+The PHP Web Page Profile setting has an option to give the files you are working on first priority when profiling, using the �Local Copy� option. This means that, when possible, file content is taken from the files situated on your Workspace. This prevents you from having to upload the latest revisions.
See [Profiling a PHP Web Page ](../024-tasks/216-profiling/016-profiling_php_web_page.md) for more information.
@@ -33,21 +33,27 @@ See [Profiling a PHP Web Page ](../024-tasks/216-profiling/016-profiling_php_web
#### Note:
-Your PHP server must be running the Zend Debugger in order for profiling capabilities to function. Xdebug is not supported yet.
+Your PHP server must be running the Zend Debugger or Xdebug in order for profiling capabilities to function.
<!--note-end-->
#### Profiling with Browser Toolbars
+##### Zend Debugger
+
You can also start profile session for a web application by using different browser toolbars like [Z-Ray](http://www.zend.com/en/products/server/z-ray) or [Zend Debugger Toolbar](https://addons.mozilla.org/en-US/firefox/addon/zend-debugger-toolbar/).
+#### Xdebug
+
+If you turn on [xdebug.profiler_enable_trigger](https://xdebug.org/docs/all_settings#profiler_enable_trigger) you will able to run via COOKIE/GET/POST parameter "XDEBUG_PROFILE=1". Cookie can be created via browser toolbar, for example [The easiest Xdebug](https://addons.mozilla.org/en-US/firefox/addon/the-easiest-xdebug/) or [Xdebug helper](https://chrome.google.com/webstore/detail/xdebug-helper/eadndfjplgieldjbigjakmdgkmoaaaoc).
+
See [Profiling with Browser Toolbars](../024-tasks/216-profiling/024-profiling_with_browser_toolbars.md) for more information.
<!--note-start-->
#### Note:
-Your PHP server must be running the Zend Debugger in order for profiling capabilities to function. Xdebug is not supported yet.
+Your PHP server must be running the Zend Debugger or Xdebug in order for profiling capabilities to function.
<!--note-end-->
diff --git a/plugins/org.eclipse.php.help/docs/source/024-tasks/216-profiling/016-profiling_php_web_page.md b/plugins/org.eclipse.php.help/docs/source/024-tasks/216-profiling/016-profiling_php_web_page.md
index 9ccd7ddf4..43a8ddc85 100644
--- a/plugins/org.eclipse.php.help/docs/source/024-tasks/216-profiling/016-profiling_php_web_page.md
+++ b/plugins/org.eclipse.php.help/docs/source/024-tasks/216-profiling/016-profiling_php_web_page.md
@@ -4,6 +4,10 @@
This procedure describes how to profile whole applications, projects, files or collections of files that are already on the server.
+#### Note:
+
+For Xdebug, make sure [xdebug.profiler_enable_trigger](https://xdebug.org/docs/all_settings#profiler_enable_trigger) is enabled.
+
1. Click the arrow next to the Profile button ![Profile button](images/profile_icon.png "Profile button") on the toolbar and select **Profile Configurations...** -or- from the main menu go to **Run | Profile Configurations...** -or-right-click in PHP Explorer view and select **Profile As | Profile Configurations...**
2. A Profile launch configuration dialog will appear.
3. Double-click the **PHP Web Application** option to create a new Profile configuration.
@@ -25,6 +29,10 @@ The **PHP Profile Perspective** will open, displaying the **Profiling Monitor**
See [PHP Profile perspective](../../032-reference/008-php_perspectives_and_views/032-php_profile_perspective/000-index.md) for more on the information displayed once a profile session has been run.
+#### Note:
+
+With Xdebug profiler, you have to manually [import profile session](040-importing_profile_sessions.md).
+
<!--links-start-->
#### Related Links:
diff --git a/plugins/org.eclipse.php.help/docs/source/024-tasks/216-profiling/024-profiling_with_browser_toolbars.md b/plugins/org.eclipse.php.help/docs/source/024-tasks/216-profiling/024-profiling_with_browser_toolbars.md
index 9a57b52e3..baac68faf 100644
--- a/plugins/org.eclipse.php.help/docs/source/024-tasks/216-profiling/024-profiling_with_browser_toolbars.md
+++ b/plugins/org.eclipse.php.help/docs/source/024-tasks/216-profiling/024-profiling_with_browser_toolbars.md
@@ -24,6 +24,16 @@ The relevant profile session will be launched in PDT.
The relevant profile session will be launched in PDT.
+### Profiling with Xdebug toolbars
+
+1. Ensure the **Xdebug helper** or **The easiest Xdebug** is installed on your browser.
+2. Make sure [xdebug.profiler_enable_trigger](https://xdebug.org/docs/all_settings#profiler_enable_trigger) is enabled
+3. Open the web page you would like to profile in a browser.
+4. Ensure your PDT is open.
+5. Click the 'Profile' icon on the Xdebug Toolbar to profile the page currently displayed in the browser.
+
+You Xdebug will create CacheGrind. Now you can [import profile session](040-importing_profile_sessions.md)
+
<!--links-start-->
#### Related Links:
diff --git a/plugins/org.eclipse.php.help/docs/source/024-tasks/216-profiling/040-importing_profile_sessions.md b/plugins/org.eclipse.php.help/docs/source/024-tasks/216-profiling/040-importing_profile_sessions.md
index 7eb37c16e..fabbde7d1 100644
--- a/plugins/org.eclipse.php.help/docs/source/024-tasks/216-profiling/040-importing_profile_sessions.md
+++ b/plugins/org.eclipse.php.help/docs/source/024-tasks/216-profiling/040-importing_profile_sessions.md
@@ -7,9 +7,10 @@ This procedure describes how to import PHP profile session(s) to PDT.
1. Open **Profiling Monitor** view if it is not already opened.
2. Right-click in the view to activate context menu and choose **Import...** option to open **Import Profile Session** wizard.
<p>![Profiling Monitor View Import Session](images/import_profile_sessions_1.png "Profiling Monitor View Import Session")</p>
-3. Specify the location of a file with the profile session(s) that you would like to import to PDT.
+3. Choose profiling session format: **Eclipse XML** or **CacheGrind** for Xdebug sessions.
+4. Specify the location of a file with the profile session(s) that you would like to import to PDT.
<p>![Import Profile Session Wizard](images/import_profile_sessions_2.png "Import Profile Session Wizard")</p>
-4. Press **Finish** button to import the profile session(s).
+5. Press **Finish** button to import the profile session(s).
<!--links-start-->