CORRELATING QUERIES ISSUED BY APPLICATIONS WITH THEIR SOURCE LINES AND ANALYZING APPLICATIONS FOR PROBLEM DETERMINATION AND WHERE USED ANALYSIS
First Claim
1. A method, comprising:
- 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 first location of the API call in the stack trace.
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.
53 Citations
24 Claims
-
1. A method, comprising:
-
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 first location of the API call in the stack trace. - View Dependent Claims (2, 3, 4)
-
-
5. 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; and 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; and deriving query text of the query and a location of the query in source code of the client application. - View Dependent Claims (6, 7, 8)
-
-
9. 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:
-
invoke 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; examine a stack trace to determine a second location of the API call in the stack trace; and derive 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 first location of the API call in the stack trace. - View Dependent Claims (10, 11, 12)
-
-
13. 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; and 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; and derive query text of the query and a location of the query in source code of the client application. - View Dependent Claims (14, 15, 16)
-
-
17. A system, comprising:
-
a processor; memory; and circuitry to perform operations, the operations comprising; 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 first location of the API call in the stack trace. - View Dependent Claims (18, 19, 20)
-
-
21. 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; and 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; and deriving query text of the query and a location of the query in source code of the client application. - View Dependent Claims (22, 23, 24)
-
Specification