As far as I know, PHP profiling tool XDebug saves its results into files. However, it’s difficult to deal with such files when the application runs in the cloud distributed environment. What’s the best practice to manage such situation? Is there any way in XDebug (preferably somewhere you can place custom handler/callback) you can use to save the results into shared storage?
(Disclaimer: My app runs on MS Azure platform)
Yes this is possible, you can use the xdebug.profiler_output_dir together with DirectoryConfiguration in Azure Diagnostics. The DirectoryConfiguration will pick up the contents of a LocalResource and save it to blob storage.
This is what you’ll need to do:
Once you’ve done this you can access your results using any storage client (like Cloud Storage Studio, CloudXplorer, …).