System load detection method and program product

By calculating the instantaneous total occupancy rate and average total occupancy rate of the system and processes, detection result data is generated, which solves the problem of poor monitoring effect of functional modules in advanced driver assistance systems in the prior art, realizes efficient optimization and adjustment of vehicle processes, and improves safety and stability.

CN121501596APending Publication Date: 2026-02-10CHINA FAW CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511546997.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-10-27
Publication Date
2026-02-10

AI Technical Summary

Technical Problem

Existing technologies cannot accurately analyze the relationship between process load and system load of advanced driver assistance system functional modules in vehicles, resulting in poor monitoring performance.

Method used

By acquiring target detection parameters, calculating the instantaneous total occupancy rate and average total occupancy rate of the system and processes, and generating detection result data, automated data processing and fault location of advanced driver assistance system functional modules in vehicles can be achieved.

Benefits of technology

The optimization and adjustment of processes related to the advanced driver assistance system functional modules have been improved to ensure safer, more stable and reliable vehicle operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121501596A_ABST
    Figure CN121501596A_ABST
Patent Text Reader

Abstract

The invention discloses a system load detection method and a program product. The method comprises the following steps: in response to a load detection request of a target system in a vehicle, obtaining a target detection parameter according to the load detection request; according to the total detection duration, the sampling time interval and the detection process parameter, acquiring a system instantaneous total occupancy rate of the target system to a central processing unit of the vehicle and a process instantaneous total occupancy rate of each target process to the central processing unit under the plurality of sampling periods; and determining a system average total occupancy rate of the system instantaneous total occupancy rate under the plurality of sampling periods, determining a process average total occupancy rate of the process instantaneous total occupancy rate under the plurality of sampling periods, and generating detection result data according to the system average total occupancy rate of the target system and the process average total occupancy rate of the plurality of target processes. Therefore, an accurate performance test baseline can be established for the process corresponding to the scene to be tested, and the plurality of processes are evaluated, so that the acquisition and analysis efficiency of the system load data in the vehicle is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer technology, and in particular to a system load detection method and program product. Background Technology

[0002] With the rapid development of automotive intelligence, the functions of intelligent driving systems are becoming increasingly complex. Their software typically consists of a large number of cooperating processes / threads, running on a heterogeneous multi-core SOC (System on a Chip). Central processing unit (CPU) load is a key indicator for evaluating system performance, stability, and resource redundancy.

[0003] In related technologies, system performance monitoring tools are typically used to monitor the load of the central processing unit (CPU). However, these tools cannot automatically identify and monitor key advanced driver assistance system functional modules in vehicles, nor can they accurately analyze the relationship between the load of different processes and the system load, resulting in poor monitoring of key driving modules in vehicles. Summary of the Invention

[0004] This invention provides a system load detection method and program product to solve the technical problem of poor thread identification and monitoring processing effect in vehicles corresponding to the test scenario in related technologies.

[0005] According to one aspect of the present invention, a system load detection method is provided, the method comprising:

[0006] In response to a load detection request from a target system in the vehicle, target detection parameters are obtained based on the load detection request. The target detection parameters include total detection duration, sampling time interval, and detection process parameters. The detection process parameters are used to indicate the target process to be detected in the target system.

[0007] Based on the total detection duration, the sampling time interval, and the detection process parameters, the instantaneous total system occupancy rate of the target system on the vehicle's central processing unit and the instantaneous total process occupancy rate of each target process on the central processing unit are obtained under multiple sampling periods.

[0008] The system average total occupancy rate of the instantaneous total occupancy rate of the system under multiple sampling periods is determined, and the process average total occupancy rate of the instantaneous total occupancy rate of the process under multiple sampling periods is determined. Detection result data is generated based on the system average total occupancy rate of the target system and the process average total occupancy rates of the multiple target processes.

[0009] According to another aspect of the present invention, a system load detection device is provided, the device comprising:

[0010] The detection parameter acquisition module is used to respond to the load detection request of the target system in the vehicle and acquire the target detection parameters according to the load detection request. The target detection parameters include the total detection duration, sampling time interval, and detection process parameters. The detection process parameters are used to indicate the target process to be detected in the target system.

[0011] The instantaneous total occupancy rate determination module is used to obtain the instantaneous total occupancy rate of the target system on the central processing unit of the vehicle and the instantaneous total occupancy rate of each target process on the central processing unit under multiple sampling periods, based on the total detection duration, the sampling time interval and the detection process parameters.

[0012] The detection result data generation module is used to determine the system average total occupancy rate of the instantaneous total occupancy rate of the system under multiple sampling periods, determine the process average total occupancy rate of the instantaneous total occupancy rate of the process under multiple sampling periods, and generate detection result data based on the system average total occupancy rate of the target system and the process average total occupancy rate of multiple target processes.

[0013] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0014] At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform a system load detection method according to any embodiment of the present invention.

[0015] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement a system load detection method according to any embodiment of the present invention.

[0016] According to another aspect of the present invention, embodiments of the present disclosure also provide a computer program product, including a computer program that, when executed by a processor, implements a system load detection method as described in any of the embodiments of the present disclosure.

[0017] The technical solution of this invention firstly involves responding to a load detection request from a target system in a vehicle and obtaining target detection parameters based on the load detection request. These target detection parameters include total detection time, sampling time interval, and detection process parameters. The detection process parameters are used to indicate the target process to be detected in the target system. This allows for the direct acquisition of system and process operation data corresponding to each test scenario based on the sent request. This achieves automated processing of data from advanced driver assistance system functional modules (each test scenario) in the vehicle, reduces the load of analysis types, and thus improves the efficiency of data analysis and processing. Secondly, based on the total detection duration, the sampling time interval, and the detection process parameters, the instantaneous total system occupancy rate of the target system on the vehicle's central processing unit and the instantaneous total process occupancy rate of each target process on the central processing unit are obtained under multiple sampling periods. This allows for real-time fault location and peak change analysis based on the load changes of each process over a period of time. Finally, by determining the system average total occupancy rate of the instantaneous total system occupancy rate under multiple sampling periods and the process average total process occupancy rate under multiple sampling periods, detection result data is generated based on the system average total occupancy rate of the target system and the process average total occupancy rate of the multiple target processes. This allows users to intuitively determine the resource occupancy rate of a certain process over a period of time based on the detection result data, thereby identifying the target process that needs optimization and significantly shortening the fault diagnosis and performance debugging cycle. Therefore, by obtaining the instantaneous total occupancy rate and average total occupancy rate of the system and each process over a period of time, and by analyzing the two together, a more comprehensive and accurate assessment of the processes related to the advanced driver assistance system (ADAS) functional modules in the vehicle can be made. This improves the optimization and adjustment of the processes related to the ADAS functional modules, enabling the vehicle to drive more safely, stably, and reliably.

[0018] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0019] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0020] Figure 1This is a flowchart of a system load detection method provided in Embodiment 1 of the present invention;

[0021] Figure 2 This is a flowchart of a system load detection method provided in Embodiment 2 of the present invention;

[0022] Figure 3A This is a flowchart of a system load detection method provided in Embodiment 3 of the present invention;

[0023] Figure 3B This is a schematic diagram of the average occupancy rate in a system load detection method according to Embodiment 3 of the present invention;

[0024] Figure 3C This is a schematic diagram of the instantaneous occupancy rate in a system load detection method according to Embodiment 3 of the present invention;

[0025] Figure 4 This is a schematic diagram of the structure of a system load detection device according to Embodiment 4 of the present invention;

[0026] Figure 5 This is a schematic diagram of the structure of an electronic device that implements the system load detection method provided in Embodiment 5 of the present invention. Detailed Implementation

[0027] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0028] It should be noted that the terms "instantaneous," "average," "first," "second," etc., used in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0029] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".

[0030] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.

[0031] It is understood that before using the technical solutions disclosed in the various embodiments of this disclosure, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this disclosure in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.

[0032] For example, upon receiving a user's active request, a prompt message is sent to the user to explicitly inform them that the requested operation will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the software or hardware, such as the electronic device, application, server, or storage medium performing the operations of this disclosed technical solution, based on the prompt message.

[0033] As an optional but non-limiting implementation, in response to a user's active request, sending a prompt message to the user can be done via a pop-up window, where the prompt message can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0034] It is understood that the above notification and user authorization process are merely illustrative and do not constitute a limitation on the implementation of this disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of this disclosure.

[0035] It is understood that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and related provisions.

[0036] Example 1

[0037] Figure 1 This is a flowchart of a system load detection method provided in Embodiment 1 of the present invention. This embodiment is applicable to monitoring the load of various processes in a vehicle, especially in scenarios where the load of processes related to advanced driver assistance system (ADAS) functional modules in a vehicle needs to be monitored. This method can be executed by a system load detection device, which can be implemented in hardware and / or software, optionally through an electronic device such as a mobile terminal, PC, or server. Figure 1As shown, the method may specifically include:

[0038] S110. In response to a load detection request from a target system in a vehicle, obtain target detection parameters based on the load detection request. The target detection parameters include total detection duration, sampling time interval, and detection process parameters. The detection process parameters are used to indicate the target process to be detected in the target system.

[0039] The target system can be understood as at least one of the following systems in a vehicle: advanced driver assistance system (ADAS), body control system, powertrain system, etc. In this technical solution, the target system mainly refers to the ADAS, used to detect load data related to the ADAS in the vehicle. A load detection request can be understood as a command or signal used to detect the target system, and it may include preset load-related operating parameter types. For example, the load detection request may include target detection parameters. Multiple target processes may be included, specifically at least one of the following processes: obstacle detection process, lane detection process, traffic sign recognition process, radar signal processing process, positioning algorithm process, vehicle control process, system management process, and path planning process.

[0040] Specifically, in response to a load detection request for a target system in a vehicle, data is collected from the target folder containing the load data of the target process to be detected, based on the target detection parameters included in the load detection request and according to the preset total detection duration, sampling time interval, and detection process parameters. This yields various data related to the load of the target process. This technical solution achieves automated detection of target process load data by using load detection requests to collect load data from the target system, thereby improving the efficiency and reliability of load data collection and analysis.

[0041] S120. Based on the total detection duration, the sampling time interval, and the detection process parameters, obtain the instantaneous total system occupancy rate of the target system on the central processing unit of the vehicle and the instantaneous total process occupancy rate of each target process on the central processing unit under multiple sampling periods.

[0042] The instantaneous total system utilization rate refers to the total CPU time utilization rate of all processes in the target system during a certain sampling period, which reflects the busy level of the target system. The instantaneous total process utilization rate refers to the total CPU time utilization rate of any one of the target processes under test during a certain sampling period, which reflects the computational intensity of the target process.

[0043] Specifically, multiple sampling periods are determined based on the total detection duration and sampling intervals. By acquiring various data related to the target system load and target process load, the instantaneous total system occupancy rate of the target system on the vehicle's central processing unit (CPU) under multiple sampling periods is calculated. Furthermore, the instantaneous total CPU occupancy rate of each target process under multiple sampling periods is also calculated. By calculating the instantaneous total system occupancy rate and the instantaneous total process occupancy rate under any given sampling period, the peak CPU usage can be analyzed to identify system bottlenecks and optimize the resource consumption of critical processes, thereby improving system processing performance and stability.

[0044] Furthermore, taking the Advanced Driver Assistance System (ADAS), specifically the obstacle detection process and path planning process within it, as an example, if the total detection time is 300 seconds and the sampling interval is 1 second, then the sampling period is 1 second, totaling 300 sampling periods. In this case, within each of the 300 sampling periods, the instantaneous total system occupancy rate of the target system on the vehicle's central processing unit (CPU), the instantaneous total process occupancy rate of the obstacle detection process on the CPU, and the instantaneous total process occupancy rate of the path planning process on the CPU are obtained sequentially for each of the 300 sampling periods.

[0045] In one embodiment, obtaining the instantaneous total system occupancy rate of the target system on the vehicle's central processing unit (CPU) under multiple sampling periods based on the total detection duration, the sampling time interval, and the detection process parameters includes: determining multiple sampling times based on the total detection duration and the sampling time interval; obtaining the total idle time of the target system not occupying the CPU and the total working time of the CPU at each sampling time; subtracting the total idle time of the system from two adjacent sampling times to obtain the instantaneous total idle time of the system under the sampling period; and subtracting the total working time of the CPU from two adjacent sampling times to obtain the instantaneous total working time of the CPU under the sampling period; and determining the instantaneous total system occupancy rate of the target system on the CPU under the sampling period based on the instantaneous total idle time of the system and the instantaneous total working time of the CPU under each sampling period.

[0046] Here, sampling time refers to each specific load data acquisition time point determined by the total detection duration and sampling time interval. Total system idle time refers to the total idle time of the entire CPU from the start time of the total detection duration to the sum of the idle times at different sampling times. In this technical solution, total processor working time specifically refers to the sum of the total running time of all CPU cores in the target system from the start time of the total detection duration. For example, if the sampling period is 1 second and the number of CPU cores is 4, then the total processor working time is 1 second multiplied by 4, that is, the total processor working time of a 4-core CPU in one sampling period is 4 seconds. Instantaneous total system idle time refers to the time the CPU of the target system is idle within the sampling period. Instantaneous total processor working time refers to the total running time of all CPU cores within the sampling period.

[0047] Specifically, the total detection time is divided by the sampling interval to determine multiple sampling counts. These multiple sampling counts are then calculated with the sampling interval to determine multiple sampling times. At each sampling time, the total idle time of the target system's central processing unit (CPU) and the total CPU processing time for vehicles not in use are obtained. Furthermore, by calculating the difference between the total idle time and the total processing time for adjacent sampling times, the instantaneous total idle time and instantaneous total CPU processing time for the system in each sampling period are obtained. Based on these instantaneous total idle time and instantaneous total CPU processing time for each sampling period, the instantaneous total CPU occupancy rate of the target system in each sampling period is determined. This technical solution, by determining the instantaneous total CPU occupancy rate for the system in each sampling period, allows for analysis of instantaneous peak values ​​to identify system resource bottlenecks. This enables timely adjustments to the bottleneck capacity and optimization of resource consumption in critical processes, ensuring system stability.

[0048] In one embodiment, determining the instantaneous total system occupancy rate of the target system to the central processing unit in each sampling period based on the instantaneous total idle time of the system and the instantaneous total working time of the processor in each sampling period includes: for each sampling period, determining the ratio of the instantaneous total idle time of the system to the instantaneous total working time of the processor in the sampling period, and determining the difference between the value and the ratio as the instantaneous total system occupancy rate of the target system to the central processing unit in the sampling period.

[0049] Specifically, within each sampling period, the ratio of the system's instantaneous total idle time to the processor's instantaneous total working time is calculated to obtain the system's instantaneous idle rate within the sampling period. Since the CPU is either idle or busy (occupied), the difference between the value "1" and the system's instantaneous idle rate can be used to determine the target system's instantaneous total CPU occupancy rate within the sampling period. This technical solution obtains the system's idle time within a sampling period and then calculates the percentage of time the system is actually occupied within that period, thus accurately and efficiently obtaining the system's instantaneous total occupancy rate.

[0050] In one embodiment, obtaining the instantaneous total process occupancy rate of each target process on the central processing unit (CPU) under multiple sampling periods based on the total detection duration, the sampling time interval, and the detection process parameters includes: determining multiple sampling times based on the total detection duration and the sampling time interval; obtaining the cumulative total process occupancy time of each target process using the CPU of the vehicle and the total processor working time of the CPU at each sampling time; subtracting the total process occupancy time of two adjacent sampling times to obtain the instantaneous total process occupancy time of the sampling period; and subtracting the total processor working time of two adjacent sampling times to obtain the instantaneous total processor working time of the sampling period; and for each target process in each sampling period, determining the instantaneous total process occupancy rate of the target process on the CPU in the sampling period based on the ratio of the instantaneous total process occupancy time of the target process to the instantaneous total processor working time of the CPU in the sampling period.

[0051] The total process occupancy time refers to the total time the target process spends in a CPU state from the start of the total detection time to the accumulation of different sampling times. Specifically, the total process occupancy time includes the total CPU time occupied by the target process in user mode and the total CPU time occupied by the target process in kernel mode. User mode refers to the mode of execution using ordinary CPU instructions; kernel mode refers to the mode of execution using the operating system kernel. The instantaneous total process occupancy time refers to the time the target process spends in a CPU state within the sampling period.

[0052] Specifically, the total detection time is divided by the sampling interval to determine multiple sampling counts. These multiple sampling counts are then calculated with the sampling interval to determine multiple sampling times. At each sampling time, the total process time occupied by the target process and the total CPU time of the CPU are obtained. Furthermore, by calculating the difference between the total process time occupied by two adjacent sampling times and the difference between the total CPU time of two adjacent sampling times, the instantaneous total process time occupied and the instantaneous total CPU time of the CPU in the sampling period are obtained. Finally, for each target process in each sampling period, the ratio of the instantaneous total process time occupied to the instantaneous total CPU time of the CPU is calculated to determine the instantaneous total CPU utilization rate of the target process in the sampling period. This allows for analysis of instantaneous peak results to determine the resource consumption of different processes, thereby effectively improving the efficiency and accuracy of target process performance optimization.

[0053] S130. Determine the system average total occupancy rate of the system instantaneous total occupancy rate under multiple sampling periods, determine the process average total occupancy rate of the process instantaneous total occupancy rate under multiple sampling periods, and generate detection result data based on the system average total occupancy rate of the target system and the process average total occupancy rate of multiple target processes.

[0054] The system average total occupancy rate refers to the arithmetic mean of the instantaneous total occupancy rate of the system within a total detection period. Specifically, it is calculated by summing the instantaneous total occupancy rates calculated for each sampling period and dividing by the total number of sampling periods. The process average total occupancy rate refers to the arithmetic mean of the instantaneous total occupancy rate of the target process within a total detection period. Specifically, it is calculated in the same way as the system average total occupancy rate. The detection result data can specifically refer to a structured report or dataset, and its presentation format can include at least one of the following: histogram, line chart, numerical results, etc.

[0055] Specifically, based on the instantaneous total system occupancy and process occupancy over multiple sampling periods, the arithmetic mean of these instantaneous total occupancy and process occupancy is calculated over a total detection period, yielding the system average total occupancy and the target process average total occupancy. Then, based on the target system's average total occupancy and the average total occupancy of multiple target processes, detection result data is generated according to a preset format. This generated detection result data allows users to assess the performance relationship between multiple target processes and the system from a macroscopic perspective, as well as the resource allocation among different processes. This enables better problem diagnosis and performance optimization of the target system and target processes, thereby improving the safety and stability of the vehicle during operation.

[0056] The technical solution of this invention firstly involves responding to a load detection request from a target system in a vehicle and obtaining target detection parameters based on the load detection request. These target detection parameters include total detection time, sampling time interval, and detection process parameters. The detection process parameters are used to indicate the target process to be detected in the target system. This allows for the direct acquisition of system and process operation data corresponding to each test scenario based on the sent request. This achieves automated processing of data from advanced driver assistance system functional modules (each test scenario) in the vehicle, reduces the load of analysis types, and thus improves the efficiency of data analysis and processing. Secondly, based on the total detection duration, the sampling time interval, and the detection process parameters, the instantaneous total system occupancy rate of the target system on the vehicle's central processing unit and the instantaneous total process occupancy rate of each target process on the central processing unit are obtained under multiple sampling periods. This allows for real-time fault location and peak change analysis based on the load changes of each process over a period of time. Finally, by determining the system average total occupancy rate of the instantaneous total system occupancy rate under multiple sampling periods and the process average total process occupancy rate under multiple sampling periods, detection result data is generated based on the system average total occupancy rate of the target system and the process average total occupancy rate of the multiple target processes. This allows users to intuitively determine the resource occupancy rate of a certain process over a period of time based on the detection result data, thereby identifying the target process that needs optimization and significantly shortening the fault diagnosis and performance debugging cycle. Therefore, by obtaining the instantaneous total occupancy rate and average total occupancy rate of the system and each process over a period of time, and by analyzing the two together, a more comprehensive and accurate assessment of the processes related to the advanced driver assistance system (ADAS) functional modules in the vehicle can be made. This improves the optimization and adjustment of the processes related to the ADAS functional modules, enabling the vehicle to drive more safely, stably, and reliably.

[0057] Example 2

[0058] Figure 2 This is a flowchart of a system load detection method provided in Embodiment 2 of the present invention. The solution in this embodiment is a refinement of the technical solution for generating detection result data based on the average total occupancy of the target system and the average total occupancy of multiple target processes, building upon the solutions described in the previous embodiments. Detailed implementation methods can be found in the description of this embodiment. Technical features that are the same as or similar to those in the foregoing embodiments will not be repeated here. Figure 2 As shown, the method may specifically include:

[0059] S210. In response to a load detection request from a target system in the vehicle, obtain target detection parameters based on the load detection request. The target detection parameters include total detection duration, sampling time interval, and detection process parameters. The detection process parameters are used to indicate the target process to be detected in the target system.

[0060] S220. Based on the total detection duration, the sampling time interval, and the detection process parameters, obtain the instantaneous total system occupancy rate of the target system on the central processing unit of the vehicle and the instantaneous total process occupancy rate of each target process on the central processing unit under multiple sampling periods.

[0061] S230. Determine the system average total occupancy rate of the instantaneous total occupancy rate of the system under multiple sampling periods, and determine the process average total occupancy rate of the instantaneous total occupancy rate of the process under multiple sampling periods.

[0062] S240. Obtain the sampling time segments and total number of samplings corresponding to multiple sampling periods, and generate a first load detection report by combining the sampling time segments, the total number of samplings, the average total occupancy rate of the target system, and the average total occupancy rate of multiple target processes according to a preset data organization format and a preset file format.

[0063] The sampling time period refers to the time range from the start to the end of the entire load testing task. The total number of samples refers to the total number of data acquisitions actually performed within the entire sampling time period. The preset data organization format refers to predefined rules or templates used to structure and arrange data. The preset file format refers to the storage format or type of the final output report file; for example, the file format may include PDF, report, histogram, etc. The first load testing report refers to the load testing result file obtained based on the preset data organization format and the preset file format.

[0064] Specifically, based on the target detection parameters in the load detection request, the sampling time segments and total number of samples corresponding to multiple sampling periods are determined. A structured first load detection report is generated by combining the sampling time segments, total number of samples, the average total utilization of the target system, and the average total utilization of multiple target processes, according to a preset data organization format and a preset file format. In this technical solution, by using a standardized format to generate the load detection report, users can perform more comprehensive and richer analysis of the load data, enabling efficient and accurate performance optimization of the target system and target processes to ensure the operational stability and safety of the vehicle system.

[0065] In one embodiment, after obtaining the instantaneous total system occupancy rate of the target system on the central processing unit of the vehicle and the instantaneous total process occupancy rate of each target process on the central processing unit under multiple sampling periods based on the total detection duration, the sampling time interval, and the detection process parameters, the method further includes: generating a load line graph based on the instantaneous total system occupancy rate of the target system under multiple sampling periods and the instantaneous total process occupancy rate of at least some of the target processes, wherein the horizontal and vertical axes of the load line graph represent the sampling time and the instantaneous total occupancy rate on the central processing unit, respectively.

[0066] Specifically, a load line chart based on the instantaneous total system occupancy and the instantaneous total process occupancy of the target system under multiple sampling periods is generated. This technical solution generates line charts corresponding to the instantaneous total occupancy of the target system and target processes, and analyzes the instantaneous peak results to determine the resource consumption of different processes, thereby effectively improving the efficiency and accuracy of performance optimization for target processes.

[0067] In another embodiment, generating a load line chart based on the instantaneous total system occupancy of the target system and the instantaneous total process occupancy of at least some of the target processes under multiple sampling periods includes: determining the process to be displayed from multiple target processes based on the average total process occupancy of multiple target processes and the average total system occupancy of the target system; and generating a load line chart based on the instantaneous total system occupancy of the target system and the instantaneous total process occupancy corresponding to the process to be displayed under multiple sampling periods.

[0068] Among them, the process to be displayed refers to the relatively critical target thread selected from multiple target processes, or the target thread with a high average total utilization rate.

[0069] Specifically, based on the average total utilization of multiple target processes and the average total utilization of the target system, key target threads, or those with high average total utilization, are identified as processes to be displayed. A load line chart is generated based on the instantaneous total utilization of the target system and the instantaneous total utilization of the processes corresponding to the processes to be displayed over multiple sampling periods. This allows for the display of the instantaneous total utilization of the target system and the core target threads to be displayed, enabling timely optimization of processes with prominent or important data results to improve vehicle stability.

[0070] In one embodiment, after obtaining the instantaneous total system occupancy rate of the target system on the central processing unit of the vehicle and the instantaneous total process occupancy rate of each target process on the central processing unit under multiple sampling periods based on the total detection duration, the sampling time interval, and the detection process parameters, the method further includes: generating a second load detection report based on the instantaneous total system occupancy rate of the target system under multiple sampling periods and the instantaneous total process occupancy rate of at least some of the target processes.

[0071] The second load detection report refers to the instantaneous load detection result file of the target system and target process obtained based on the preset data organization format and preset file format.

[0072] Specifically, a second load detection report is generated based on the instantaneous total system occupancy of the target system and the instantaneous total process occupancy of at least some target processes across multiple sampling periods. This allows for the determination of the stable CPU occupancy of the core target system and target processes within the detection period, enabling better analysis and processing of the target system and target processes, and significantly improving the efficiency and accuracy of performance optimization for the target system and target processes.

[0073] The technical solution of this invention obtains the sampling time segments and total number of samples corresponding to multiple sampling periods, and generates a first load detection report by combining the sampling time segments, the total number of samples, the average total occupancy rate of the target system, and the average total occupancy rate of multiple target processes according to a preset data organization format and a preset file format. This allows users to analyze load data more comprehensively and accurately, enabling efficient and accurate performance optimization of the target system and target processes to ensure the operational stability and safety of the vehicle system.

[0074] Example 3

[0075] Embodiment 3 of the present invention provides a flowchart of a system load detection method. To better illustrate the technical solution provided by this embodiment, the following steps are used to illustrate the method. The flowchart of this embodiment is as follows: Figure 3A , Figure 3B and Figure 3C As shown, specific implementation methods can be found in the description of this embodiment. Technical features that are the same as or similar to those in the foregoing embodiments will not be repeated here.

[0076] Specifically, the overall implementation process is as follows: Figure 3A As shown.

[0077] Phase 1: Configuration and Initialization

[0078] Enter the following parameter list file

[0079] The system includes the total monitoring duration, sampling interval, and a list of target process names; it also configures the accumulator and sampling counter.

[0080] Phase Two: Data Collection

[0081] First, collect the total CPU utilization of the system. Read the target folder and obtain the cumulative CPU time values ​​(user, nice, system, idle, iowait, etc.) since system startup. Among them, user: user mode runtime; nice: low-priority user mode runtime; system: kernel mode runtime; idle: idle time; iowait: time waiting for I / O completion.

[0082] Calculate the system's instantaneous occupancy rate: Δtotal_time = (current_total_time (current total time - previous_total_time (previous total time))).

[0083] Δidle_time = (current_idle_time (current total idle time) - previous_idle_time (previous total idle time)).

[0084] Δtotal_time refers to the total CPU working time within one sampling period. Δidle_time refers to the CPU idle time within one sampling period.

[0085] The instantaneous system occupancy rate is calculated as 1 - Δidle_time / Δtotal_time.

[0086] Secondly, collect process-level CPU usage, read the target folder, and obtain the cumulative CPU time used by the process.

[0087] To calculate the instantaneous CPU usage of a process, current_process_time (the time of the current process) = current_utime (the cumulative CPU time spent by the current process in user mode) + current_stime (the cumulative CPU time spent by the current process in kernel mode).

[0088] Instantaneous process occupancy rate = (Δprocess_time / Δtotal_time) × 100%

[0089] Phase 3: Data Storage and Processing

[0090] Storage: The calculated values ​​of "system instantaneous CPU utilization" and "process instantaneous CPU utilization" are stored in a dedicated load data file.

[0091] Accumulation: The calculated "system instantaneous CPU utilization" value is accumulated into the "system total accumulator". Similarly, the instantaneous value of each process is accumulated into its respective "process accumulator".

[0092] Count: The sampling counter increments by 1.

[0093] Phase Four: Result Calculation and Output

[0094] Calculate the system's total average CPU utilization rate as: total system accumulator value / number of samples.

[0095] Average CPU utilization per process = process accumulator value / number of samples.

[0096] Generate reports: Format the results into tables and machine-readable structured data. Tables can be, for example... Figure 3B As shown, the core content of the report includes the monitoring period, number of samples, system average load, and a list of average loads for each process.

[0097] Furthermore, it can also generate CPU load line charts, such as... Figure 3C As shown.

[0098] Output file: Saves the chart as a PNG or SVG image file. It can be displayed on the screen in environments that support graphical interfaces.

[0099] By employing the above method, this technical solution can present the total average load of the system over a period of time, as well as the average load of each process corresponding to the core function, in the same view using the provided report. This clearly shows the contribution percentage of each core process to the total load. At the same time, it can also combine the instantaneous peak load of each system and process to more accurately and efficiently optimize the performance of the target system and target process, thereby ensuring the operational stability and safety of the vehicle system.

[0100] Example 4

[0101] Figure 4 This is a schematic diagram of a system load detection device provided in Embodiment 4 of the present invention. Figure 4 As shown, the device includes: a detection parameter acquisition module 401, an instantaneous total occupancy rate determination module 402, and a detection result data generation module 403.

[0102] The detection parameter acquisition module 401 is used to respond to a load detection request from a target system in the vehicle and acquire target detection parameters according to the load detection request. The target detection parameters include total detection duration, sampling time interval, and detection process parameters. The detection process parameters are used to indicate the target processes to be detected in the target system. The instantaneous total occupancy rate determination module 402 is used to acquire the instantaneous total occupancy rate of the target system on the vehicle's central processing unit and the instantaneous total occupancy rate of each target process on the central processing unit under multiple sampling periods, based on the total detection duration, the sampling time interval, and the detection process parameters. The detection result data generation module 403 is used to determine the system average total occupancy rate of the instantaneous total occupancy rate of the system under multiple sampling periods, determine the process average total occupancy rate of the instantaneous total occupancy rate of the processes under multiple sampling periods, and generate detection result data based on the system average total occupancy rate of the target system and the process average total occupancy rate of the multiple target processes.

[0103] The technical solution of this invention firstly involves the detection parameter acquisition module 401 responding to a load detection request from the target system in the vehicle and acquiring target detection parameters based on the load detection request. The target detection parameters include total detection time, sampling time interval, and detection process parameters. The detection process parameters are used to indicate the target process to be detected in the target system. Thus, the system and the running data of the processes corresponding to each test scenario can be directly obtained based on the sent request. This achieves automated processing of data from the advanced driver assistance system functional modules (each test scenario) in the vehicle, reduces the load of analysis types, and improves the efficiency of data analysis and processing. Secondly, the instantaneous total occupancy determination module 402 obtains the instantaneous total occupancy of the target system on the vehicle's central processing unit and the instantaneous total occupancy of each target process on the central processing unit under multiple sampling periods, based on the total detection duration, the sampling time interval, and the detection process parameters. This allows for real-time fault location and peak change analysis based on the load changes of each process over a period of time. Finally, the detection result data generation module 403 determines the average total occupancy of the system under multiple sampling periods and the average total occupancy of the processes under multiple sampling periods. Based on the average total occupancy of the target system and the average total occupancy of the processes of multiple target processes, detection result data is generated. This allows users to intuitively determine the resource occupancy of a process over a period of time based on the detection result data, thereby identifying the target processes that need optimization and significantly shortening the fault diagnosis and performance debugging cycle. Therefore, by obtaining the instantaneous total occupancy rate and average total occupancy rate of the system and each process over a period of time, and by analyzing the two together, a more comprehensive and accurate assessment of the processes related to the advanced driver assistance system (ADAS) functional modules in the vehicle can be made. This improves the optimization and adjustment of the processes related to the ADAS functional modules, enabling the vehicle to drive more safely, stably, and reliably.

[0104] Based on the above-mentioned optional technical solutions, the instantaneous total occupancy rate determination module 402 may optionally include: a first duration acquisition unit, a first instantaneous duration calculation unit, and a first instantaneous total occupancy rate determination unit. Specifically, the first duration acquisition unit is used to determine multiple sampling times based on the total detection duration and the sampling time interval, and at each sampling time, acquire the total idle time of the target system's unoccupied central processing unit and the total working time of the central processing unit's processor. The first instantaneous duration calculation unit is used to subtract the total idle time of the system from two adjacent sampling times to obtain the instantaneous total idle time of the system in the sampling period, and to subtract the total working time of the processor from two adjacent sampling times to obtain the instantaneous total working time of the processor in the sampling period. The first instantaneous total occupancy rate determination unit is used to determine the instantaneous total occupancy rate of the target system's central processing unit in the sampling period based on the instantaneous total idle time of the system and the instantaneous total working time of the processor in each sampling period.

[0105] Based on the above-mentioned optional technical solutions, optionally, the first instantaneous total occupancy rate determination unit may further include: a system instantaneous total occupancy rate calculation unit. The system instantaneous total occupancy rate calculation unit is used to determine, for each sampling period, the ratio of the system's instantaneous total idle time to the processor's instantaneous total working time in that sampling period, and to determine the difference between the value and the ratio as the target system's instantaneous total occupancy rate of the central processing unit in that sampling period.

[0106] Based on the above-mentioned optional technical solutions, the instantaneous total occupancy rate determination module 402 may optionally include: a second duration acquisition unit, a second instantaneous duration calculation unit, and a second instantaneous total occupancy rate determination unit. The second duration acquisition unit is used to determine multiple sampling times based on the total detection duration and the sampling time interval, and at each sampling time, acquire the total process occupancy time of each target process using the vehicle's central processing unit and the total processor working time of the central processing unit. The second instantaneous duration calculation unit is used to subtract the total process occupancy time of two adjacent sampling times to obtain the instantaneous total process occupancy time of the sampling period, and to subtract the total processor working time of two adjacent sampling times to obtain the instantaneous total processor working time of the sampling period. The second instantaneous total occupancy rate determination unit, for each target process in each sampling period, determines the instantaneous total process occupancy rate of the target process on the central processing unit in the sampling period based on the ratio of the instantaneous total process occupancy time of the target process to the instantaneous total processor working time of the processor in the sampling period.

[0107] Based on the above optional technical solutions, optionally, the total process time includes the total time occupied by the target process in user mode and the total time occupied by the target process in kernel mode.

[0108] Optionally, based on the above-mentioned optional technical solutions, the detection result data generation module 403 may further include: a first load detection report generation unit. The first load detection report generation unit is used to acquire the sampling time segments and total sampling counts corresponding to multiple sampling periods, and to generate a first load detection report by combining the sampling time segments, the total sampling counts, the average total occupancy rate of the target system, and the average total occupancy rate of multiple target processes according to a preset data organization format and a preset file format.

[0109] Based on the above-mentioned optional technical solutions, the system load detection device may optionally include: a load line graph generation module. The load line graph generation module is used to generate a load line graph based on the instantaneous total system occupancy of the target system and the instantaneous total process occupancy of at least some of the target processes under multiple sampling periods, wherein the horizontal and vertical axes of the load line graph represent the sampling time and the instantaneous total occupancy of the central processing unit, respectively.

[0110] Based on the above-mentioned optional technical solutions, the load line chart generation module may optionally include: a process to be displayed determination unit and a load line chart generation unit. The process to be displayed determination unit is used to determine the process to be displayed from the multiple target processes based on the average total utilization rate of the multiple target processes and the average total utilization rate of the target system; the load line chart generation unit is used to generate a load line chart based on the instantaneous total utilization rate of the target system under multiple sampling periods and the instantaneous total utilization rate of the process corresponding to the process to be displayed.

[0111] Based on the above-mentioned optional technical solutions, the system load detection device may optionally include: a second load detection report generation module. The second load detection report generation module is used to generate a second load detection report based on the instantaneous total system occupancy rate of the target system and the instantaneous total process occupancy rate of at least a portion of the target processes under multiple sampling periods.

[0112] The system load detection device provided in this embodiment of the invention can execute a system load detection method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects for executing a system load detection method. Technical details not described in detail in this embodiment can be found in any of the system load detection methods described in this embodiment of the invention.

[0113] Example 5

[0114] Figure 5 A schematic diagram of an electronic device 10, which can be used to implement embodiments of the present invention, is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.

[0115] like Figure 5 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 can also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0116] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0117] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as a system load detection method.

[0118] In some embodiments, a system load detection method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the system load detection method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform a system load detection method by any other suitable means (e.g., by means of firmware).

[0119] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0120] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0121] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0122] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0123] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or middleware components (e.g., application servers), or frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0124] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.

[0125] In particular, according to embodiments of the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present invention include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication unit 19, or installed from storage unit 18, or installed from ROM 12. When the computer program is executed by processor 11, it performs the functions defined in the methods of the embodiments of the present invention.

[0126] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.

[0127] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A system load detection method, characterized in that, include: In response to a load detection request from a target system in the vehicle, target detection parameters are obtained based on the load detection request. The target detection parameters include total detection duration, sampling time interval, and detection process parameters. The detection process parameters are used to indicate the target process to be detected in the target system. Based on the total detection duration, the sampling time interval, and the detection process parameters, the instantaneous total system occupancy rate of the target system on the vehicle's central processing unit and the instantaneous total process occupancy rate of each target process on the central processing unit are obtained under multiple sampling periods. The system average total occupancy rate of the instantaneous total occupancy rate of the system under multiple sampling periods is determined, and the process average total occupancy rate of the instantaneous total occupancy rate of the process under multiple sampling periods is determined. Detection result data is generated based on the system average total occupancy rate of the target system and the process average total occupancy rates of the multiple target processes.

2. The system load detection method according to claim 1, characterized in that, The step of obtaining the instantaneous total system occupancy rate of the target system on the vehicle's central processing unit under multiple sampling periods based on the total detection duration, the sampling time interval, and the detection process parameters includes: Multiple sampling times are determined based on the total detection time and the sampling time interval. At each sampling time, the total idle time of the target system without occupying the central processing unit of the vehicle and the total working time of the central processing unit are obtained. The total idle time of the system at two adjacent sampling times is subtracted to obtain the instantaneous total idle time of the system under the sampling period; and the total working time of the processor at two adjacent sampling times is subtracted to obtain the instantaneous total working time of the processor under the sampling period. The system instantaneous total occupancy rate of the target system on the central processing unit is determined based on the system instantaneous total idle time and the processor instantaneous total working time of the system in each sampling period.

3. The system load detection method according to claim 2, characterized in that, The step of determining the instantaneous total system occupancy rate of the target system to the central processing unit in each sampling period based on the instantaneous total idle time of the system and the instantaneous total working time of the processor in each sampling period includes: For each sampling period, the ratio of the instantaneous total idle time of the system to the instantaneous total working time of the processor is determined in the sampling period, and the difference between the value and the ratio is determined as the instantaneous total system occupancy rate of the target system on the central processing unit in the sampling period.

4. The system load detection method according to claim 1, characterized in that, The step of obtaining the instantaneous total process occupancy rate of each target process on the central processing unit under multiple sampling periods based on the total detection duration, the sampling time interval, and the detection process parameters includes: Multiple sampling times are determined based on the total detection time and the sampling time interval. At each sampling time, the total process time occupied by each target process using the vehicle's central processing unit and the total processor working time of the central processing unit are obtained. The total process occupancy time at two adjacent sampling times is subtracted to obtain the instantaneous total process occupancy time in the sampling period; and the total processor working time at two adjacent sampling times is subtracted to obtain the instantaneous total processor working time in the sampling period. For each target process in each sampling period, the instantaneous total occupancy rate of the target process on the central processing unit in the sampling period is determined based on the ratio of the instantaneous total occupancy time of the process to the instantaneous total working time of the processor in the sampling period.

5. The system load detection method according to claim 4, characterized in that, The total process execution time includes the total CPU time occupied by the target process in user mode and the total CPU time occupied by the target process in kernel mode.

6. The system load detection method according to claim 1, characterized in that, The step of generating detection result data based on the system average total occupancy of the target system and the process average total occupancy of multiple target processes includes: Obtain the sampling time segments and total number of samples corresponding to multiple sampling periods, and generate a first load detection report by combining the sampling time segments, the total number of samples, the average total occupancy rate of the target system, and the average total occupancy rate of multiple target processes according to a preset data organization format and a preset file format.

7. The system load detection method according to claim 1, characterized in that, After obtaining the instantaneous total system occupancy rate of the target system on the vehicle's central processing unit and the instantaneous total process occupancy rate of each target process on the central processing unit under multiple sampling periods based on the total detection duration, the sampling time interval, and the detection process parameters, the method further includes: A load line graph is generated based on the instantaneous total occupancy of the target system and the instantaneous total occupancy of at least some of the target processes under multiple sampling periods, wherein the horizontal and vertical axes of the load line graph represent the sampling time and the instantaneous total occupancy of the central processing unit, respectively.

8. The system load detection method according to claim 7, characterized in that, The step of generating a load line chart based on the instantaneous total system occupancy of the target system and the instantaneous total process occupancy of at least a portion of the target processes under multiple sampling periods includes: Based on the average total utilization of the multiple target processes and the average total utilization of the target system, the process to be displayed is determined from the multiple target processes; A load line chart is generated based on the instantaneous total occupancy of the target system under multiple sampling periods and the instantaneous total occupancy of the process corresponding to the process to be displayed.

9. The system load detection method according to claim 1, characterized in that, After obtaining the instantaneous total system occupancy rate of the target system on the vehicle's central processing unit and the instantaneous total process occupancy rate of each target process on the central processing unit under multiple sampling periods based on the total detection duration, the sampling time interval, and the detection process parameters, the method further includes: A second load detection report is generated based on the instantaneous total occupancy rate of the target system and the instantaneous total occupancy rate of at least some of the target processes under multiple sampling periods.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the system load detection method as described in any one of claims 1-9.