Information acquisition method, electronic device, storage medium, and program product

By loading the tracing tool configuration file into the application's memory and modifying the execution function, the problem of code modification and restart impact in existing technologies is solved, achieving flexible and efficient acquisition of runtime information.

CN122412249APending Publication Date: 2026-07-17ALIBABA CLOUD COMPUTING CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510065188.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-15
Publication Date
2026-07-17

AI Technical Summary

Technical Problem

Existing technologies require code modification or the insertion of tracing tools when obtaining software program runtime information, which affects program structure and logic, and lacks flexibility, making it unable to adapt to applications that may or may not be restarted during operation.

Method used

By loading the tracing tool's configuration file into the target application's memory and modifying the program's execution function to match the configuration file's code execution function, function call information can be obtained, avoiding code modification and program restart.

Benefits of technology

It flexibly obtains runtime information without affecting the application structure and logic, and is applicable to both restartable and non-restartable applications, improving the flexibility and efficiency of tracing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122412249A_ABST
    Figure CN122412249A_ABST
Patent Text Reader

Abstract

本申请实施例提供一种信息获取方法、电子设备、存储介质和程序产品,该方法包括:响应于文件加载指令,将第一追踪工具的配置文件加载至目标应用程序所对应的内存中;将程序执行函数修改为所述配置文件的代码执行函数,该程序执行函数是部署在执行器中用于执行目标应用程序的执行函数;检测到目标应用程序在运行过程中调用函数,执行该代码执行函数以调用第一追踪工具获取所调用函数的调用信息。本申请实施例的技术方案中,不会对应于程序的原始结构和逻辑产生影响,不管是对运行过程中可以重新启动的应用程序,还是运行过程中不能重新启动的应用程序,都可以实现对运行信息的获取,灵活性更高。
Need to check novelty before this filing date? Find Prior Art