发明名称 |
CORRELATING QUERIES ISSUED BY APPLICATIONS WITH THEIR SOURCE LINES AND ANALYZING APPLICATIONS FOR PROBLEM DETERMINATION AND WHERE USED ANALYSIS |
摘要 |
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. |
申请公布号 |
US2015227450(A1) |
申请公布日期 |
2015.08.13 |
申请号 |
US201514663930 |
申请日期 |
2015.03.20 |
申请人 |
International Business Machines Corporation |
发明人 |
Brodsky Stephen A.;Courtois Zeus O.;Jacopi Tom W.;Kwong Michael Y.;Leung Tony K.;Surange Sonali |
分类号 |
G06F11/36;G06F9/54;G06F17/30 |
主分类号 |
G06F11/36 |
代理机构 |
|
代理人 |
|
主权项 |
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; 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; andderiving query text of the query and a location of the query in source code of the client application. |
地址 |
Armonk NY US |