Check patentability & draft patents in minutes with Patsnap Eureka AI!

Call stack backtracking method and device, equipment and medium

A backtracking method and call stack technology, which is applied in the computer field and can solve problems such as uncontrollable and time-consuming stack backtracking

Pending Publication Date: 2021-06-08
BEIJING BYTEDANCE NETWORK TECH CO LTD
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the entire stack backtracking process is uncontrollable, and it needs to perform backtracking of all stack frames (that is, full stack backtracking) before it can end, resulting in a long time-consuming stack backtracking

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Call stack backtracking method and device, equipment and medium
  • Call stack backtracking method and device, equipment and medium
  • Call stack backtracking method and device, equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] In order to more clearly understand the above objects, features and advantages of the present disclosure, the solutions of the present disclosure will be further described below. It should be noted that, in the case of no conflict, the embodiments of the present disclosure and the features in the embodiments can be combined with each other.

[0033] In the following description, many specific details are set forth in order to fully understand the present disclosure, but the present disclosure can also be implemented in other ways than described here; obviously, the embodiments in the description are only some of the embodiments of the present disclosure, and Not all examples.

[0034] In the existing solution, if it is necessary to perform call stack traceback (which may be referred to as stack traceback) during the running of the application, usually the call stack acquisition function getStackTrace provided by the device system is directly called to obtain the call st...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention relates to a call stack backtracking method and device, equipment and a medium, and the method comprises the steps: applying for a first memory region, and determining a target sub-region of the first memory region; executing the construction of a code segment corresponding to the function module, and initializing the content stored in the target sub-region; changing the storage content in the initialized target sub-region into the address of the custom virtual function module table, wherein the address of a third functional module in the table is the address of a preset target callback functional module; based on the first address of the first memory area, executing a code segment corresponding to a stack backtracking function module WalkStack so as to start backtracking of the call stack; in the backtracking process of the call stack, executing a code segment corresponding to a preset target callback function module, and determining the number of execution times; and determining whether to end the backtracking of the call stack or not according to the execution times. According to the stack backtracking control method and device, stack backtracking is effectively controlled in the program running process, the effect of controlling the stack backtracking times is achieved, and the time consumption of stack backtracking is reduced.

Description

technical field [0001] The present disclosure relates to the field of computer technology, and in particular to a call stack backtracking method, device, device and medium. Background technique [0002] During the running of the application program, the backtracking of the call stack (Call stack) is usually involved. Through stack backtracking, you can obtain the required stack frame information, which can be used to locate and analyze exceptions during program running. [0003] In the existing stack backtrace solution, it is usually implemented by directly calling the system function getStackTrace. However, the entire stack backtracking process is uncontrollable, and it needs to perform backtracking of all stack frames (that is, full stack backtracking) before it can end, resulting in a long time-consuming stack backtracking. Contents of the invention [0004] In order to solve the above technical problems or at least partly solve the above technical problems, embodimen...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F11/36
CPCG06F11/3636G06F11/366
Inventor 刘洪凯
Owner BEIJING BYTEDANCE NETWORK TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More