Dive into Oracle ADF

Send me a mail
 Dive into Oracle ADF   Click to see the XML version of this web page.   (Updated: 2/3/2008; 9:20:24 PM.)
Tips and tricks from Steve Muench on Oracle ADF Framework and JDeveloper IDE

Search blog with Google:
 

Search BC4J JavaDoc:
 

August 2006
Sun Mon Tue Wed Thu Fri Sat
    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    
Jul   Sep

Get Firefox!

Thursday, August 31, 2006

JDeveloper 10g has a number of built-in profiling tools:

  • Execution Profiler - to study method-level performance
  • Memory Profiler - to track down inadvertent memory leaks
  • Event Profiler - to see a Gantt chart of higher-level events in your application and how long they took to execute.

The ADF Business Components layer of the ADF framework comes pre-instrumented with 15-20 events to observe the timings of interesting happenings like loading metadata, executing SQL statements, and other things. In addition, the oracle.jdeveloper.profiler.ProfilerAPI class provides startEvent() and stopEvent() methods that let you define your own higher-level application-specific event names that will show up in the event profiler output.

Trouble is, I couldn't get the darn thing to work in 10.1.3. I just wouldn't see any of the ADF BC events showing up in the Event Profiler. I finally figured out that I needed to add a library to my project named "JDeveloper Runtime" before it would work. That library got automatically added to projects in the 9.0.4 release of JDeveloper, but starting in 9.0.5 and later it doesn't get added automatically.


8:30:52 AM    



© Copyright 2008 Steve Muench.