Tuesday Mar 25, 2008

Tracing PHP Function Calls Using DTrace

In NetBeans, you can use the DTrace plug-in to analyze the performance of your PHP applications. A DTrace provider for PHP that adds probes to function entry and exit points has been available through Cool Stack. The support is also provided through Web Stack, if you are using SXDE 1/08.

To get started, follow these tutorials:
1.Configure NetBeans for DTrace.
2.Get PHP DTrace Extension.

Once you are done with the steps provided in the above articles, start your Apache web server and check the probes.

bash-3.2# dtrace -l | grep php

17952    php1895         dtrace.so       php_dtrace_execute function-entry
17953    php1895         dtrace.so       php_dtrace_execute_internal function-entry
17954    php1895         dtrace.so       php_dtrace_execute function-return
17955    php1895         dtrace.so       php_dtrace_execute_internal function-return
17956    php1896         dtrace.so       php_dtrace_execute function-entry
......
......

I'm running a simple PHP application that has some function calls. Go to the DTrace window in the NetBeans IDE and start the
php_flowtime.d
script.



Here is my output. The output shows which function is being invoked and the invoke time.



My example has only a few SOAP calls. If you have a complex application with DB calls, this script will be useful to analyze the performance bottlenecks in your application.

Friday Dec 14, 2007

NetBeans IDE 6.0 now available with features that will be in the next Sun Studio IDE

NetBeans IDE 6.0 is now available for download at http://download.netbeans.org/netbeans/6.0/final/. Select the C/C++ bundle, which includes the base IDE and C/C++ support. Installation on Solaris, Linux, Windows, or Mac OS X is quick and simple.

You can create projects now using NetBeans IDE 6.0, and work with these projects in the next release of the Sun Studio IDE.

New features added to the C/C++ support in this release of NetBeans IDE 6.0 will be available in the Sun Studio IDE in SXDE 1/08 and Sun Studio Express 1/08, which will be released in January/February. These features include:

- Improvements in the Classes window, which lets you see all the classes in your project and their members and fields.

- New Include hierarchy, which lets you inspect the hierarchy of source and header files in your project

- New Type hierarchy, which lets you inspect all types and subtypes of a class

- Code completion for #include directives 

 

 

 

 


About

Application development on Solaris OS

Search

Archives
« July 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
  
       
Today