“Profiling is achieved by instrumenting either the program source doe or its binary executable form using a tool called a profiler (or code profiler)”
Code Profiling
- Thread dumps – use hAC or jstack (command line)
- Most frequently called method?
- Code profiler – e.g. VisualVM
- Method with longest duration?
- Method using highest CPU time?
DB Query Profiling
- Identify frequently executed queries or slow queries.
- Log file is generated and
can be downloaded.
- Enable tracing to include
the stack trace for every
logged statement.
Browser Profiling
- Normally app server only accounts for less than 1/3 of perceived load time!
- The rest is up to the browser!
- Profile document load using supported browser profilers.
- Profile page load using ySlow browser plugin.
https://en.wikipedia.org/wiki/Profiling_(computer_programming)