- 专利标题: MONITORING STACK MEMORY USAGE TO OPTIMIZE PROGRAMS
-
申请号: US17397261申请日: 2021-08-09
-
公开(公告)号: US20230044935A1公开(公告)日: 2023-02-09
- 发明人: Narayana Aditya Madineni , Michael W. Gray , Matthew Green , LUVITA BURGESS
- 申请人: International Business Machines Corporation
- 申请人地址: US NY Armonk
- 专利权人: International Business Machines Corporation
- 当前专利权人: International Business Machines Corporation
- 当前专利权人地址: US NY Armonk
- 主分类号: G06F11/34
- IPC分类号: G06F11/34 ; G06F11/30 ; G06F11/36 ; G06F8/41 ; G06F8/72
摘要:
A computer system determines stack usage. An intercept function is executed to store a stack marker in a stack, wherein the intercept function is invoked when a program enters or exits each function of a plurality of functions of the program. A plurality of stack markers are identified in the stack and a memory address is determined for each stack marker during execution of the program to obtain a plurality of memory addresses. The plurality of memory addresses are analyzed to identify a particular memory address associated with a greatest stack depth. A stack usage of the program is determined based on the greatest stack depth. Embodiments of the present invention further include a method and program product for determining stack usage in substantially the same manner described above.
公开/授权文献
- US11720471B2 Monitoring stack memory usage to optimize programs 公开/授权日:2023-08-08
信息查询