Wouldn't it be nice if I could drill down into the JProfiler CPU Vi开发者_StackOverflow中文版ew, and find a percentage of time running a certain query against the database? Does anyone know if this is possible?
The call tree in JProfiler shows JDBC queries with the default settings:
If this is not the case, open the session settings, go to the probe settings, select the JDBC probe and ensure that "Enabled", "Record on startup" and "Annotate JDBC calls in call tree" are selected:
Another way to look at JDBC query strings is the "hot spot" view of the JDBC probe:
精彩评论