CN117992204A - Memory detection method, device, equipment and storage medium - Google Patents

Memory detection method, device, equipment and storage medium Download PDF

Info

Publication number
CN117992204A
CN117992204A CN202211335924.8A CN202211335924A CN117992204A CN 117992204 A CN117992204 A CN 117992204A CN 202211335924 A CN202211335924 A CN 202211335924A CN 117992204 A CN117992204 A CN 117992204A
Authority
CN
China
Prior art keywords
memory
release
data item
size
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211335924.8A
Other languages
Chinese (zh)
Inventor
邓竹立
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Zitiao Network Technology Co Ltd
Original Assignee
Beijing Zitiao Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Zitiao Network Technology Co Ltd filed Critical Beijing Zitiao Network Technology Co Ltd
Priority to CN202211335924.8A priority Critical patent/CN117992204A/en
Publication of CN117992204A publication Critical patent/CN117992204A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5022Mechanisms to release resources
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the disclosure discloses a memory detection method, a memory detection device, memory detection equipment and a memory medium, and relates to the technical field of computers. The method comprises the following steps: detecting release events associated with a preset type of memory occupied by a thread by using at least two preset detection functions, wherein different preset detection functions are used for detecting different release events, responding to the detection of a current release event by the preset detection functions, acquiring release information corresponding to the preset type of memory in the current release event, wherein the release information comprises a release address and a release size, searching a target data item of which the data content meets preset conditions in a data item set according to the release information, and updating the data content in the target data item according to the release information, wherein the data item is created under the condition that the preset type of memory is allocated to the thread, and the data content comprises a start address, an occupied size and an end address. By adopting the technical scheme, the accuracy and timeliness of the memory detection can be improved.

Description

Memory detection method, device, equipment and storage medium
Technical Field
The embodiment of the disclosure relates to the technical field of computers, in particular to a memory detection method, a memory detection device, memory detection equipment and a storage medium.
Background
In the running process of the application program, abnormal exit conditions possibly caused by insufficient memory can exist, so that the normal running of the application program is influenced, and the user experience is also influenced, and therefore, the accurate detection of the memory occupation condition is particularly important.
Disclosure of Invention
The embodiment of the disclosure provides a memory detection method, a memory detection device, a storage medium and a memory detection device, which can optimize the existing memory detection scheme.
In a first aspect, an embodiment of the present disclosure provides a memory detection method, including:
Detecting release events associated with a memory of a preset type occupied by a thread by using at least two preset detection functions, wherein different preset detection functions are used for detecting different release events;
responding to the detection of the current release event by the preset detection function, and acquiring release information corresponding to the memory of the preset type in the current release event, wherein the release information comprises a release address and a release size;
Searching a target data item with data content meeting preset conditions in a data item set according to the release information, and updating the data content in the target data item according to the release information, wherein the data item set comprises at least one data item, the data item is created under the condition that the preset type memory is allocated to the thread, the data content comprises a starting address, an occupied size and an ending address, and the occupied size is used for indicating the size of the preset type memory currently occupied between the starting address and the ending address in the data item.
In a second aspect, an embodiment of the present disclosure further provides a memory detection apparatus, including:
The release event detection module is used for detecting release events associated with a memory of a preset type occupied by a thread by utilizing at least two preset detection functions, wherein different preset detection functions are used for detecting different release events;
The release information acquisition module is used for responding to the detection of the current release event by the preset detection function and acquiring release information corresponding to the memory of the preset type in the current release event, wherein the release information comprises a release address and a release size;
The data item updating module is used for searching a target data item, the data content of which meets preset conditions, in a data item set according to the release information, and updating the data content in the target data item according to the release information, wherein the data item set comprises at least one data item, the data item is created under the condition that the preset type memory is allocated to the thread, the data content comprises a starting address, an occupied size and an ending address, and the occupied size is used for indicating the size of the preset type memory currently occupied between the starting address and the ending address in the data item.
In a third aspect, embodiments of the present disclosure further provide an electronic device, including:
One or more processors;
Storage means for storing one or more programs,
And when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the memory detection method provided by the embodiment of the present disclosure.
In a fourth aspect, the presently disclosed embodiments also provide a storage medium containing computer-executable instructions that, when executed by a computer processor, are configured to perform the memory detection method provided by the presently disclosed embodiments.
According to the memory detection scheme provided by the embodiment of the disclosure, at least two preset detection functions are utilized to detect release events associated with a preset type of memory occupied by a thread, wherein different preset detection functions are used for detecting different release events, the current release event is detected by the preset detection functions, release information corresponding to the preset type of memory in the current release event is obtained, the release information comprises a release address and a release size, target data items of which data contents meet preset conditions are searched in a data item set according to the release information, and the data contents in the target data items are updated according to the release information, wherein the data item set comprises at least one data item, the data items are created under the condition that the preset type of memory is allocated to the thread, the data contents comprise a start address, an occupied size and an end address, and the occupied size is used for indicating the size of the currently occupied preset type of memory between the start address and the end address in the data item. By adopting the technical scheme, different release events of the preset type memory occupied by the threads are detected by utilizing at least two preset detection functions, the release events related to the preset type memory can be detected more comprehensively, the data content in the data item created during the allocation of the preset type memory is updated according to the release information corresponding to the currently detected release event, the real-time occupation condition of the preset type memory is recorded by utilizing the data item, and the accuracy and timeliness of the memory detection are improved.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components are not necessarily drawn to scale.
Fig. 1 is a flow chart of a memory detection method according to an embodiment of the disclosure;
FIG. 2 is a flowchart illustrating another memory detection method according to an embodiment of the disclosure;
FIG. 3 is a schematic diagram of a memory detection process according to an embodiment of the disclosure;
FIG. 4 is a schematic diagram of a memory release according to an embodiment of the disclosure;
FIG. 5 is a schematic diagram of another embodiment of a memory release;
fig. 6 is a schematic structural diagram of a memory detection device according to an embodiment of the disclosure;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure have been shown in the accompanying drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "including" and variations thereof as used herein are intended to be open-ended, i.e., including, but not limited to. The term "based on" is based at least in part on. The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments. Related definitions of other terms will be given in the description below.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
It will be appreciated that prior to using the technical solutions disclosed in the embodiments of the present disclosure, the user should be informed and authorized of the type, usage range, usage scenario, etc. of the personal information related to the present disclosure in an appropriate manner according to the relevant legal regulations.
For example, in response to receiving an active request from a user, a prompt is sent to the user to explicitly prompt the user that the operation it is requesting to perform will require personal information to be obtained and used with the user. Thus, the user can autonomously select whether to provide personal information to software or hardware such as an electronic device, an application program, a server or a storage medium for executing the operation of the technical scheme of the present disclosure according to the prompt information.
As an alternative but non-limiting implementation, in response to receiving an active request from a user, the manner in which the prompt information is sent to the user may be, for example, a popup, in which the prompt information may be presented in a text manner. In addition, a selection control for the user to select to provide personal information to the electronic device in a 'consent' or 'disagreement' manner can be carried in the popup window.
It will be appreciated that the above-described notification and user authorization process is merely illustrative and not limiting of the implementations of the present disclosure, and that other ways of satisfying relevant legal regulations may be applied to the implementations of the present disclosure.
It will be appreciated that the data (including but not limited to the data itself, the acquisition or use of the data) involved in the present technical solution should comply with the corresponding legal regulations and the requirements of the relevant regulations.
Fig. 1 is a flow chart of a memory detection method provided by an embodiment of the present disclosure, where the embodiment of the present disclosure is applicable to a case of memory detection, and the method may be performed by a memory detection device, where the device may be implemented in a form of software and/or hardware, and optionally, the device may be implemented by an electronic device, where the electronic device may be a mobile terminal such as a mobile phone, a smart watch, a tablet PC, a personal digital assistant, or a device such as a personal computer (Personal Computer, a PC) or a server.
As shown in fig. 1, the method includes:
Step 101, detecting release events associated with a memory of a preset type occupied by a thread by using at least two preset detection functions, wherein different preset detection functions are used for detecting different release events.
In the embodiment of the present disclosure, the preset type of memory may be a virtual memory, and specifically may be a preset type of virtual memory. The threads may include all threads currently running in the application program, and may also include part of threads, for example, a preset thread. The application program may be run in an operating system, and the type of the operating system is not limited in the embodiments of the present disclosure, and may be, for example, an apple (iOS or macOS) operating system, an Android operating system, a mobile Phone window (Windows Phone, WP) operating system, a Windows operating system, and so on.
For example, when a thread applies for memory to a system, the system typically does not return the address of the physical memory directly, but returns a virtual memory address, and when the applied virtual memory begins to be used, the system maps the virtual address to the physical address, thereby allowing the thread to use the real physical memory. In the existing detection schemes for some types of virtual memories, a single detection function is adopted for detection, so that it is difficult to comprehensively and accurately detect the released memory, and it is easy to judge that the released memory is not released, or it is difficult to detect the memory occupation size before release, so that a certain error exists in the detection result.
In the embodiment of the present disclosure, the preset detection function may be understood as a function preset to detect a memory related event. And detecting release events associated with the memory of the preset type occupied by the thread by using at least two preset detection functions, wherein different preset detection functions are used for detecting different release events. Wherein the different release events may include, for example, a memory release event and a thread release event. The memory release event may be understood as an event of releasing a memory, where the releasing of the memory may include releasing a memory of a preset type, and may also include releasing a memory other than the memory of the preset type; the thread release event can be understood as a thread destroy event, after the thread is destroyed, the memory of the preset type occupied by the thread is also released, and in the actual release process, the memory of the preset type may be released for multiple times, that is, in the case of batch release. Different release events are detected through different preset detection functions, so that the release condition of the memory of the preset type can be detected more comprehensively. Optionally, the preset detection function for detecting a memory release event includes a memory event detection function, and the preset detection function for detecting a thread release event includes a thread destroy detection function.
Step 102, responding to a preset detection function to detect a current release event, and acquiring release information corresponding to a preset type of memory in the current release event, wherein the release information comprises a release address and a release size.
The current release event may be a release event detected by any one of at least two preset detection functions, and release information including a release address and a release size corresponding to a preset type memory in the current release event is obtained, so as to update the occupation condition of the preset type memory. The release address may include a first address corresponding to the currently released memory of the preset type, and the release size may be understood as the size of the currently released memory of the preset type.
Optionally, the step may include: and responding to the detection of the current release event by the preset detection function, acquiring a release address and a release size in callback information of the preset detection function, and obtaining release information corresponding to the preset type memory in the current release event. The method has the advantages that the release address and the release size are acquired from the callback information in a function callback mode, and the release information can be timely and accurately acquired.
And 103, searching a target data item with data content meeting a preset condition in a data item set according to release information, and updating the data content in the target data item according to the release information, wherein the data item set comprises at least one data item, the data item is created under the condition of distributing a preset type memory to the thread, and the data content comprises a starting address, an occupied size and an ending address, wherein the occupied size is used for indicating the size of the currently occupied preset type memory between the starting address and the ending address in the data item.
In the embodiment of the disclosure, a corresponding data item (also referred to as an address table) may be created when a thread is allocated with a memory of a preset type, and an independent data item may be created when each allocation is performed. The data content in the data item includes a start address, an occupied size, and an end address. When the data item is created, the initial starting address may be a first address of a preset type of memory allocated to the thread, the initial ending address may be an ending address of the preset type of memory allocated to the thread, and the initial occupied size may be a size of the preset type of memory allocated to the thread. In the memory detection process, the data content in the data item can be updated according to the actual detection condition so as to record the latest preset type memory occupation condition.
For example, the preset condition may be set according to a relation between the release address and a start address and an end address in the data content, for example, the release address is included between the start address and the end address. After the target data item is found, the data content in the target data item is updated according to the release information, for example, the occupied size may be updated according to the release size, and the end address may be updated according to the release address and the release size. The updated occupied size can be used for indicating the size of the currently occupied memory of the preset type between the starting address and the ending address in the data item after the memory of the preset type is released.
According to the memory detection method provided by the embodiment of the disclosure, at least two preset detection functions are utilized to detect release events associated with a preset type of memory occupied by a thread, wherein different preset detection functions are used for detecting different release events, the current release event is detected by the preset detection functions, release information corresponding to the preset type of memory in the current release event is obtained, the release information comprises a release address and a release size, target data items of which data content meets preset conditions are searched in a data item set according to the release information, and the data content in the target data items is updated according to the release information, wherein the data item set comprises at least one data item, the data item is created under the condition that the preset type of memory is allocated to the thread, the data content comprises a start address, an occupied size and an end address, and the occupied size is used for indicating the size of the currently occupied preset type of memory between the start address and the end address in the data item. By adopting the technical scheme, different release events of the preset type memory occupied by the threads are detected by utilizing at least two preset detection functions, the release events related to the preset type memory can be detected more comprehensively, the data content in the data item created during the allocation of the preset type memory is updated according to the release information corresponding to the currently detected release event, the real-time occupation condition of the preset type memory is recorded by utilizing the data item, and the accuracy and timeliness of the memory detection are improved.
In some embodiments, further comprising: responding to the memory event detection function to detect a current memory allocation event for allocating the memory of the preset type to the thread, and acquiring an allocation starting address and an allocation size corresponding to the current memory allocation event; and creating a current data item corresponding to the current memory allocation event, and adding the current data item into the data item set, wherein the data content in the current data item is determined according to the allocation starting address and the allocation size. The method has the advantages that the data item can be created in time, and the accuracy and timeliness of memory detection are further guaranteed.
For example, the memory event detection function may be used to detect a variety of memory events, including memory allocation events and memory release events. Optionally, a first callback function corresponding to the memory event detection function is set, and an allocation starting address and an allocation size corresponding to the current memory allocation event are obtained from callback information in a function callback mode. After the first callback function is called, corresponding first callback information is obtained, whether the first callback information contains a type identifier corresponding to a preset type memory or not is judged, if yes, the memory event type is considered as a memory event aiming at the preset type memory, whether the memory event type is a memory allocation event or not is determined, if yes, the memory event detection function is determined to detect a current memory allocation event for allocating the preset type memory to a thread, an allocation starting address and an allocation size are obtained from the first callback information, and a current data item corresponding to the current memory allocation event is created according to the allocation starting address and the allocation size.
The allocation starting address may be understood as a starting address of a preset type of memory allocated to the thread by the current memory allocation event, and the allocation size may be understood as a size of the preset type of memory allocated to the thread by the current memory allocation event. The starting address in the created current data item is an allocation starting address, the occupied size is an allocation size, and the ending address is an address obtained by calculating the sum of the allocation starting address and the allocation size.
In some embodiments, the preset conditions include: the release address is included between the start address and the end address, and the occupancy size is greater than or equal to the release size. The advantage of this is that the data content of the data item and the accuracy of the release information are further verified while the occupied range to which the release address belongs is found. If the release size is larger than the occupied size, the problem exists in the updating process when or before the data item is created, or the release size in the release information is inaccurate.
Optionally, if the target data item whose data content meets the preset condition is not found in the data item set according to the release information, a prompt message may be output, so as to prompt that an abnormality exists in the detection process of the memory of the preset type, so as to ensure the accuracy of the memory detection result.
In some embodiments, the updating the data content in the target data item according to the release information includes: calculating the difference value between the occupied size and the released size to obtain a target size; and updating the occupied size in the target data item to the target size. The advantage of this arrangement is that the occupation size of the memory of the preset type in the target data item can be accurately updated.
Optionally, if the target size is 0, it indicates that the allocated memory of the preset type in the target data item is completely released, and the target data item may be deleted. The arrangement has the advantages that occupation of storage resources by empty data items can be reduced, and the resource utilization rate is improved.
In some embodiments, further comprising: and calculating the sum of the occupied sizes of the data items in the data item set to obtain the current total occupied size of the memory of the preset type. The method has the advantages that the total occupied size of the memory of the preset type can be obtained rapidly and accurately by calculating the sum of occupied sizes in the data items existing at present, so that the memory of the preset type can be managed more reasonably.
In some embodiments, the method is applied to an iOS system, the preset type of MEMORY includes a virtual STACK MEMORY vm_memory_stack, the MEMORY event detection function includes a syscall_ logger function, and the thread release detection function includes a pthread_ introspection _thread_release function.
Illustratively, in the iOS system, various types of MEMORY are divided, including virtual STACK MEMORY vm_memory_stack, vm_memory_malloc_small, vm_memory_malloc_load, vm_memory_malloc_size, and the like. For VM_MEMORY_STACK, the detection scheme based on the syscall_ logger function and the detection scheme based on the pthread_ introspection _thread_decode function cannot be fully detected. For example, in the case of a kernel state release, the syscall_ logger function cannot be perceived, and it is easy to determine that the virtual stack memory that has been released is not released. In the embodiment of the disclosure, the virtual stack memory is detected by utilizing the syscall_ logger function and the pthread_ introspection _thread_destroyer function at the same time, so that the occupation condition of the virtual stack memory can be detected more accurately.
Fig. 2 is a flow chart of another memory detection method provided by an embodiment of the present disclosure, where optimization is performed based on each of the alternatives in the foregoing embodiment, and taking an iOS system as an example, and specifically the method includes the following steps:
Step 201, detecting a memory event associated with a preset type of memory occupied by a thread by using a memory event detection function, and detecting a release event associated with the preset type of memory occupied by the thread by using a thread destruction detection function.
Fig. 3 is a schematic diagram of a memory detection process provided by an embodiment of the present disclosure, as shown in fig. 3, after an application is started, thread destruction detection and virtual memory detection may be set, specifically, a callback function of pthread_ introspection _thread_retrieve and a callback function of syscall_ logger are set, and corresponding detection is performed by obtaining callback information.
Step 202, in response to the memory event detection function detecting the current memory event, determining whether the current memory event is a virtual stack memory event, if yes, executing step 203; otherwise, the flow is ended.
By way of example, by detecting the callback function of the syscall_ logger function, the first callback information may be obtained, whether the current MEMORY event is a MEMORY event related to vm_memory_stack may be determined according to the MEMORY type in the first callback information, if yes, step 203 is continuously executed, otherwise, the flow is ended, or a corresponding detection step is executed according to a detection manner of the actual MEMORY type in the first callback information, which is not limited in the embodiment of the present disclosure.
Step 203, judging whether the current memory event is a memory allocation event, if yes, executing step 204; otherwise, step 205 is performed.
Step 204, obtaining an allocation starting address and an allocation size corresponding to the current memory allocation event, creating a current data item corresponding to the current memory allocation event, and adding the current data item into the data item set.
Wherein the data content in the current data item is determined according to the allocation starting address and the allocation size.
For example, if it is determined that the currently detected virtual stack memory event is an allocation event of the virtual stack memory, the allocation starting address and the allocation size are continuously obtained from the first callback information, and the allocation starting address and the allocation size are recorded in a data item (item), where a data structure of the data item may be JSON format. For example, the allocation start address is 0x11, the allocation size is 0x11, and the data item includes a start address (address), such as 'address':0x11, also including occupancy size (size), such as 'size':0x11, further includes an end address (end), such as 'end':0x22.
Step 205, determining that the memory event detection function detects a first release event, and acquiring first release information corresponding to a memory of a preset type in the first release event.
The method includes the steps of recording a release event detected by a memory event detection function as a first release event, and acquiring first release information corresponding to a preset type of memory in the first release event in response to the first release event detected by the memory event detection function. Specifically, a first release address (start) and a first release size (length) may be obtained from the first callback information, to obtain the first release information.
Step 206, searching a first target data item with the data content meeting a first preset condition in the data item set according to the first release information, and updating the data content in the first target data item according to the first release information.
The first preset condition may be expressed as:
item.address<=start&&start<item.end&&length<size
That is, the first release address (start) is greater than or equal to the start address in the first target data item, the first release address is less than the end address in the first target data item, and the first release size (length) is less than or equal to the occupancy size in the first target data item.
After the first target data item meeting the preset condition is found, a difference value between the occupied size and the first release size in the first target data item is calculated to obtain a first target size, and the occupied size in the first target data item is updated to be the first target size, so that updating of data content in the first target data item according to the first release information, namely correcting size=size-length, is achieved.
For example, fig. 4 is a schematic diagram of memory release provided in the embodiment of the present disclosure, as shown in fig. 4, a portion of virtual stack memory is released in a middle range from a start address to an end address of a target data item, where the occupied size of the target data item may be updated, the start address and the end address are kept unchanged, and it is ensured that the remaining unreleased virtual stack memory corresponding to the target data item can be covered between the start address and the end address.
Optionally, updating the data content in the target data item according to the release information may further include updating the end address. If the release address is greater than the start address, the sum of the release address and the release size is equal to the end address, and the end address can be updated to the release address.
For example, fig. 5 is a schematic diagram of another memory release provided in the embodiment of the present disclosure, where, as shown in fig. 5, the tail area of the target data item is released, and the end address may be updated to be the release address while the occupied size is updated, so that the remaining unreleased virtual stack memory corresponding to the target data item can be covered between the start address and the end address.
Step 207, in response to the thread destruction detection function detecting the second release event, obtaining second release information corresponding to the preset type of memory in the second release event.
Step 208, searching a second target data item with the data content meeting a second preset condition in the data item set according to the second release information, and updating the data content in the second target data item according to the second release information.
The second preset condition may be the same as the first preset condition, or may be expressed as:
item.address<=start&&start<item.end&&length<size
Equivalently, a second release address (start) in the second release information is greater than or equal to a start address in the second target data item, the second release address is less than an end address in the second target data item, and a second release size (length) is less than or equal to an occupied size in the second target data item.
Step 209, calculating the sum of the occupied sizes of the data items in the data item set to obtain the current total occupied size of the memory of the preset type.
For example, the current total occupation size can be calculated by adopting a preset frequency, and data reporting is performed; the current total occupied size can be calculated and the data is reported under the condition that the data item is detected to be updated.
It should be noted that, there may be multiple threads in the application program, and the sequence of detecting the release event by the memory event detecting function and the thread destroying detecting function is not limited, which is only illustrative, and the execution sequence of the steps may be changed according to different actual situations.
According to the memory detection method provided by the embodiment of the disclosure, for the virtual stack memory, when a memory allocation event is detected by using a memory event detection function, a corresponding data item is created, an allocation starting address and an allocation size are recorded in the data item, different release events associated with the virtual stack memory are detected by using a memory event detection function and a thread release detection function, the release address and the release size are obtained through callback information, the data content in the data item is updated, the total occupation size of the virtual stack memory is obtained by calculating the sum of the current occupation sizes of all the data items in a data item set, the detection result of the virtual stack memory can be obtained more comprehensively and accurately, the problems related to the virtual stack memory in the running process of an application program can be accurately positioned, and the performance of the application program is further improved.
Fig. 6 is a schematic structural diagram of a memory detection device according to an embodiment of the present disclosure, as shown in fig. 6, where the device includes:
a release event detection module 601, configured to detect release events associated with a memory of a preset type occupied by a thread by using at least two preset detection functions, where different preset detection functions are used to detect different release events;
A release information obtaining module 602, configured to obtain release information corresponding to the preset type of memory in the current release event in response to the detection of the current release event by the preset detection function, where the release information includes a release address and a release size;
The data item updating module 603 is configured to search, according to the release information, a target data item whose data content meets a preset condition in a data item set, and update, according to the release information, the data content in the target data item set, where the data item set includes at least one data item, the data item is created when the thread is allocated with the preset type memory, and the data content includes a start address, an occupied size, and an end address, where the occupied size is used to indicate a size of the preset type memory currently occupied between the start address and the end address in the data item.
The memory detection device provided by the embodiment of the disclosure detects a release event associated with a preset type of memory occupied by a thread by using at least two preset detection functions, wherein different preset detection functions are used for detecting different release events, and release information corresponding to the preset type of memory in the current release event is obtained in response to detection of a current release event by the preset detection functions, wherein the release information comprises a release address and a release size, a target data item of which data content meets preset conditions is searched in a data item set according to the release information, and the data content in the target data item is updated according to the release information, wherein the data item set comprises at least one data item, the data item is created under the condition that the preset type of memory is allocated to the thread, the data content comprises a start address, an occupied size and an end address, and the occupied size is used for indicating the size of the currently occupied preset type of memory between the start address and the end address in the data item. By adopting the technical scheme, different release events of the preset type memory occupied by the threads are detected by utilizing at least two preset detection functions, the release events related to the preset type memory can be detected more comprehensively, the data content in the data item created during the allocation of the preset type memory is updated according to the release information corresponding to the currently detected release event, the real-time occupation condition of the preset type memory is recorded by utilizing the data item, and the accuracy and timeliness of the memory detection are improved.
Optionally, the preset detection function includes a memory event detection function and a thread destruction detection function.
Optionally, the apparatus further comprises:
The allocation information acquisition module is used for responding to the detection of the current memory allocation event of the memory allocation of the preset type to the thread by the memory event detection function and acquiring an allocation starting address and an allocation size corresponding to the current memory allocation event;
the data item creation module is used for creating a current data item corresponding to the current memory allocation event and adding the current data item into the data item set, wherein the data content in the current data item is determined according to the allocation starting address and the allocation size.
Optionally, the preset condition includes:
The release address is included between the start address and the end address, and the occupancy size is greater than or equal to the release size.
Optionally, the data item updating module includes:
the target data item searching unit is used for searching target data items with data contents meeting preset conditions in the data item set according to the release information;
The target size calculation unit is used for calculating the difference value between the occupied size and the release size to obtain a target size;
And the occupied size updating unit is used for updating the occupied size in the target data item to the target size.
Optionally, the apparatus further comprises:
And the total occupation size calculation module is used for calculating the sum of occupation sizes of data items in the data item set to obtain the current total occupation size of the memory of the preset type.
Optionally, the method is applied to the iOS system, the preset type MEMORY includes a virtual STACK MEMORY vm_memory_stack, the MEMORY event detection function includes a syscall_ logger function, and the thread release detection function includes a pthread_ introspection _thread_release function.
The memory detection device provided by the embodiment of the disclosure can execute the memory detection method provided by any embodiment of the disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
It should be noted that each unit and module included in the above apparatus are only divided according to the functional logic, but not limited to the above division, so long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for convenience of distinguishing from each other, and are not used to limit the protection scope of the embodiments of the present disclosure.
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the disclosure. Referring now to fig. 7, a schematic diagram of an electronic device (e.g., a terminal device or server in fig. 7) 700 suitable for use in implementing embodiments of the present disclosure is shown. The terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 7 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
As shown in fig. 7, the electronic device 700 may include a processing means (e.g., a central processor, a graphics processor, etc.) 701, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 702 or a program loaded from a storage means 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the electronic device 700 are also stored. The processing device 701, the ROM 702, and the RAM 703 are connected to each other through a bus 704. An edit/output (I/O) interface 705 is also connected to bus 704.
In general, the following devices may be connected to the I/O interface 705: input devices 706 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, and the like; an output device 707 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 708 including, for example, magnetic tape, hard disk, etc.; and a communication device 709. The communication means 709 may allow the electronic device 700 to communicate wirelessly or by wire with other devices to exchange data. While fig. 7 shows an electronic device 700 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a non-transitory computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via communication device 709, or installed from storage 708, or installed from ROM 702. The above-described functions defined in the methods of the embodiments of the present disclosure are performed when the computer program is executed by the processing device 701.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
The electronic device provided in the embodiment of the present disclosure and the memory detection method provided in the foregoing embodiment belong to the same inventive concept, and technical details not described in detail in the present embodiment may be referred to the foregoing embodiment, and the present embodiment has the same beneficial effects as the foregoing embodiment.
The embodiment of the present disclosure provides a computer storage medium having a computer program stored thereon, which when executed by a processor, implements the memory detection method provided in the above embodiment.
It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol ), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: detecting release events associated with a memory of a preset type occupied by a thread by using at least two preset detection functions, wherein different preset detection functions are used for detecting different release events; responding to the detection of the current release event by the preset detection function, and acquiring release information corresponding to the memory of the preset type in the current release event, wherein the release information comprises a release address and a release size; searching a target data item with data content meeting preset conditions in a data item set according to the release information, and updating the data content in the target data item according to the release information, wherein the data item set comprises at least one data item, the data item is created under the condition that the preset type memory is allocated to the thread, the data content comprises a starting address, an occupied size and an ending address, and the occupied size is used for indicating the size of the preset type memory currently occupied between the starting address and the ending address in the data item.
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including, but not limited to, an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. The name of a module is not limited to the module itself in some cases, for example, the release event detection module may also be described as a "module for detecting release events associated with a preset type of memory occupied by a thread by using at least two preset detection functions, where different preset detection functions are used to detect different release events".
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present disclosure, there is provided a memory detection method, including:
Detecting release events associated with a memory of a preset type occupied by a thread by using at least two preset detection functions, wherein different preset detection functions are used for detecting different release events;
responding to the detection of the current release event by the preset detection function, and acquiring release information corresponding to the memory of the preset type in the current release event, wherein the release information comprises a release address and a release size;
Searching a target data item with data content meeting preset conditions in a data item set according to the release information, and updating the data content in the target data item according to the release information, wherein the data item set comprises at least one data item, the data item is created under the condition that the preset type memory is allocated to the thread, the data content comprises a starting address, an occupied size and an ending address, and the occupied size is used for indicating the size of the preset type memory currently occupied between the starting address and the ending address in the data item.
According to one or more embodiments of the present disclosure, the preset detection functions include a memory event detection function and a thread destroy detection function.
According to one or more embodiments of the present disclosure, further comprising:
Responding to the memory event detection function to detect a current memory allocation event for allocating the memory of the preset type to the thread, and acquiring an allocation starting address and an allocation size corresponding to the current memory allocation event;
And creating a current data item corresponding to the current memory allocation event, and adding the current data item into the data item set, wherein the data content in the current data item is determined according to the allocation starting address and the allocation size.
According to one or more embodiments of the present disclosure, the preset conditions include:
The release address is included between the start address and the end address, and the occupancy size is greater than or equal to the release size.
According to one or more embodiments of the present disclosure, the updating the data content in the target data item according to the release information includes:
Calculating the difference value between the occupied size and the released size to obtain a target size;
And updating the occupied size in the target data item to the target size.
According to one or more embodiments of the present disclosure, further comprising:
and calculating the sum of the occupied sizes of the data items in the data item set to obtain the current total occupied size of the memory of the preset type.
In accordance with one or more embodiments of the present disclosure, the method is applied to an iOS system, the preset type of MEMORY includes a virtual STACK MEMORY vm_memory_stack, the MEMORY event detection function includes a syscall_ logger function, and the thread release detection function includes a pthread_ introspection _thread_release function.
According to one or more embodiments of the present disclosure, there is provided a memory detection apparatus including:
The release event detection module is used for detecting release events associated with a memory of a preset type occupied by a thread by utilizing at least two preset detection functions, wherein different preset detection functions are used for detecting different release events;
The release information acquisition module is used for responding to the detection of the current release event by the preset detection function and acquiring release information corresponding to the memory of the preset type in the current release event, wherein the release information comprises a release address and a release size;
The data item updating module is used for searching a target data item, the data content of which meets preset conditions, in a data item set according to the release information, and updating the data content in the target data item according to the release information, wherein the data item set comprises at least one data item, the data item is created under the condition that the preset type memory is allocated to the thread, the data content comprises a starting address, an occupied size and an ending address, and the occupied size is used for indicating the size of the preset type memory currently occupied between the starting address and the ending address in the data item.
According to one or more embodiments of the present disclosure, there is provided an electronic device including:
One or more processors;
Storage means for storing one or more programs,
And when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the memory detection method provided by the embodiment of the present disclosure.
According to one or more embodiments of the present disclosure, there is provided a storage medium containing computer-executable instructions for performing the memory detection method provided by the embodiments of the present disclosure when executed by a computer processor.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in this disclosure is not limited to the specific combinations of features described above, but also covers other embodiments which may be formed by any combination of features described above or equivalents thereof without departing from the spirit of the disclosure. Such as those described above, are mutually substituted with the technical features having similar functions disclosed in the present disclosure (but not limited thereto).
Moreover, although operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are example forms of implementing the claims.

Claims (9)

1. A memory detection method, comprising:
Detecting release events associated with a memory of a preset type occupied by a thread by using at least two preset detection functions, wherein different preset detection functions are used for detecting different release events;
responding to the detection of the current release event by the preset detection function, and acquiring release information corresponding to the memory of the preset type in the current release event, wherein the release information comprises a release address and a release size;
Searching a target data item with data content meeting preset conditions in a data item set according to the release information, and updating the data content in the target data item according to the release information, wherein the data item set comprises at least one data item, the data item is created under the condition that the preset type memory is allocated to the thread, the data content comprises a starting address, an occupied size and an ending address, and the occupied size is used for indicating the size of the preset type memory currently occupied between the starting address and the ending address in the data item.
2. The method of claim 1, wherein the predetermined detection functions include a memory event detection function and a thread destroy detection function.
3. The method as recited in claim 2, further comprising:
Responding to the memory event detection function to detect a current memory allocation event for allocating the memory of the preset type to the thread, and acquiring an allocation starting address and an allocation size corresponding to the current memory allocation event;
And creating a current data item corresponding to the current memory allocation event, and adding the current data item into the data item set, wherein the data content in the current data item is determined according to the allocation starting address and the allocation size.
4. The method of claim 1, wherein the preset conditions include:
The release address is included between the start address and the end address, and the occupancy size is greater than or equal to the release size.
5. The method of claim 4, wherein updating the data content in the target data item according to the release information comprises:
Calculating the difference value between the occupied size and the released size to obtain a target size;
And updating the occupied size in the target data item to the target size.
6. The method as recited in claim 1, further comprising:
and calculating the sum of the occupied sizes of the data items in the data item set to obtain the current total occupied size of the memory of the preset type.
7. A memory detection apparatus, comprising:
The release event detection module is used for detecting release events associated with a memory of a preset type occupied by a thread by utilizing at least two preset detection functions, wherein different preset detection functions are used for detecting different release events;
The release information acquisition module is used for responding to the detection of the current release event by the preset detection function and acquiring release information corresponding to the memory of the preset type in the current release event, wherein the release information comprises a release address and a release size;
The data item updating module is used for searching a target data item, the data content of which meets preset conditions, in a data item set according to the release information, and updating the data content in the target data item according to the release information, wherein the data item set comprises at least one data item, the data item is created under the condition that the preset type memory is allocated to the thread, the data content comprises a starting address, an occupied size and an ending address, and the occupied size is used for indicating the size of the preset type memory currently occupied between the starting address and the ending address in the data item.
8. An electronic device, the electronic device comprising:
One or more processors;
Storage means for storing one or more programs,
The one or more programs, when executed by the one or more processors, cause the one or more processors to implement the memory detection method of any of claims 1-6.
9. A storage medium containing computer executable instructions which, when executed by a computer processor, are for performing the memory detection method of any of claims 1-6.
CN202211335924.8A 2022-10-28 2022-10-28 Memory detection method, device, equipment and storage medium Pending CN117992204A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211335924.8A CN117992204A (en) 2022-10-28 2022-10-28 Memory detection method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211335924.8A CN117992204A (en) 2022-10-28 2022-10-28 Memory detection method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117992204A true CN117992204A (en) 2024-05-07

Family

ID=90886037

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211335924.8A Pending CN117992204A (en) 2022-10-28 2022-10-28 Memory detection method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117992204A (en)

Similar Documents

Publication Publication Date Title
CN110471709B (en) Method, device, medium and electronic equipment for accelerating webpage opening speed
CN110865852B (en) Webpage component loading method and device, electronic equipment and storage medium
CN113835992B (en) Memory leakage processing method and device, electronic equipment and computer storage medium
CN110377341B (en) Method, device, medium and electronic equipment for monitoring no-response exception
CN111625422B (en) Thread monitoring method, thread monitoring device, electronic equipment and computer readable storage medium
CN110673986A (en) Memory operation abnormity capturing method, device, terminal and storage medium
CN111198777A (en) Data processing method, device, terminal and storage medium
CN116244004A (en) Resource management method, device, medium and electronic equipment
CN110674050A (en) Memory out-of-range detection method and device, electronic equipment and computer storage medium
CN116302271A (en) Page display method and device and electronic equipment
CN113138883B (en) Message processing method and device, storage medium and electronic equipment
CN110764995B (en) Method, device, medium and electronic equipment for detecting file access abnormality
CN111984496B (en) Method, device, medium and electronic equipment for monitoring stack memory leakage
CN117992204A (en) Memory detection method, device, equipment and storage medium
CN111625326B (en) Task pipeline execution method and device and electronic equipment
CN114741686A (en) Method and device for detecting program white list and related equipment
CN111949528A (en) Memory leak detection method and device, electronic equipment and storage medium
CN112306683A (en) Function hijacking method, device, medium and electronic equipment
CN113760631A (en) Page loading duration determination method, device, equipment and storage medium
CN114706645B (en) Interface information transmission method, device, medium and electronic equipment
CN114398233B (en) Load abnormality detection method and device, server and storage medium
CN111782410B (en) Lock jam monitoring method and device, electronic equipment and computer readable medium
CN112764941B (en) Resource access method, device, electronic equipment and computer readable storage medium
CN112559394B (en) System library access method and device and electronic equipment
CN111026571B (en) Processor down-conversion processing method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination