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:
- obtaining, with a processor executing on a computer, information from source code of a client application that includes a location of an Application Programming Interface (API) call that issues a query and parameters of the API call in the source code, wherein query text for the query is not available until the source code is run;
running the source code to obtain a stack trace that includes the location of the API call in the stack trace and the query text for the query issued by the API call;
examining the stack trace to determine a match between the location of the API call in the source code and the location of the API call in the stack trace;
identifying the query text in the stack trace for the API call in the stack trace as the query text associated with the API call at the location in the source code;
storing the query and database objects used by the query in a repository; and
in response to receiving a change request for one of the database objects, returning the query from the repository for use in assessing an impact of the change request.
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.
28 Citations
15 Claims
-
1. A method, comprising:
-
obtaining, with a processor executing on a computer, information from source code of a client application that includes a location of an Application Programming Interface (API) call that issues a query and parameters of the API call in the source code, wherein query text for the query is not available until the source code is run; running the source code to obtain a stack trace that includes the location of the API call in the stack trace and the query text for the query issued by the API call; examining the stack trace to determine a match between the location of the API call in the source code and the location of the API call in the stack trace; identifying the query text in the stack trace for the API call in the stack trace as the query text associated with the API call at the location in the source code; storing the query and database objects used by the query in a repository; and in response to receiving a change request for one of the database objects, returning the query from the repository for use in assessing an impact of the change request. - View Dependent Claims (2, 3, 4, 5)
-
-
6. 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:
-
obtain information from source code of a client application that includes a location of an Application Programming Interface (API) call that issues a query and parameters of the API call in the source code, wherein query text for the query is not available until the source code is run; run the source code to obtain a stack trace that includes the location of the API call in the stack trace and the query text for the query issued by the API call; examine the stack trace to determine a match between the location of the API call in the source code and the location of the API call in the stack trace; identifying the query text in the stack trace of for the API call in the stack trace as the query text associated with the API call at the location in the source code; storing the query and database objects used by the query in a repository; and in response to receiving a change request for one of the database objects, returning the query from the repository for use in assessing an impact of the change request. - View Dependent Claims (7, 8, 9, 10)
-
-
11. A system, comprising:
-
a processor; memory; and circuitry to perform operations, the operations comprising; obtaining information from source code of a client application that includes a location of an Application Programming Interface (API) call that issues a query and parameters of the API call in the source code, wherein query for the query text is not available until the source code is run; running the source code to obtain a stack trace that includes the location of the API call in the stack trace and the query text for the query issued by the API call; examining the stack trace to determine a match between the location of the API call in the source code and the location of the API call in the stack trace; identifying the query text in the stack trace for the API call in the stack trace as the query text associated with the API call at the location in the source code; storing the query and database objects used by the query in a repository; and in response to receiving a change request for one of the database objects, returning the query from the repository for use in assessing an impact of the change request. - View Dependent Claims (12, 13, 14, 15)
-
Specification