Amfphp now comes with graphical profiling tools. The idea behind these new features is to help you better understand how your server shall perform live, and to give you easy access to the information you need to eliminate bottlenecks and fine-tune performance.
Amfphp Profiler, showing average values for all types of call.
It shows information about how much time is spent in the various stages of processing. The default view shows averages for all your calls. You can get more details on a call by clicking on its name.
Amfphp Profiler, showing details for calls to returnLargeTypedDataSet
Adding your own markers
If you want to add your own markers, you can. For example if your service performs multiple database requests before returning, you might want to know how much time is spent for each request. If you add your own markers, these shall also show up in the profiler.
Below you can see the usual Amfphp times, plus CUSTOM operation 1 to 3.
Amfphp Profiler, showing times for custom markers
The Service Browser’s Call Repeater
The Service Browser now comes with a Call Repeater. It allows you to generate a new request as soon as the old one is finished. You can also control the number of concurrent users.
Service Browser detail: the Call Dialog, with emphasis on the Call Repeater functions
You can then observe this in the Profiler using the auto refresh function.
This is useful for example if you want to tweak your system for performance and don’t want to test manually between each change.
The video below demonstrates this, with and without flushing at each refresh, and using adding Baguette AMF as an example of tweaking performance.
Video showing how to use the Service Browser’s Call Repeater together with the Profiler. View online here.
More New Stuff
You can now send and received AMF Vectors.
- A big thank you to Pol Goasdoué who provided invaluable feedback and suggestions about the User Experience and came up with the new design. Amfphp has never looked better, and it’s thanks to him.
- Thanks also to Mick Powell who provided inspiration and code regarding AMF Vectors.
If you’ve read so far, you’re surely dying to try it out. Get Amfphp 2.2 Profiler here!
Yes, this is a profile.