Application CPU occupation monitoring method and system and electronic equipment
By reading and identifying the QR code in the target disk, obtaining the application's CPU exceeding information, creating a CPU exceeding bug, solving the problem of invisible monitoring of CPU occupation exceeding the standard in the existing technology, and real-time performance optimization and monitoring of the application are achieved.
Patent Information
- Application Number
- CN202411757091.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-03
- Publication Date
- 2024-12-31
AI Technical Summary
The prior art cannot intuitively monitor the application's CPU occupation exceeding the standard, and the real-time monitoring is poor, making it inconvenient to perform performance optimization in a timely manner.
By reading the image files in the target disk, identifying the generated QR code to obtain the application's CPU exceeding information. If the application package name is identified for the first time, a CPU exceeding bug will be created and reported to achieve automatic monitoring of CPU occupation. and performance optimization.
It realizes intuitive monitoring and timely optimization of application CPU occupation exceeding the standard, and improves the degree of automation and cost-effectiveness of monitoring.
Smart Images

Figure CN119226097A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, system and electronic device for monitoring application CPU (Central Processing Unit) occupancy. Background Art
[0002] With the continuous development of software technology, applications (application software) have penetrated into various fields. In order to optimize the performance of applications, it is necessary to monitor the CPU usage of applications in real time. Traditional CPU usage monitoring methods often rely on manual intervention, such as manually opening the task manager to view the CPU usage.
[0003] However, this method not only cannot intuitively monitor the excessive CPU usage of the application, but also has poor real-time monitoring performance, making it difficult to optimize the performance of the application in a timely manner. Summary of the invention
[0004] The present application provides an application CPU occupancy monitoring method, system and electronic device to solve the technical problem in the prior art that the excessive CPU occupancy of an application cannot be intuitively monitored, making it difficult to optimize the performance of the application in a timely manner.
[0005] The present application provides a method for monitoring application CPU usage, the method comprising: Reading an image file in a target disk to obtain a target image, wherein the target image includes a target QR code, and the target QR code is generated according to the CPU exceeding information of the application, wherein the CPU exceeding information includes: an application package name of the application, an actual CPU usage rate of the application, and a target CPU usage rate value; By identifying the target QR code, the CPU exceeding standard information of the application is obtained; If the application package name in the CPU exceeding standard information is the application package name identified for the first time, a CPU exceeding standard Bug (vulnerability) is created and reported according to the CPU exceeding standard information.
[0006] In one embodiment of the present application, generating the image file includes: Get the actual CPU usage of the application; Compare the actual CPU usage with the corresponding CPU usage target value to determine whether the CPU usage of the application exceeds the standard or is normal, the CPU usage target value is a preset value, and the CPU usage target value corresponds to the application package name one by one; If the CPU usage of the application exceeds the limit, the CPU exceeding limit information is displayed on a preset display screen, and a QR code is generated according to the CPU exceeding limit information, and the QR code is displayed on the display screen; A screenshot is taken of the display screen to obtain a first screenshot image, and the first screenshot image is determined as the image file.
[0007] In an embodiment of the present application, before obtaining the actual CPU usage of the application, it is further included to determine whether the CPU monitoring function is turned on, wherein determining whether the CPU monitoring function is turned on includes: Monitoring the attribute value of the CPU monitoring switch, wherein the CPU monitoring switch is a preset system attribute, and the attribute value of the CPU monitoring switch changes with the on / off state of the CPU monitoring switch, and the on / off state of the CPU monitoring switch is manually set; If it is detected that the attribute value of the CPU monitoring switch is a preset first attribute value, it is determined that the CPU monitoring function has been turned on; if it is determined that the CPU monitoring function has been turned on, the actual CPU usage rate of the application is obtained; If it is detected that the attribute value of the CPU monitoring switch is a preset second attribute value, it is determined that the CPU monitoring function is turned off.
[0008] In one embodiment of the present application, obtaining the actual CPU usage of the application includes: Obtaining CPU occupancy information, the CPU occupancy information including: an initial CPU usage rate of the application process, and an application package name of the application process; If there are application processes with the same application package name, summing the initial CPU usage rates of the application processes with the same application package name to obtain the actual CPU usage rate of the application corresponding to the current application package name; If the application package names of the application processes in the CPU occupancy information are all different, the application to which the initial CPU usage belongs is determined according to the application package name in the CPU occupancy information, and the initial CPU usage is determined as the actual CPU usage of the corresponding application.
[0009] In an embodiment of the present application, obtaining the actual CPU usage of the application includes: obtaining the actual CPU usage of the application according to the execution frequency, wherein determining the execution frequency includes: Get the system CPU idle rate; If the system CPU idle rate is greater than or equal to a preset idle rate threshold, determining the execution frequency as a preset first frequency; If the system CPU idle rate is less than the idle rate threshold, the execution frequency is determined to be a preset second frequency, and the second frequency is higher than the first frequency.
[0010] In one embodiment of the present application, generating the image file further includes: When it is detected that the CPU idle rate of the system is less than the idle rate threshold, the currently acquired CPU occupancy information is displayed on the display screen; According to the CPU occupancy information, determining the application whose CPU occupancy exceeds the limit to obtain CPU excess information; Generate a QR code according to the CPU exceeding standard information, and display the QR code on the display screen; A screenshot is taken of the display screen to obtain a second screenshot image, and the second screenshot image is determined as the image file.
[0011] In one embodiment of the present application, the picture file is named with the current time and / or serial number; the reading of the picture file in the target disk to obtain the target picture includes: Read the image files in the specified directory of the target disk according to the preset reading frequency; According to the names of the various picture files in the designated directory, determining whether the picture files are newly generated picture files or historical picture files; If the picture file is a newly generated picture file, the current picture file is determined as the target picture.
[0012] In one embodiment of the present application, it further includes: When the CPU exceeding standard bug is created, the associated information of the CPU exceeding standard bug is recorded in a preset target list, wherein the associated information includes: application package name, actual CPU usage rate, and a link to the CPU exceeding standard bug; If the application package name in the CPU exceeding information already exists in the target list, it is determined that there is a reporting record for the application whose current CPU usage exceeds the standard, and the actual CPU usage in the current CPU exceeding information is compared with the actual CPU usage of the corresponding application in the target list; if the actual CPU usage in the current CPU exceeding information is greater than the actual CPU usage of the corresponding application in the target list, the target list and the corresponding reported CPU exceeding bug are updated.
[0013] In one embodiment of the present application, it further includes: According to the application package name in the CPU over-limit bug and a preset target mapping relationship, a target address is obtained, wherein the target mapping relationship refers to a mapping relationship between the application package name and the address; The CPU exceeding standard bug is sent to the target address.
[0014] The present application also provides an application CPU usage monitoring system, including: The image file reading module is used to read the image file in the target disk to obtain the target image, wherein the target image includes a target QR code, and the target QR code is generated according to the CPU exceeding information of the application, wherein the CPU exceeding information includes: the application package name of the application, the actual CPU usage rate of the application, and the CPU usage rate target value; A two-dimensional code recognition module, used to obtain the CPU exceeding standard information of the application by recognizing the target two-dimensional code; The processing module is used to create and report a CPU exceeding bug according to the CPU exceeding information if the application package name in the CPU exceeding information is an application package name identified for the first time.
[0015] In one embodiment of the present application, the system further includes: A CPU occupancy monitoring module is provided in the operating system of the vehicle to monitor the CPU over-limit situation of the application in the operating system and generate the image file.
[0016] In one embodiment of the present application, the CPU occupancy monitoring module includes: A process monitor, used to obtain CPU usage information of application processes in the operating system; The monitoring unit is used to obtain the actual CPU usage of the application in the operating system according to the CPU usage information; and determine whether the CPU usage of the application exceeds the standard or is normal according to the actual CPU usage and a preset CPU usage target value.
[0017] The present application also provides an electronic device, comprising a processor, a memory and a communication bus; the communication bus is used to connect the processor and the memory; the processor is used to execute a computer program stored in the memory to implement the vehicle-mounted application CPU occupancy monitoring method as described in any one of the above items.
[0018] Beneficial effects of the present application: The present application provides an application CPU occupancy monitoring method, system and electronic device, the method obtains a target image by reading an image file in a target disk, the target image includes a target QR code, the target QR code is generated based on the CPU exceeding information of the application, the CPU exceeding information includes: the application package name of the application, the actual CPU usage rate of the application, and the CPU target value; the CPU exceeding information of the application is obtained by identifying the target QR code; if the application package name in the CPU exceeding information is the application package name identified for the first time, a CPU exceeding bug is created and reported based on the CPU exceeding information. The method can automatically create a CPU exceeding bug, so that relevant personnel can intuitively monitor the CPU exceeding situation of the application, which is convenient for relevant personnel to optimize the performance of the application in a timely manner according to the CPU exceeding situation, etc., and it is highly feasible and low in cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 A flowchart of a method for monitoring application CPU occupancy provided by an embodiment of the present application; Figure 2 A schematic diagram of a flow chart of presetting a target value configuration file in a method for monitoring application CPU occupancy provided in an embodiment of the present application; Figure 3 A flowchart of a specific embodiment of the method for monitoring application CPU occupancy provided by an embodiment of the present application; Figure 4 A schematic diagram of the structure of an application CPU occupancy monitoring system provided in one embodiment of the present application; Figure 5 Another structural diagram of the application CPU occupancy monitoring system provided by one embodiment of the present application; Figure 6 A schematic diagram of the structure of a vehicle-mounted system provided by an embodiment of the present invention; Figure 7 A schematic diagram of the structure of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0020] The following describes the embodiments of the present application through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0021] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present application, and thus the drawings only show components related to the present application rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed at will, and the component layout may also be more complicated.
[0022] In the following description, a lot of details are discussed to provide a more thorough explanation of the embodiments of the present application. However, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details. In other embodiments, well-known structures and devices are shown in the form of block diagrams rather than in detail to avoid making the embodiments of the present application difficult to understand.
[0023] Combine the following Figures 1 to 7 , the application CPU occupancy monitoring method, system and electronic device provided by the present invention are explained.
[0024] See also Figure 1 , Figure 1 A flowchart of a method for monitoring application CPU occupancy provided by an embodiment of the present application is shown in FIG. Figure 1 As shown, the method includes: S110: Read the image file in the target disk to obtain the target image, wherein the target image includes a target QR code, and the target QR code is generated according to the CPU exceeding information of the application, wherein the CPU exceeding information includes: the application package name of the application, the actual CPU usage of the application, and the CPU usage target value.
[0025] S120: Obtain the CPU exceeding standard information of the application by identifying the target two-dimensional code.
[0026] S130: If the application package name in the CPU exceeding standard information is the application package name identified for the first time, a CPU exceeding standard Bug is created and reported according to the CPU exceeding standard information.
[0027] It should be noted that the above method can better monitor the CPU usage exceeding the standard of the application, so that relevant personnel can optimize the performance of the application in a timely manner according to the CPU usage exceeding the standard.
[0028] It should also be noted that the application CPU occupancy monitoring method in this embodiment is applied to the field of intelligent driving technology. In modern automotive electronic systems, vehicle-mounted applications have gradually become an important part of intelligent driving, such as applications in Android systems. Each vehicle-mounted application will occupy part of the CPU (central processing unit) resources when it is running. Since the CPU resources of the vehicle-mounted system are limited, when multiple vehicle-mounted applications compete for limited CPU resources, it may cause high load and other situations, resulting in reduced fluency and performance of the vehicle-mounted system, such as stuck and frozen screen in the vehicle-mounted system. Due to the lack of a monitoring method for the excessive CPU occupancy of vehicle-mounted applications, it is impossible to better monitor the excessive CPU occupancy of vehicle-mounted applications, which makes it inconvenient to optimize the performance of vehicle-mounted applications in a timely manner. Therefore, the above-mentioned application CPU occupancy monitoring method is adopted in this embodiment to solve the above problems.
[0029] In some embodiments, when the CPU occupancy monitoring method of the application in the above embodiment is used to monitor the CPU occupancy exceeding standard of the vehicle-mounted application in the vehicle's operating system, first, the image file in the target disk (the target disk can be a vehicle-mounted disk) is read to obtain the target image, and the target image includes a target QR code, and the target QR code is generated according to the CPU exceeding standard information of the application (vehicle-mounted application); secondly, the CPU exceeding standard information of the application is obtained by identifying the target QR code; finally, if the application package name in the CPU exceeding standard information is the application package name identified for the first time, then according to the CPU exceeding standard information, a CPU exceeding standard Bug is created and reported. It can be seen that by adopting the CPU occupancy monitoring method of the application in the above embodiment, real-time monitoring of the CPU occupancy exceeding standard of the application in the vehicle's operating system can be better achieved.
[0030] The application CPU occupancy monitoring method in the above embodiment is applicable not only to the field of intelligent driving technology, but also to multiple technical fields such as game development and smart home. The following takes the field of game development as an example to exemplify the above application CPU occupancy monitoring method.
[0031] Today's game platforms usually include multiple game applications. During the game development process, it is particularly important to monitor the CPU usage of each game application. Assuming that the application CPU usage monitoring method in the above embodiment is used to monitor the CPU usage of each application in the game platform, first, the image file in the target disk (the target disk can be a disk storing games) is read to obtain the target image, and the target image includes a target QR code, which is generated according to the CPU usage information of each application in the game platform; secondly, the CPU usage information of the application is obtained by identifying the target QR code; finally, if the application package name in the CPU usage information is the first recognized application package name, then according to the CPU usage information, a CPU usage bug is created and reported.
[0032] Similarly, the application CPU occupancy monitoring method in the above embodiment can also be applied to fields such as smart home, which will not be described in detail here.
[0033] The following is a further explanation of the CPU occupancy monitoring method in the context of intelligent driving.
[0034] For the sake of convenience of explanation, the operations of reading the image file, identifying the target QR code, and creating the CPU exceeding the standard bug in the above embodiment are collectively referred to as the bug reporting operation, that is, the bug reporting operation includes the operations of reading the image file, identifying the target QR code, and creating and reporting the CPU exceeding the standard bug. It can be understood that the bug reporting operation and the image file generation operation can be performed on the same device end or on different device ends.
[0035] In order to better apply to the field of intelligent driving technology and to reduce the operating load of the vehicle's operating system, in this embodiment, the image file generation operation is performed by the vehicle's operating system (the CPU occupancy monitoring module set in the operating system), and the operating system (the CPU occupancy monitoring module set in the operating system) saves the generated image file to the target disk (such as the vehicle computer disk). The bug reporting operation is performed by an external device to achieve asynchronous execution of the bug reporting operation and the image file generation operation, thereby improving the flexibility and controllability of the bug reporting operation and the image file generation operation. In other words, the image file in the above embodiment is generated by the CPU occupancy monitoring module preset in the vehicle operating system, and the bug reporting operation is performed by an external device other than the operating system.
[0036] It should be noted that the operating system of the vehicle in the above embodiment is the Android system, which belongs to the vehicle system, and the vehicle system also includes the QNX system (a real-time operating system based on a microkernel architecture). The QNX system is the main system, which is mainly responsible for functions such as instrument applications, including applications such as instrument HMI (human-machine interface) applications, boot animation applications, and 360 panoramic image applications. The Android system is the secondary system, which is mainly responsible for functions such as central control entertainment information applications, including applications such as vehicle settings, Bluetooth phones, multimedia, driving recorders, air conditioning settings, voice, and virtual images.
[0037] The following is an explanation of how to generate image files.
[0038] In some embodiments, the CPU occupancy monitoring module generates the image file including: 1. Get the actual CPU usage of the application.
[0039] It should be noted that the application in this embodiment is an in-vehicle application. The actual CPU usage of one or more applications may be obtained in the above steps, that is, the actual CPU usage of a specified application may be obtained, and the specified application may be one or more, or the actual CPU usage of all applications in the operating system may be obtained. In order to better monitor the CPU occupancy of each application in the operating system, the actual CPU usage of all applications in the operating system is obtained in this embodiment, and subsequent comparison and monitoring are performed.
[0040] 2. Compare the actual CPU usage with the corresponding CPU usage target value to determine whether the CPU usage of the application exceeds the standard or is normal. The CPU usage target value is a preset value, and the CPU usage target value corresponds to the application package name one by one.
[0041] The CPU usage target value is read from a preset target value configuration file, and the target value configuration file includes a one-to-one corresponding application package name and a CPU usage target value. The application package name is a unique identifier of the application.
[0042] It should be noted that by presetting the target value configuration file, it is easy to read the target value of the CPU usage of the application, so as to facilitate the subsequent CPU occupancy comparison. In addition, by comparing the actual CPU usage with the corresponding CPU usage target value, it is easy to determine whether the CPU usage of the application exceeds the standard. Specifically, if the actual CPU usage is greater than the corresponding CPU usage target value, it is determined that the CPU usage of the current application exceeds the standard; if the actual CPU usage is less than or equal to the corresponding CPU usage target value, it is determined that the CPU usage of the current application is normal.
[0043] 3. If the CPU usage of the application exceeds the limit, the CPU exceeding limit information is displayed on a preset display screen, and a QR code is generated based on the CPU exceeding limit information, and the QR code is displayed on the display screen.
[0044] It should be noted that by generating a QR code based on the CPU over-limit information and displaying the QR code on the display screen, the subsequently captured picture contains the QR code, thereby facilitating subsequent QR code recognition. It should be mentioned that compared with the method of recognizing text information in the picture, the method of recognizing the QR code is not only simpler and faster, but also more accurate and is not affected by screen brightness, clarity, etc.
[0045] 4. Taking a screenshot of the display screen to obtain a first screenshot image, and determining the first screenshot image as the image file.
[0046] In some embodiments, before obtaining the actual CPU usage of the application, the CPU occupancy monitoring module further includes: determining whether the CPU monitoring function is turned on, wherein determining whether the CPU monitoring function is turned on includes: 1. Monitor the attribute value of the CPU monitoring switch. The CPU monitoring switch is a preset system attribute. The attribute value of the CPU monitoring switch changes with the on / off state of the CPU monitoring switch. The on / off state of the CPU monitoring switch is set manually.
[0047] It should be noted that after the operating system (Android system) is started, the AMS (ActivityManager Service) service of the Android system is started, and the CPU usage monitoring module built into the AMS service is started. In order to determine whether CPU monitoring is required, the CPU usage monitoring module needs to obtain the on / off status of the CPU monitoring function, so that when it is determined that the CPU monitoring function is turned on, subsequent file reading (reading the target value configuration file) and obtaining the actual CPU usage rate of the application in the operating system are performed. This step greatly improves the controllability of the entire application CPU usage monitoring method.
[0048] Specifically, a user (tester or developer, etc.) can turn on or off the CPU monitoring switch in the engineering mode application of the operating system (Android system). When the user turns on the CPU monitoring switch, the engineering mode application sets the attribute value of the CPU monitoring switch to a preset first attribute value. Conversely, when the user turns off the CPU monitoring switch, the engineering mode application sets the attribute value of the CPU monitoring switch to a preset second attribute value. The first attribute value is different from the second attribute value.
[0049] It should also be noted that, in this embodiment, a pre-registered listener is used to monitor the attribute value of the CPU monitoring switch.
[0050] 2. If the attribute value of the CPU monitoring switch is detected to be a preset first attribute value, it is determined that the CPU monitoring function is turned on. If it is determined that the CPU monitoring function is turned on, the actual CPU usage rate of the application is obtained.
[0051] 3. If it is detected that the attribute value of the CPU monitoring switch is a preset second attribute value, it is determined that the CPU monitoring function is turned off.
[0052] It should be noted that the first attribute value may be True, etc., and the second attribute value may be False, etc.
[0053] In addition to using the listener to monitor the attribute value of the CPU monitoring switch, in some embodiments, the following is also included: 1. Using the monitor, monitor the change of the attribute value of the CPU monitoring switch.
[0054] 2. If it is monitored that the attribute value of the CPU monitoring switch changes from the first attribute value to the second attribute value, the CPU monitoring function is turned off.
[0055] 3. If it is monitored that the attribute value of the CPU monitoring switch changes from the second attribute value to the first attribute value, the CPU monitoring function is turned on.
[0056] It should be noted that by using a listener to monitor changes in the attribute value of the CPU monitoring switch, the CPU monitoring function can be turned on and off at any time.
[0057] In some embodiments, before obtaining the actual CPU usage of the application, the method further includes: reading a preset target value configuration file to obtain a CPU usage target value of the application, wherein the step of reading the preset target value configuration file includes: The target value configuration file pre-burned to the target directory of the target disk is read to obtain structure data, wherein the structure data includes: an application package name and a CPU usage target value, and the application package name and the CPU usage target value correspond one to one.
[0058] It should be noted that by parsing the target value configuration file into the above structured data, it is possible to directly obtain the memory usage target value of the corresponding application package name and perform comparison in the subsequent comparison process.
[0059] It should also be noted that the target value configuration file is pre-configured with information such as the application package name, the CPU usage target value, and the system to which the application belongs. The CPU usage target value corresponding to each application package name in the target value configuration file is a preset empirical value, such as the CPU usage target value of the vehicle setting application is 70%, the CPU usage target value of the Bluetooth phone application is 20%, and the CPU usage target value of the driving recorder is 100%.
[0060] It should be mentioned that this embodiment adopts the vCPU (virtual central processing unit) method to divide the CPU of the vehicle system into multiple vCPUs. Assuming that there are currently 8 vCPUs (8 cores), and the operating system (Android system) can occupy 6 cores, the proportion of available CPU resources is 600%.
[0061] It is also worth mentioning that by setting the corresponding CPU usage target value for each application in the target value configuration file, the CPU usage upper limit of each application can be clearly defined, thereby facilitating subsequent monitoring of the excessive CPU usage of in-vehicle applications.
[0062] Figure 2 This is a flow chart of presetting a target value configuration file (pre-burning the target value configuration file to a specified directory of a target disk) in a method for monitoring application CPU usage provided in an embodiment of the present invention. Please refer to Figure 2 First, write the target value configuration file in the operating system (Android system) source code. Secondly, use the preset compilation tools, such as Jenkins (an open source automation server), etc. to compile and package the system source code. The compiled product is the system flashing package. Burn the system flashing package to the target directory of the target disk of the vehicle system to complete the preset target value configuration file. By burning the target value configuration file to the target directory of the above-mentioned target disk, it is convenient to read files later and improve the file reading efficiency. It should be mentioned that the system source code also includes product.mk (product build configuration file) and so on.
[0063] In some embodiments, it also includes: According to a preset event sending frequency, Monkey events are regularly sent to the operating system. The Monkey events are randomly generated user input events. The user input events are used to perform random operations on the interface of the application in the operating system.
[0064] It should be noted that the event sending frequency can be set according to actual conditions, such as 450 milliseconds / time. User input events include random clicks, slides, scrolls, long presses, and text input. By regularly sending Monkey events to the operating system, it is possible to simulate real events, thereby fully covering the operating logic of each application and fully exposing the CPU usage of each application, so as to facilitate early monitoring of the CPU usage of the application and handle it as soon as possible.
[0065] In some embodiments, obtaining the actual CPU usage of the application includes: 1. Obtain CPU usage information, where the CPU usage information includes: an initial CPU usage rate of the application process and an application package name of the application process.
[0066] It should be noted that the CPU usage information corresponds to the application process in the operating system one by one, that is, each application process corresponds to one piece of CPU usage information, and each application corresponds to one or more application processes.
[0067] In some embodiments, the CPU occupancy information is obtained using a preset process monitor (top tool).
[0068] 2. If there are application processes with the same application package name, the initial CPU usage rates of the application processes with the same application package name are summed to obtain the actual CPU usage rate of the application corresponding to the current application package name.
[0069] It should be noted that if the application package names in the CPU occupancy information are the same, it means that the application corresponding to the application package name is a multi-process application. Therefore, the initial CPU usage rates of the application package names with the same name are summed to obtain the actual CPU usage rate of the application corresponding to the current application package name. If the application package names of the remaining CPU occupancy information are different, the vehicle application corresponding to the remaining CPU occupancy information is a single-process application. Therefore, the initial CPU usage rate in the remaining CPU occupancy information is the actual CPU usage rate of the corresponding vehicle application.
[0070] 3. If the application package names in the CPU occupancy information are all different, determine the in-vehicle application to which the initial CPU usage belongs according to the application package names in the CPU occupancy information, and determine the initial CPU usage as the actual CPU usage of the corresponding in-vehicle application.
[0071] It should be noted that if the application package names in all the CPU occupancy information are different, it means that the applications of the operating system are all single-process applications, so the initial CPU usage rate in the CPU occupancy information is directly determined as the actual CPU usage rate of the corresponding vehicle-mounted application. It should be mentioned that the applications in the vehicle-mounted system are basically single-process applications, and the above embodiment can better meet the CPU occupancy monitoring needs of the vehicle-mounted system. In addition, even if the vehicle-mounted system includes multi-process applications, the above embodiment can better monitor the CPU occupancy or exceeding conditions of multi-process applications, and the feasibility is strong.
[0072] In some embodiments, obtaining the actual CPU usage of the application includes: obtaining the actual CPU usage of the application according to the execution frequency, wherein determining the execution frequency includes: 1. Get the system CPU idle rate.
[0073] It should be noted that the system CPU idle rate refers to the CPU idle rate of the vehicle's operating system. The system CPU idle rate can be obtained simultaneously with the CPU occupancy information, that is, the CPU occupancy information and the system CPU idle rate are obtained simultaneously using the process monitor. The system CPU idle rate determines the execution frequency of obtaining the actual CPU usage rate of the application later.
[0074] 2. If the system CPU idle rate is greater than or equal to a preset idle rate threshold, the execution frequency is determined as a preset first frequency.
[0075] 3. If the system CPU idle rate is less than the idle rate threshold, the execution frequency is determined to be a preset second frequency, where the second frequency is higher than the first frequency; It should be noted that the first frequency may be 2 times / minute, etc., and the second frequency may be 12 times / minute, etc. The CPU idle rate may be 100% (the proportion of available CPU resources is 600%), etc.
[0076] It should also be noted that if the system CPU idle rate is less than the preset idle rate threshold, it means that the current CPU available resources of the operating system are relatively small and the CPU usage of each application is seriously exceeded. Therefore, the execution frequency is adjusted from the lower first frequency to the higher second frequency until the system CPU idle rate is greater than or equal to the idle rate threshold, thereby achieving timely follow-up and accurate monitoring of the application's CPU usage exceeding the standard.
[0077] In some embodiments, generating the image file further includes: 1. When it is detected that the system CPU idle rate is less than the idle rate threshold, the currently acquired CPU occupancy information is displayed on the display screen; the CPU occupancy information includes: the initial CPU usage rate of the application process, the application package name of the application process, and the system CPU idle rate.
[0078] 2. According to the CPU occupancy information, determine the application whose CPU occupancy exceeds the limit to obtain CPU excess information.
[0079] 3. Generate a QR code based on the CPU exceeding standard information, and display the QR code on the display screen.
[0080] 4. Taking a screenshot of the display screen to obtain a second screenshot image, and determining the second screenshot image as the image file.
[0081] It should be noted that if the system CPU idle rate is detected to be less than the idle rate threshold, it means that the CPU usage of each application exceeds the standard seriously, so the CPU usage information is displayed on the display screen for identification by relevant personnel. According to the CPU usage information, the application with excessive CPU usage can be determined, and then the CPU usage information is obtained. A QR code is generated according to the CPU usage information, the QR code is displayed, and a screenshot of the display screen is taken.
[0082] It should be mentioned that, according to the CPU over-limit information, the steps of generating a QR code include: The CPU over-limit information and the current time are encapsulated into a string to obtain a target string, such as a json (a data exchange format) string, etc.; a preset QR code generation tool, such as zxing (a QR code scanner), etc. is used to convert the target string into a QR code.
[0083] It is also worth mentioning that the memory overload information can be displayed in a green screen with red text or other display methods to facilitate identification by relevant personnel. In addition, the above-mentioned image files are stored in a specified directory of the target disk.
[0084] In some embodiments, the picture file is named with the current time and / or serial number; the step of reading the picture file in the target disk to obtain the target picture includes: 1. Read the image files in the specified directory of the target disk according to the preset reading frequency.
[0085] It should be noted that the reading frequency can be set according to actual needs, such as 30 seconds / time.
[0086] 2. According to the names of the various picture files in the designated directory, determine whether the picture file is a newly generated picture file or a historical picture file.
[0087] For example: according to the time or serial number in the name of each image file, it is identified whether the current image file is a newly generated image file or a historical image file. The historical image file is an image file that has been identified, and the new image file is an image file that has not been identified.
[0088] 3. If the picture file is a newly generated picture file, the current picture file is determined as the target picture.
[0089] It should be noted that, through the above steps, it is possible to better monitor the CPU usage or over-limit situation of each application in the operating system.
[0090] In some embodiments, it also includes: 1. When the CPU exceeding standard bug is created, the associated information of the CPU exceeding standard bug is recorded in a preset target list, and the associated information includes: application package name, actual CPU usage rate, and a link to the CPU exceeding standard bug.
[0091] It should be noted that, if the application package name in the CPU exceeding standard information does not exist in the target list, it means that the CPU exceeding standard information is the CPU exceeding standard information identified for the first time.
[0092] 2. If the application package name in the CPU exceeding standard information already exists in the target list, it is determined that the application that currently exceeds the CPU usage already has a report record, and the actual CPU usage rate in the current CPU exceeding standard information is compared with the actual CPU usage rate of the corresponding application in the target list; if the actual CPU usage rate in the current CPU exceeding standard information is greater than the actual CPU usage rate of the corresponding application in the target list, the target list and the corresponding reported CPU exceeding standard bug are updated. If the actual CPU usage rate in the current CPU exceeding standard information is greater than the actual CPU usage rate of the corresponding application in the target list, the currently identified CPU exceeding standard information is ignored.
[0093] It should be noted that through the above steps, accurate reporting of CPU over-limit bugs can be achieved, avoiding excessive reporting of data and causing redundancy.
[0094] It should be mentioned that, while creating the CPU exceeding standard bug, it also includes uploading the CPU exceeding standard information and the corresponding target image to the CPU exceeding standard bug to facilitate subsequent bug processing.
[0095] In some embodiments, it also includes: 1. According to the application package name in the CPU overload bug and a preset target mapping relationship, a target address is obtained, wherein the target mapping relationship refers to a mapping relationship between the application package name and the address.
[0096] 2. Send the CPU exceeding standard Bug to the target address.
[0097] It should be noted that, through the above steps, after reporting the CPU exceeding standard bug, the CPU exceeding standard bug can be automatically sent to the corresponding person in charge, so that the relevant person in charge can carry out bug repair and optimization in time.
[0098] The method for monitoring the CPU occupancy of vehicle-mounted applications in the above embodiment is further explained below with reference to a specific embodiment.
[0099] Please refer to Figure 3 First, start the CPU usage monitoring module. Specifically, start the Android system. After the Android system is started, the AMS (Activity Manager Service) service of the Android system is started, and the CPU usage monitoring module built into the AMS service is started.
[0100] Secondly, the CPU occupancy monitoring module determines whether the CPU monitoring function is turned on. Specifically, if the attribute value of the CPU monitoring switch is a preset first attribute value, it is determined that the CPU monitoring function is turned on; if the attribute value of the CPU monitoring switch is a preset second attribute value, it is determined that the CPU monitoring function is turned off.
[0101] Then, when the CPU monitoring function is determined to be turned on, the CPU occupancy monitoring module reads the preset target value configuration file to obtain structure data. The structure data includes: application package name and CPU usage target value, and the application package name and CPU usage target value correspond one to one.
[0102] Next, the CPU occupancy monitoring module periodically performs CPU monitoring operations according to the execution frequency. The CPU monitoring operation includes: regularly obtaining the CPU occupancy information of the Android system, the CPU occupancy information includes: the system CPU idle rate, the initial CPU usage rate of the application process, and the application package name of the application process; according to the initial CPU usage rate of the application process, the actual CPU usage rate of each application is obtained; according to the CPU idle rate of the operating system and the actual CPU usage rate of the vehicle-mounted application, subsequent comparison and screenshot operations are performed, which will not be repeated here.
[0103] Afterwards, an external device reads the image file in the target disk to obtain the target image; by identifying the target QR code, the CPU exceeding information of the application is obtained; and according to the CPU exceeding information, a CPU exceeding bug is created or updated.
[0104] Finally, the external device obtains the target address according to the application package name in the CPU exceeding standard bug and the preset target mapping relationship; and sends the CPU exceeding standard bug to the target address.
[0105] It should be noted that the steps executed by the CPU occupancy monitoring module and the steps executed by the external device may be executed successively or simultaneously.
[0106] The application CPU occupancy monitoring system provided by the present application is described below. The application CPU occupancy monitoring system described below and the application CPU occupancy monitoring method described above can be referenced to each other.
[0107] Please refer to Figure 4 The application CPU occupancy monitoring system provided in this embodiment includes: The image file reading module 410 is used to read the image file in the target disk to obtain the target image, wherein the target image includes a target QR code, and the target QR code is generated according to the CPU exceeding information of the application, wherein the CPU exceeding information includes: the application package name of the application, the actual CPU usage rate of the application, and the CPU usage rate target value; A two-dimensional code recognition module 420 is used to obtain the CPU exceeding standard information of the application by recognizing the target two-dimensional code; The processing module 430 is used to create and report a CPU exceeding bug according to the CPU exceeding information if the application package name in the CPU exceeding information is the application package name identified for the first time. The application CPU occupancy monitoring system in this embodiment can automatically create a CPU exceeding bug, thereby better realizing the monitoring of the CPU occupancy exceeding situation of the application, facilitating relevant personnel to timely optimize the performance of the application according to the CPU occupancy exceeding situation, etc., with a high degree of automation, strong feasibility and low cost.
[0108] Please refer to Figure 5 In some embodiments, the image file reading module 410, the QR code recognition module 420, and the processing module 430 are all integrated into an external device.
[0109] In some embodiments, the application CPU occupancy monitoring system further includes: a CPU occupancy monitoring module, the CPU occupancy monitoring module is arranged in the vehicle's operating system, so as to monitor the CPU exceeding the standard of the application in the operating system and generate the image file. It should be noted that by setting the CPU occupancy monitoring module, it is convenient to monitor the CPU occupancy of the application in the vehicle's operating system. The target disk is a vehicle disk, and the operating system is an Android system.
[0110] In some embodiments, the CPU occupancy monitoring module includes: A process monitor, used to obtain CPU usage information of application processes in the operating system; The monitoring unit is used to obtain the actual CPU usage of the application in the operating system according to the CPU usage information; and determine whether the CPU usage of the application exceeds the standard or is normal according to the actual CPU usage and a preset CPU usage target value.
[0111] In some embodiments, the CPU occupancy monitoring module is specifically used to obtain the actual CPU usage of the application; Compare the actual CPU usage with the corresponding CPU usage target value to determine whether the CPU usage of the application exceeds the standard or is normal, the CPU usage target value is a preset value, and the CPU usage target value corresponds to the application package name one by one; If the CPU usage of the application exceeds the limit, the CPU exceeding limit information is displayed on a preset display screen, and a QR code is generated according to the CPU exceeding limit information, and the QR code is displayed on the display screen; A screenshot is taken of the display screen to obtain a first screenshot image, and the first screenshot image is determined as the image file.
[0112] In some embodiments, the CPU occupancy monitoring module is further specifically used to determine whether a CPU monitoring function is turned on before obtaining the actual CPU usage rate of the application, wherein determining whether the CPU monitoring function is turned on includes: Monitoring the attribute value of the CPU monitoring switch, wherein the CPU monitoring switch is a preset system attribute, and the attribute value of the CPU monitoring switch changes with the on / off state of the CPU monitoring switch, and the on / off state of the CPU monitoring switch is manually set; If it is detected that the attribute value of the CPU monitoring switch is a preset first attribute value, it is determined that the CPU monitoring function has been turned on; if it is determined that the CPU monitoring function has been turned on, the actual CPU usage rate of the application is obtained; If it is detected that the attribute value of the CPU monitoring switch is a preset second attribute value, it is determined that the CPU monitoring function is turned off.
[0113] In some embodiments, the CPU occupancy monitoring module is further specifically used to obtain CPU occupancy information, and the CPU occupancy information includes: an initial CPU usage rate of the application process, and an application package name of the application process; If there are application processes with the same application package name, summing the initial CPU usage rates of the application processes with the same application package name to obtain the actual CPU usage rate of the application corresponding to the current application package name; If the application package names of the application processes in the CPU occupancy information are all different, the application to which the initial CPU usage belongs is determined according to the application package name in the CPU occupancy information, and the initial CPU usage is determined as the actual CPU usage of the corresponding application.
[0114] In some embodiments, the CPU occupancy monitoring module is further specifically used to obtain the actual CPU usage rate of the application according to the execution frequency, wherein determining the execution frequency includes: Get the system CPU idle rate; If the system CPU idle rate is greater than or equal to a preset idle rate threshold, determining the execution frequency as a preset first frequency; If the system CPU idle rate is less than the idle rate threshold, the execution frequency is determined to be a preset second frequency, and the second frequency is higher than the first frequency.
[0115] In some embodiments, the CPU occupancy monitoring module is further specifically configured to display the currently acquired CPU occupancy information on the display screen when detecting that the system CPU idle rate is less than the idle rate threshold; According to the CPU occupancy information, determining the application whose CPU occupancy exceeds the limit to obtain CPU excess information; Generate a QR code according to the CPU exceeding standard information, and display the QR code on the display screen; A screenshot is taken of the display screen to obtain a second screenshot image, and the second screenshot image is determined as the image file.
[0116] In some embodiments, the image file reading module 410 is specifically used to read the image files in the specified directory of the target disk according to a preset reading frequency; According to the names of the various picture files in the designated directory, determining whether the picture files are newly generated picture files or historical picture files; If the picture file is a newly generated picture file, the current picture file is determined as the target picture.
[0117] In some embodiments, the processing module 430 is specifically used to record the associated information of the CPU exceeding standard bug in a preset target list when the CPU exceeding standard bug is created, and the associated information includes: application package name, actual CPU usage rate, and link of the CPU exceeding standard bug; If the application package name in the CPU exceeding information already exists in the target list, it is determined that there is a reporting record for the application whose current CPU usage exceeds the standard, and the actual CPU usage in the current CPU exceeding information is compared with the actual CPU usage of the corresponding application in the target list; if the actual CPU usage in the current CPU exceeding information is greater than the actual CPU usage of the corresponding application in the target list, the target list and the corresponding reported CPU exceeding bug are updated.
[0118] In some embodiments, the processing module 430 is further specifically used to obtain a target address according to the application package name in the CPU overload bug and a preset target mapping relationship, where the target mapping relationship refers to a mapping relationship between the application package name and the address; The CPU exceeding standard bug is sent to the target address.
[0119] Figure 6 For a schematic diagram of the structure of a vehicle-mounted system provided by an embodiment of the present invention, please refer to Figure 6 The vehicle-mounted system in this embodiment includes two operating systems, namely, the QNX system (a real-time operating system based on a microkernel architecture) and the Android system, wherein the Android system includes the CPU occupancy monitoring module. In addition, the vehicle-mounted system also includes a Hypervisor (virtual machine monitor) and a SOC (System on Chip) chip, etc. The Hypervisor includes a CPU virtualization module, a memory virtualization module, and a virtual machine communication module, etc. The Android system is connected to the memory virtualization module to obtain its corresponding memory resources.
[0120] In some embodiments, an electronic device is also provided, which may be a server, and its internal structure is shown in FIG. Figure 7 As shown. The electronic device includes a processor, a memory, a network interface and a database connected via a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile and / or volatile storage medium, a CPU memory. The non-volatile storage medium stores an operating system, a computer program and a database. The CPU memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The network interface of the electronic device is used to communicate with an external client via a network connection. When the computer program is executed by the processor, the functions or steps on the server side of the above method are implemented.
[0121] In some embodiments, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the following steps are implemented: an image file in a target disk is read to obtain a target image, the target image includes a target QR code, the target QR code is generated based on CPU exceeding information of an application, the CPU exceeding information includes: an application package name of the application, an actual CPU usage rate of the application, and a target value of CPU usage rate; the CPU exceeding information of the application is obtained by identifying the target QR code; if the application package name in the CPU exceeding information is the application package name identified for the first time, a CPU exceeding bug is created and reported based on the CPU exceeding information.
[0122] In some embodiments, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: an image file in a target disk is read to obtain a target image, the target image includes a target QR code, the target QR code is generated based on the CPU exceeding information of the application, the CPU exceeding information includes: the application package name of the application, the actual CPU usage of the application, and the CPU usage target value; the CPU exceeding information of the application is obtained by identifying the target QR code; if the application package name in the CPU exceeding information is the application package name identified for the first time, a CPU exceeding bug is created and reported based on the CPU exceeding information.
[0123] It should be noted that the above functions or steps that can be implemented by the computer-readable storage medium or electronic device can refer to the relevant descriptions on the server side and the client side in the aforementioned method embodiment. To avoid repetition, they will not be described one by one here.
[0124] The flow chart and block diagram in the accompanying drawings illustrate the system architecture, function and operation that may be realized according to the method of various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the module, the program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the box can also occur in a sequence different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0125] The above embodiments are merely illustrative of the principles and effects of the present application and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.
Claims
1. A method for monitoring application CPU occupancy, characterized in that: include: Reading an image file in a target disk to obtain a target image, wherein the target image includes a target QR code, and the target QR code is generated according to the CPU exceeding information of the application, wherein the CPU exceeding information includes: an application package name of the application, an actual CPU usage rate of the application, and a target CPU usage rate value; By identifying the target QR code, the CPU exceeding standard information of the application is obtained; If the application package name in the CPU exceeding standard information is the application package name identified for the first time, a CPU exceeding standard Bug is created and reported according to the CPU exceeding standard information.
2. The method for monitoring application CPU usage according to claim 1, characterized in that: Generating the picture file includes: Get the actual CPU usage of the application; Compare the actual CPU usage with the corresponding CPU usage target value to determine whether the CPU usage of the application exceeds the standard or is normal, the CPU usage target value is a preset value, and the CPU usage target value corresponds to the application package name one by one; If the CPU usage of the application exceeds the limit, the CPU exceeding limit information is displayed on a preset display screen, and a QR code is generated according to the CPU exceeding limit information, and the QR code is displayed on the display screen; A screenshot is taken of the display screen to obtain a first screenshot image, and the first screenshot image is determined as the image file.
3. The method for monitoring application CPU usage according to claim 2, characterized in that: Before obtaining the actual CPU usage rate of the application, it is also included to determine whether the CPU monitoring function is turned on, wherein determining whether the CPU monitoring function is turned on includes: Monitoring the attribute value of the CPU monitoring switch, wherein the CPU monitoring switch is a preset system attribute, and the attribute value of the CPU monitoring switch changes with the on / off state of the CPU monitoring switch, and the on / off state of the CPU monitoring switch is manually set; If it is detected that the attribute value of the CPU monitoring switch is a preset first attribute value, it is determined that the CPU monitoring function has been turned on; if it is determined that the CPU monitoring function has been turned on, the actual CPU usage rate of the application is obtained; If it is detected that the attribute value of the CPU monitoring switch is a preset second attribute value, it is determined that the CPU monitoring function is turned off.
4. The method for monitoring application CPU occupancy according to claim 2, characterized in that: The obtaining of the actual CPU usage of the application includes: Obtaining CPU occupancy information, the CPU occupancy information including: an initial CPU usage rate of the application process, and an application package name of the application process; If there are application processes with the same application package name, summing the initial CPU usage rates of the application processes with the same application package name to obtain the actual CPU usage rate of the application corresponding to the current application package name; If the application package names of the application processes in the CPU occupancy information are all different, the application to which the initial CPU usage belongs is determined according to the application package name in the CPU occupancy information, and the initial CPU usage is determined as the actual CPU usage of the corresponding application.
5. The method for monitoring application CPU occupancy according to claim 2, characterized in that: The obtaining of the actual CPU usage of the application includes: obtaining the actual CPU usage of the application according to the execution frequency, wherein determining the execution frequency includes: Get the system CPU idle rate; If the system CPU idle rate is greater than or equal to a preset idle rate threshold, determining the execution frequency as a preset first frequency; If the system CPU idle rate is less than the idle rate threshold, the execution frequency is determined to be a preset second frequency, and the second frequency is higher than the first frequency.
6. The method for monitoring application CPU usage according to claim 5, characterized in that: Generating the picture file also includes: When it is detected that the CPU idle rate of the system is less than the idle rate threshold, the currently acquired CPU occupancy information is displayed on the display screen; According to the CPU occupancy information, determining the application whose CPU occupancy exceeds the limit to obtain CPU excess information; Generate a QR code according to the CPU exceeding standard information, and display the QR code on the display screen; A screenshot is taken of the display screen to obtain a second screenshot image, and the second screenshot image is determined as the image file.
7. The method for monitoring application CPU occupancy according to any one of claims 1 to 6, characterized in that: The picture file is named with the current time and / or sequence number; The step of reading the image file in the target disk to obtain the target image includes: Read the image files in the specified directory of the target disk according to the preset reading frequency; According to the names of the various picture files in the designated directory, determining whether the picture files are newly generated picture files or historical picture files; If the picture file is a newly generated picture file, the current picture file is determined as the target picture.
8. The method for monitoring application CPU occupancy according to any one of claims 1 to 6, characterized in that: Also includes: When the CPU exceeding standard bug is created, the associated information of the CPU exceeding standard bug is recorded in a preset target list, wherein the associated information includes: application package name, actual CPU usage rate, and a link to the CPU exceeding standard bug; If the application package name in the CPU exceeding information already exists in the target list, it is determined that there is a reporting record for the application whose current CPU usage exceeds the standard, and the actual CPU usage in the current CPU exceeding information is compared with the actual CPU usage of the corresponding application in the target list; if the actual CPU usage in the current CPU exceeding information is greater than the actual CPU usage of the corresponding application in the target list, the target list and the corresponding reported CPU exceeding bug are updated.
9. The method for monitoring application CPU usage according to any one of claims 1 to 6, characterized in that: Also includes: According to the application package name in the CPU over-limit bug and a preset target mapping relationship, a target address is obtained, wherein the target mapping relationship refers to a mapping relationship between the application package name and the address; The CPU exceeding standard bug is sent to the target address.
10. An application CPU occupancy monitoring system, characterized in that: include: The image file reading module is used to read the image file in the target disk to obtain the target image, wherein the target image includes a target QR code, and the target QR code is generated according to the CPU exceeding information of the application, wherein the CPU exceeding information includes: the application package name of the application, the actual CPU usage rate of the application, and the CPU usage rate target value; A two-dimensional code recognition module, used to obtain the CPU exceeding standard information of the application by recognizing the target two-dimensional code; The processing module is used to create and report a CPU exceeding bug according to the CPU exceeding information if the application package name in the CPU exceeding information is an application package name identified for the first time.
11. The application CPU occupancy monitoring system according to claim 10, characterized in that: Also includes: A CPU occupancy monitoring module is provided in the operating system of the vehicle to monitor the CPU over-limit situation of the application in the operating system and generate the image file.
12. The application CPU occupancy monitoring system according to claim 11, characterized in that: The CPU occupancy monitoring module includes: A process monitor, used to obtain CPU usage information of application processes in the operating system; The monitoring unit is used to obtain the actual CPU usage of the application in the operating system according to the CPU usage information; and determine whether the CPU usage of the application exceeds the standard or is normal according to the actual CPU usage and a preset CPU usage target value.
13. An electronic device, characterized in that: It comprises a processor, a memory and a communication bus; the communication bus is used to connect the processor and the memory; the processor is used to execute the computer program stored in the memory to implement the application CPU occupancy monitoring method as described in any one of claims 1 to 9.
Citation Information
Patent Citations
IT device operation and maintenance monitoring method based on two-dimensional codes
CN103778513A
Equipment abnormal information display method and computer equipment
CN108920337A
Monitoring method and monitoring device for computer system and application program
CN111752800A
Memory monitoring method and device, electronic equipment and storage medium
CN118152229A
Memory monitoring method and device
CN118708388A
