Hex View in Flash builder Network Monitor

In Flash builder 4 Network monitor feature in the current beta 2 build, an enhancement has been made to show Hex View along with tree view and raw view for both request and response data. Hex View will especially helps to debug the network calls when the binary data is transferred between client and server.


Please provide the feed back on the network monitor feature. If you would like to have any of the feature to be built in network monitor please file an enhancement request at http://bugs.adobe.com/flex

Flash Builder Network Monitor

Network Monitor feature in Adobe Flash Builder 4 enables developers to analyze the networks calls made by Flex application to back end data servers. Network monitor helps developers to analyze the performance of network calls and debug application when the response from the server is retrieved. This feature does not record all the network calls made by Flash player. Network calls made by Flex application running on Flash player or using AIR runtime can be recorded in Network monitor. It does not support application created in pure ActionScript and for Library projects. Network monitor supports HTTP, SOAP and AMF protocols so it can record the network calls made using HTTP Service, Web Service, Remote Service, Data Service and Messaging Services. It also supports HTTPS network calls made out of Flex application.

Network monitor shows the necessary information required for the developer to debug his application making network calls by providing some of the very useful information such as URL, the type of service, Request time, Response Time, Elapsed time and the operation. Selecting the record will show the Request and Response data of the network call. The Request will contain the Request Header and Request body along with other information such as Request Status, ID, Parameters sent, header size and the body size. Response will contain the Response Header and the response body along with other information such as Response Status, ID, header size and the body size. Response body will also contain the type of data retried form the server. It could be XML, JSON or an AMF type of data.

Network monitor allows developer to switch between Tree View and the Raw View. Tree View shows the Request and Response body in a neat tree structure format. It will be easy for developers to view the data from sent or received where as in raw view, raw data transferred when request or response is made.

Network monitor also provides support to save the network monitor data locally in a XML format. Developer can view the saved data in any of the XML editors or using the browser. Developers can suspend the network monitor calls when ever they do not want to record network calls they can resume network calls when ever they want to monitor network calls.

Source code correlation in Network Monitor will take the developer to the location in the source code where exactly the network call has been made when double clicked on any of the network call.



Step 1

Enable network monitor from Network Monitor tab in Flash Builder. This will compile Flex application with the necessary library file (netmon.swc) which is required for compiling the Network Monitor. Once the network monitor is enabled, network monitor status shows a message a enabled network monitor for the current project.

Step 2

Run or Debug the application, when the application makes any of the network calls, Network Monitor will record the network calls. Observe that each network call will show some important information such as Status, URL, Request time, Response Time, Elapsed time and the operation are shown.

Step 3

Click on the Network Monitor record, In the Request tab, request header, request header and body size and request body information is shown along with Status and Request ID. In the Response tab, response header, response header and body size and response body is shown along with response status. Also the type of data received is shown in the body. The type of data received can be of XML, JSON or AMF. Select Raw view to view the actual data sent or received.

Step 4

Double click on the network record will take to the location where the network call has been made. This will help developer when the network call fails or if he has to fix the performance of this particular call, developer can easily navigate to the source code where exactly this call has been made and fix his code.

Creating DCRAD application using BlazeDS server

Flash Builder 4 provides an exciting support to develop a rapid application using Flex. The data source can be of type HTTPService, WebService or a RemoteService through various protocolos such as REST, SOAP and AMF. Currently Flex supports Remoting for PHP, Coldfusion and for Java through BlazeDS proxy.

Here is a small demo to create a CRUD operation for BlazeDS services.

http://my.adobe.acrobat.com/p37733785/

You can download the of BlazeDS from below location.

http://opensource.adobe.com/wiki/display/blazeds/download+blazeds+trunk

Download Flash builder 4 Beta from

http://labs.adobe.com/technologies/flashbuilder4/

Let us know your on BlazeDS support to DCRAD workflow.

Profiler : Finding shortest path to GC root

Flash Builder 4 profiler now has new enhancement for memory profiling which is 'Showing N paths to GC'. It is more better and simpler way of viewing the paths to GC root. With this enhancement profiler now shows the shortest paths to GC. This will help developers to analyze why the object is still holding in the memory. Thus analyzing whether the application is having the memory leak is now is more simpler.

Please go through the below link to use the memory profiling with the above enhancement to view the shortest paths to GC.

http://my.adobe.acrobat.com/p29577806/

Please let us know your thoughts on this new enhancement. And also please let us know any enhancements you would like to have in the Profiler.