Correlating queries issued by applications with their source lines and analyzing applications for problem determination and where used analysis
First Claim
Patent Images
1. A method, comprising:
- setting, with a processor executing on a computer, one or more breakpoints in source code of a client application based on locations of Application Programming Interface (API) calls in the source code;
while running the client application through a debugger, upon reaching each of the one or more breakpoints,identifying one or more debugger rules associated with a query at a breakpoint;
in response to determining that conditions of the one or more debugger rules are satisfied,obtaining a stack trace before the query makes a call to a database;
deriving query text of the query and a location of the query in the source code of the client application;
parsing the query text to identify database objects used by the query; and
storing correlator results for the query that identify a source file of the client application, locations of an API call in the source code, parameters of the API call, and the database objects, wherein one of the parameters is the query text of the query; and
displaying user interface views in a user interface to present the correlator results for problem determination and where used analysis.
1 Assignment
0 Petitions
Accused Products
Abstract
Provided are techniques for invoking with a processor executing on a computer a source code parser to obtain source information that includes a first location of an Application Programming Interface (API) call and parameters of the API call in source code of a client application, where the parameters the API call do not include query text for a query that is to be used to access a database; examining a stack trace to determine a second location of the API call in the stack trace; and deriving the query of the API call and a third location of the query in the source code by identifying the query in the stack trace at the location of the API call in the stack trace.
33 Citations
12 Claims
-
1. A method, comprising:
-
setting, with a processor executing on a computer, one or more breakpoints in source code of a client application based on locations of Application Programming Interface (API) calls in the source code; while running the client application through a debugger, upon reaching each of the one or more breakpoints, identifying one or more debugger rules associated with a query at a breakpoint; in response to determining that conditions of the one or more debugger rules are satisfied, obtaining a stack trace before the query makes a call to a database; deriving query text of the query and a location of the query in the source code of the client application; parsing the query text to identify database objects used by the query; and storing correlator results for the query that identify a source file of the client application, locations of an API call in the source code, parameters of the API call, and the database objects, wherein one of the parameters is the query text of the query; and displaying user interface views in a user interface to present the correlator results for problem determination and where used analysis. - View Dependent Claims (2, 3, 4)
-
-
5. A computer program product comprising a computer readable storage medium storing computer readable program code that, when executed on a processor of a computer, causes the computer to:
-
set, with a processor executing on a computer, one or more breakpoints in source code of a client application based on locations of Application Programming Interface (API) calls in the source code; while running the client application through a debugger, upon reaching each of the one or more breakpoints, identify one or more debugger rules associated with a query at a breakpoint; in response to determining that conditions of the one or more debugger rules are satisfied, obtain a stack trace before the query makes a call to a database; derive query text of the query and a location of the query in the source code of the client application; parsing the query text to identify database objects used by the query; and storing correlator results for the query that identify a source file of the client application, locations of an API call in the source code, parameters of the API call, and the database objects, wherein one of the parameters is the query text of the query; and displaying user interface views in a user interface to present the correlator results for problem determination and where used analysis. - View Dependent Claims (6, 7, 8)
-
-
9. A system, comprising:
-
a processor; memory; and circuitry to perform operations, the operations comprising; setting, with a processor executing on a computer, one or more breakpoints in source code of a client application based on locations of Application Programming Interface (API) calls in the source code; while running the client application through a debugger, upon reaching each of the one or more breakpoints, identifying one or more debugger rules associated with a query at a breakpoint; in response to determining that conditions of the one or more debugger rules are satisfied, obtaining a stack trace before the query makes a call to a database; deriving query text of the query and a location of the query in the source code of the client application; parsing the query text to identify database objects used by the query; and storing correlator results for the query that identify a source file of the client application, locations of an API call in the source code, parameters of the API call, and the database objects, wherein one of the parameters is the query text of the query; and displaying user interface views in a user interface to present the correlator results for problem determination and where used analysis. - View Dependent Claims (10, 11, 12)
-
Specification