Power consumption determination method and apparatus, storage medium, and electronic device
By collecting the processor's voltage and temperature, relevant functions are obtained to determine the processor's current and power consumption, solving the problem of reduced battery life caused by increased processor power consumption, and achieving accurate power consumption determination and extended battery life.
Patent Information
- Application Number
- CN202211677200.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-26
- Publication Date
- 2026-03-03
- Estimated Expiration
- 2042-12-26
AI Technical Summary
As the performance of electronic device processors improves, their power consumption increases, leading to a reduction in battery life. Effective methods are needed to identify and reduce processor power consumption in order to increase battery life.
By collecting the processor's voltage and temperature, the first correlation function between voltage and current and the second correlation function between temperature and current are obtained. These functions are then used to determine the processor's current and calculate power consumption.
Accurately determining processor power consumption provides a basis for reducing power consumption to increase the battery life of electronic devices, with an estimation accuracy of approximately 90% and an error rate controlled within 10%.
Smart Images

Figure CN116009675B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of electronic technology, and in particular relates to a method, apparatus, computer-readable storage medium and electronic device for determining power consumption. Background Technology
[0002] With the rapid development of electronic devices such as smartphones and tablets, the performance of processors in these devices is getting better and better. Consequently, the power consumption of processors in these devices is also increasing, which in turn leads to a reduction in the battery life of these devices. Therefore, it is necessary to determine the power consumption of the processor in electronic devices so that when the power consumption is high, corresponding measures can be taken to reduce the processor's power consumption and increase the battery life of the electronic devices. Summary of the Invention
[0003] This application provides a power consumption determination method, apparatus, storage medium, and electronic device, which can determine the power consumption of the processor of the electronic device.
[0004] In a first aspect, embodiments of this application provide a power consumption determination method, including:
[0005] Collect the voltage and temperature of the processor;
[0006] Obtain a first correlation function between the voltage and current of the processor, and a second correlation function between the temperature and current of the processor;
[0007] The first current of the processor is determined based on the voltage and the first correlation function, and the second current of the processor is determined based on the temperature and the second correlation function.
[0008] The power consumption of the processor is determined based on the first current and the second current of the processor.
[0009] Secondly, embodiments of this application provide a power consumption determination device, comprising:
[0010] The data acquisition module is used to collect the processor's voltage and temperature.
[0011] The function acquisition module is used to acquire a first correlation function between the voltage and current of the processor, and a second correlation function between the temperature and current of the processor;
[0012] A data determination module is used to determine a first current of the processor based on the voltage and the first correlation function, and to determine a second current of the processor based on the temperature and the second correlation function;
[0013] A power consumption determination module is used to determine the power consumption of the processor based on a first current and a second current of the processor.
[0014] Thirdly, embodiments of this application provide a computer-readable storage medium storing a computer program thereon, which, when executed on a computer, causes the computer to perform the power consumption determination method provided in embodiments of this application.
[0015] Fourthly, embodiments of this application also provide an electronic device, including a memory and a processor, wherein the processor executes the power consumption determination method provided in embodiments of this application by calling a computer program stored in the memory.
[0016] In this embodiment, by collecting the processor's voltage and temperature; obtaining a first correlation function between the processor's voltage and current, and a second correlation function between the processor's temperature and current; determining a first current of the processor based on the voltage and the first correlation function, and determining a second current of the processor based on the temperature and the second correlation function; and determining the processor's power consumption based on the processor's first current and the processor's second current, the power consumption of the processor can be determined. This allows for the implementation of appropriate measures to reduce the processor's power consumption when it is high, thereby increasing the battery life of the electronic device. Attached Figure Description
[0017] The technical solution and its beneficial effects will become apparent from the following detailed description of specific embodiments of this application, in conjunction with the accompanying drawings.
[0018] Figure 1 This is a flowchart illustrating the power consumption determination method provided in the embodiments of this application.
[0019] Figure 2 This is a schematic diagram of the scatter plot corresponding to the processing unit C1 provided in the embodiments of this application.
[0020] Figure 3 This is a schematic diagram of the power consumption determination device provided in the embodiments of this application.
[0021] Figure 4 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Detailed Implementation
[0022] It should be noted that the terms "first," "second," and "third," etc., used in this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or modules is not limited to the listed steps or modules, but some embodiments also include steps or modules not listed, or some embodiments also include other steps or modules inherent to these processes, methods, products, or devices.
[0023] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0024] This application provides a power consumption determination method, a power consumption determination device, a storage medium, and an electronic device. The entity executing the power consumption determination method can be the power consumption determination device provided in this application, or an electronic device integrating the power consumption determination device, wherein the power consumption determination device can be implemented in hardware or software. The electronic device can be a smartphone, tablet computer, PDA, laptop computer, or other device equipped with a processor and possessing power consumption determination capabilities.
[0025] Please see Figure 1 , Figure 1 This is a schematic diagram of the first power consumption determination method provided in the embodiments of this application. The process may include:
[0026] In 101, the voltage and temperature of the processor are collected.
[0027] The processor can be a central processing unit (CPU), a graphics processing unit (GPU), or something similar. Taking a CPU as an example, it includes at least one processing unit, also known as a core or processing kernel.
[0028] When a processor includes a processing unit, the voltage and temperature of the processor collected by the electronic device are the voltage and temperature of that processing unit.
[0029] When a processor comprises multiple processing units, the voltage and temperature of the processor collected by the electronic device are the voltage and temperature of those multiple processing units.
[0030] In 102, the first correlation function between the processor's voltage and current, and the second correlation function between the processor's temperature and current are obtained.
[0031] In this embodiment, when the processor includes a processing unit, the first correlation function obtained is the first correlation function between the voltage and current corresponding to the processing unit, and the second correlation function obtained is the second correlation function between the temperature and current corresponding to the processing unit.
[0032] When the processor includes multiple processing units, the first correlation function obtained is the first correlation function of voltage and current for each processing unit, and the second correlation function obtained is the second correlation function of temperature and current for each processing unit.
[0033] In step 103, the first current of the processor is determined based on the voltage and the first correlation function, and the second current of the processor is determined based on the temperature and the second correlation function.
[0034] In this embodiment, when the processor includes a processing unit, the first current of the processing unit is determined according to the first correlation function between the voltage and current of the processing unit and the collected voltage of the processing unit, and the second current of the processing unit is determined according to the second correlation function between the temperature and current of the processing unit and the collected temperature of the processing unit, and the second current of the processing unit is determined according to the second correlation function between the temperature and current of the processing unit and the collected temperature of the processing unit.
[0035] When the processor includes multiple processing units, the first current of each processing unit is determined based on the first correlation function of voltage and current corresponding to each processing unit and the voltage of each processing unit collected. The second current of each processing unit is determined based on the second correlation function of temperature and current corresponding to each processing unit and the temperature of each processing unit collected.
[0036] In 104, the power consumption of the processor is determined based on the processor's first current and the processor's second current.
[0037] In this embodiment, when the processor includes a processing unit, the electronic device can use the sum of the first current and the second current of the processing unit as the current of the processor, and then determine the power consumption of the processor by the product of the current and the voltage of the processing unit.
[0038] When a processor comprises multiple processing units, an electronic device can use the sum of the product of the first current and the second current of each processing unit and the voltage of each processing unit as the processor's current.
[0039] For example, suppose the processor includes four processing units, namely processing units C1, C2, C3 and C4. The first current of processing unit C1 is I11, the second current of processing unit C1 is I12, and the voltage of processing unit C1 is V1. The first current of processing unit C2 is I21, the second current of processing unit C1 is I22, and the voltage of processing unit C2 is V2. The first current of processing unit C3 is I31, the second current of processing unit C3 is I32, and the voltage of processing unit C3 is V3. The first current of processing unit C4 is I41, the second current of processing unit C1 is I42, and the voltage of processing unit C4 is V4. Then the power consumption of the processor is: (I11+I12)×V1+(I21+I22)×V2+(I31+I32)×V4+(I41+I42)×V1.
[0040] In this embodiment, by collecting the processor's voltage and temperature; obtaining a first correlation function between the processor's voltage and current, and a second correlation function between the processor's temperature and current; determining the processor's first current based on the voltage and the first correlation function, and determining the processor's second current based on the temperature and the second correlation function; and determining the processor's power consumption based on the processor's first current and second current, it is possible to determine the processor's power consumption. This allows for the implementation of appropriate measures to reduce the processor's power consumption when it is high, thereby increasing the battery life of the electronic device.
[0041] In an optional embodiment, the processor includes multiple processing units that acquire the processor's voltage and temperature, including:
[0042] Collect the voltage and temperature of each processing unit;
[0043] Obtain the first correlation function between the processor's voltage and current, and the second correlation function between the processor's temperature and current, including:
[0044] Obtain the first correlation function of voltage and current for each processing unit, and the second correlation function of voltage and current for each processing unit;
[0045] Based on voltage and a first correlation function, the processor's first current is determined, and based on temperature and a second correlation function, the processor's second current is determined, including:
[0046] Based on the voltage of each processing unit and the first correlation function between the voltage and current of each processing unit, the first current of each processing unit is determined, and based on the voltage of each processing unit and the second correlation function between the temperature and current of each processing unit, the second current of each processing unit is determined.
[0047] The processor's power consumption is determined based on the processor's first current and second current, including:
[0048] The power consumption of the processor is determined based on the first current and the second current of each processing unit.
[0049] It is understandable that when a processor includes multiple processing units, the sum of the power consumption of the multiple processing units is the power consumption of the processor.
[0050] For example, suppose the processor includes four processing units, namely processing units C1, C2, C3 and C4. The first current of processing unit C1 is I11, the second current of processing unit C1 is I12, and the voltage of processing unit C1 is V1. The first current of processing unit C2 is I21, the second current of processing unit C1 is I22, and the voltage of processing unit C2 is V2. The first current of processing unit C3 is I31, the second current of processing unit C3 is I32, and the voltage of processing unit C3 is V3. The first current of processing unit C4 is I41, the second current of processing unit C1 is I42, and the voltage of processing unit C4 is V4. Then the power consumption of the processor is: (I11+I12)×V1+(I21+I22)×V2+(I31+I32)×V4+(I41+I42)×V1.
[0051] In an optional embodiment, before acquiring the voltage and temperature of each processing unit, the method further includes:
[0052] Collect sample voltage, sample temperature, sample frequency, and sample current for each processing unit;
[0053] The sample voltage of each processing unit is obtained at the same sample temperature and the same sample frequency. The target sample voltage of each processing unit is obtained, and the sample current corresponding to the target sample voltage is determined.
[0054] The minimum sample current is determined from the sample currents corresponding to the target sample voltage to obtain the first reference sample current;
[0055] Calculate the difference between the sample current corresponding to the target sample voltage and the first reference sample current to obtain the target sample current corresponding to the target sample voltage;
[0056] By fitting the target sample voltage and the target sample current corresponding to the target sample voltage of each processing unit, the first correlation function of voltage and current for each processing unit is obtained.
[0057] It should be noted that the power consumption of electronic devices can include static power consumption and dynamic power consumption. Static power consumption, also known as leakage power consumption, is the basic power consumption of the processor when it is not performing any tasks. The following will use the finally determined power consumption as leakage power consumption and take multiple processing units, including processing unit C1 and processing unit C2, as an example to illustrate how to determine the first correlation function of voltage and current for the corresponding processing unit.
[0058] (1) Data acquisition: First, shut down or stop all software and hardware tasks related to processing unit C1 and processing unit C2 that can be shut down or stopped. Place processing unit C1 and processing unit C2 in a temperature chamber to control the temperature of processing unit C1 and processing unit C2 to have different temperatures. Then, adjust the frequency of processing unit C1 and processing unit C2 to different levels so that processing unit C1 and processing unit C2 have different frequencies, different leakage currents and different voltages. Collect multiple sample data of the processing unit. Each sample data may include sample voltage, sample temperature, sample current, sample frequency, sample sampling time, temperature chamber temperature, etc.
[0059] (2) Data Processing: Based on the sample data collected in (1), independent data sample sets are constructed for processing unit C1 and processing unit C2 respectively, and the data in the sample data are verified and filtered for rationality. In the data sets of processing unit C1 and processing unit C2, each sample data can be a tuple <quarium temperature, temperature of processing unit C1 or C2, voltage of processing unit C1 or C2, frequency of processing unit C1 or C2, current of processing unit C1 or C2>. In this embodiment, the sample data may only include sample voltage, sample current, sample temperature and sample frequency.
[0060] (3) Data Separation: After the data processing in (2), the sample current, sample voltage, sample temperature, and sample frequency of processing unit C1 and processing unit C2 are plotted. For example, the scatter plot corresponding to processing unit C1 can be as follows: Figure 2 As shown.
[0061] Since it is necessary to obtain the first correlation function between the voltage and current corresponding to processing units C1 and C2, in order to avoid the influence of temperature and frequency, a method of filtering the current corresponding to the voltage is adopted by fixing the temperature and frequency, and separating the leakage current corresponding to the voltage. For example, the minimum sample temperature can be determined from the sample temperature of the obtained processing unit C1, the minimum sample frequency can be determined from the sample frequency of the obtained processing unit C1, and sample data of the existence of the minimum sample temperature and minimum sample frequency of processing unit C1 can be obtained. Based on the sample data, the target sample voltage of processing unit C1 and its corresponding sample current can be obtained, wherein the sample current corresponding to the target sample voltage of processing unit C1 can be as shown in equation (1).
[0062]
[0063] Where I(U,T,F) represents the set of sample currents corresponding to the target sample voltage of processing unit C1. This represents the sample current corresponding to different target sample voltages of the processing unit C1 at a fixed frequency and a fixed temperature, wherein the sample currents in this set of sample currents can be arranged in ascending order.
[0064] It is understandable that the target sample voltage and its corresponding sample current of the processing unit C2 can be obtained in the manner described above.
[0065] (4) Data modeling: Based on the sample current set of equation (1), the minimum sample current can be determined from it to obtain the first reference sample current. Then, the difference between the sample current corresponding to the target sample voltage and the first reference sample current is calculated to obtain the target sample current corresponding to the target sample voltage of the processing unit C1. The target sample current corresponding to the target sample voltage of the processing unit C1 can be as shown in equation (2).
[0066]
[0067] Where I(U,T,F) represents the set of target sample currents corresponding to the target sample voltage of processing unit C1. This represents the sample current and the first reference sample current corresponding to different target sample voltages in processing unit C1 at a fixed frequency and temperature. The difference.
[0068] It is understandable that the target sample voltage and its corresponding target sample current of the processing unit C2 can be obtained in the manner described above.
[0069] After obtaining the target sample voltage and its corresponding target sample current of the processing unit C1, the electronic device can obtain the first correlation function between the voltage and current of the processing unit C1 by polynomial fitting based on the target sample voltage and its corresponding target sample current of the processing unit C1.
[0070] After obtaining the target sample voltage and its corresponding target sample current of the processing unit C2, the electronic device can obtain the first correlation function between the voltage and current of the processing unit C2 by polynomial fitting based on the target sample voltage and its corresponding target sample current of the processing unit C2.
[0071] In an optional embodiment, after acquiring the sample voltage, sample temperature, sample frequency, and sample current of each processing unit, the method further includes:
[0072] Collect sample voltage, sample temperature, sample frequency, and sample current for each processing unit;
[0073] The sample temperature of each processing unit under the same sample voltage and the same sample frequency is obtained, the target sample temperature of each processing unit is obtained, and the sample current corresponding to the target sample temperature is determined.
[0074] The minimum sample current is determined from the sample currents corresponding to the target sample temperature to obtain the second reference sample current;
[0075] The difference between the sample current corresponding to the target sample temperature and the second reference sample current is calculated to obtain the target sample current corresponding to the target sample temperature.
[0076] By fitting the target sample temperature and the target sample current corresponding to the target sample temperature of each processing unit, a second correlation function between temperature and current for each processing unit is obtained.
[0077] It should be noted that the power consumption of electronic devices can include static power consumption and dynamic power consumption. Static power consumption, also known as leakage power consumption, is the basic power consumption of the processor when it is not performing any tasks. The following will use the finally determined power consumption as leakage power consumption and take multiple processing units, including processing unit C1 and processing unit C2, as an example to illustrate how to determine the first correlation function of voltage and current for the corresponding processing unit.
[0078] (1) Data acquisition: First, shut down or stop all software and hardware tasks related to processing unit C1 and processing unit C2 that can be shut down or stopped. Place processing unit C1 and processing unit C2 in a temperature chamber to control the temperature of processing unit C1 and processing unit C2 to have different temperatures. Then, adjust the frequency of processing unit C1 and processing unit C2 to different levels so that processing unit C1 and processing unit C2 have different frequencies, different leakage currents and different voltages. Collect multiple sample data of the processing unit. Each sample data may include sample voltage, sample temperature, sample current, sample frequency, sample sampling time, temperature chamber temperature, etc.
[0079] (2) Data Processing: Based on the sample data collected in (1), independent data sample sets are constructed for processing unit C1 and processing unit C2 respectively, and the data in the sample data are verified and filtered for rationality. In the data sets of processing unit C1 and processing unit C2, each sample data can be a tuple <quarium temperature, temperature of processing unit C1 or C2, voltage of processing unit C1 or C2, frequency of processing unit C1 or C2, current of processing unit C1 or C2>. In this embodiment, the sample data may only include sample voltage, sample current, sample temperature and sample frequency.
[0080] (3) Data Separation: After the data processing in (2), the sample current, sample voltage, sample temperature, and sample frequency of processing unit C1 and processing unit C2 are plotted. For example, the scatter plot corresponding to processing unit C1 can be as follows: Figure 2 As shown.
[0081] Since it is necessary to obtain the first correlation function between temperature and current corresponding to processing units C1 and C2, in order to avoid the influence of voltage and frequency, a method of filtering the current corresponding to temperature is adopted to separate the leakage current corresponding to temperature by fixing the voltage and frequency. For example, the minimum sample voltage can be determined from the sample voltage of the obtained processing unit C1, the minimum sample frequency can be determined from the sample frequency of the obtained processing unit C1, and the sample data of the existence of the minimum sample voltage and minimum sample frequency of processing unit C1 can be obtained. Based on the sample data, the target sample temperature of processing unit C1 and its corresponding sample current can be obtained, wherein the sample current corresponding to the target sample temperature of processing unit C1 can be as shown in equation (1).
[0082]
[0083] Where I(U,T,F) represents the set of sample currents corresponding to the target sample temperature of processing unit C1. This represents the sample current corresponding to different target sample temperatures under a fixed frequency and a fixed voltage for the processing unit C1. The sample currents in this set can be arranged in ascending order.
[0084] It is understandable that the target sample temperature and its corresponding sample current of the processing unit C2 can be obtained in the manner described above.
[0085] (4) Data modeling: Based on the sample current set of equation (1), the minimum sample current can be determined from it to obtain the second reference sample current. Then, the difference between the sample current corresponding to the target sample temperature and the second reference sample current is calculated to obtain the target sample current corresponding to the target sample temperature of the processing unit C1. The target sample current corresponding to the target sample temperature of the processing unit C1 can be as shown in equation (4).
[0086]
[0087] Where I(U,T,F) represents the set of target sample currents corresponding to the target sample temperature of processing unit C1. This represents the sample current and the first reference sample current corresponding to different target sample temperatures in processing unit C1 at a fixed frequency and voltage. The difference.
[0088] It is understandable that the target sample temperature and its corresponding target sample current of the processing unit C2 can be obtained in the manner described above.
[0089] After obtaining the target sample temperature and its corresponding target sample current of the processing unit C1, the electronic device can obtain the second correlation function between the temperature and current of the processing unit C1 by polynomial fitting based on the target sample temperature and its corresponding target sample current of the processing unit C1.
[0090] After obtaining the target sample temperature and its corresponding target sample current of the processing unit C2, the electronic device can obtain the second correlation function between the temperature and current of the processing unit C2 by polynomial fitting based on the target sample temperature and its corresponding target sample current of the processing unit C2.
[0091] It is understandable that the first correlation function between voltage and current, and the second correlation function between temperature and current, corresponding to the processing unit can be determined based on the same batch of sample data or on different batches of sample data; no specific restrictions are imposed here.
[0092] It is also understandable that, when it is necessary to determine the leakage current later, the voltage and temperature of each processing unit of the processor can be obtained when the electronic device is not performing any tasks. Based on the voltage and the first correlation function determined by the above process, the first leakage current of each processing unit can be obtained, and based on the temperature and the second correlation function determined by the above process, the second leakage current of each processing unit can be obtained. Based on the first and second leakage currents of each processing unit, the power consumption of the processor can be determined.
[0093] It is also understood that the third correlation function between frequency and current for each processing unit can be determined using the same process as that used to determine the first and second correlation functions. Subsequently, after acquiring the frequency of each processing unit of the processor, the third current of each processing unit can be determined based on the frequency and the third correlation function; and the dynamic current of the processor can be determined based on the third current.
[0094] In an optional embodiment, obtaining the sample voltage of each processing unit at the same sample temperature and the same sample frequency to obtain the target sample voltage of each processing unit includes:
[0095] Each processing unit is identified as a candidate processing unit, and the sample voltage of each candidate processing unit at the minimum sample temperature and minimum sample frequency is obtained to obtain the candidate sample voltage of each candidate processing unit.
[0096] Determine the number of candidate sample voltages for each candidate processing unit;
[0097] For processing units whose number is less than the preset number, they are identified as new candidate processing units, their sample voltages at the minimum sample temperature and minimum sample frequency are removed, and the process is repeated to obtain the sample voltages of each candidate processing unit at the minimum sample temperature and minimum sample frequency, until the number of candidate sample voltages of each candidate processing unit is greater than or equal to the preset number.
[0098] The target sample voltage of each candidate processing unit is determined by the number of candidate sample voltages that are greater than or equal to the preset number of candidate processing units.
[0099] Understandably, to make the fitting results more accurate, the number of sample data points used for fitting can be limited, such as by limiting the number of sample data points to be greater than or equal to a preset number. The preset number can be set according to the actual situation, and no specific limit is set here.
[0100] For example, taking processing unit C1 as an example, processing unit C1 can be identified as a candidate processing unit, and its sample voltage at the minimum sample temperature and minimum sample frequency can be obtained to obtain the candidate sample voltage of processing unit C1. The number of candidate sample voltages of processing unit C1 can be determined. If the number is greater than or equal to a preset number, the candidate sample voltage can be determined as the target sample voltage of processing unit C1. If the number is less than the preset number, the sample voltages at the minimum sample temperature and minimum sample frequency are removed, and for the remaining sample voltages, the sample voltages at the minimum sample temperature and minimum sample frequency are obtained again to obtain new candidate sample voltages of processing unit C1. The number of new candidate sample voltages of processing unit C1 is then determined. If the number is greater than or equal to a preset number, the new candidate sample voltage can be determined as the target sample voltage of processing unit C1. If the number is less than the preset number, the sample voltages at the minimum sample temperature and minimum sample frequency can be removed again, and the target sample voltage can be determined based on the remaining sample voltages in the same way as above, until the number of target sample voltages of processing unit C1 is greater than or equal to the preset number.
[0101] In other words, starting with the sample voltage at the minimum sample temperature and minimum sample frequency from the sample voltage of processing unit C1, the sample voltage at the next minimum sample temperature and next minimum sample frequency is passed through, until the sample voltage at the maximum sample temperature and maximum sample frequency is reached. The number of sample voltages at each sample temperature and each sample frequency is determined sequentially. When the number of sample voltages obtained is greater than or equal to the preset number, this sample voltage can be determined as the target sample voltage.
[0102] In an optional embodiment, for sample voltages greater than or equal to a preset number, it can be further determined whether the sample voltages are evenly distributed, i.e., the difference between sample voltages with the closest magnitudes is small. If not, the number of sample voltages greater than or equal to the preset number can be further determined until the sample voltages are evenly distributed. If so, the sample voltage can be determined as the target sample voltage.
[0103] It is understandable that the target sample temperature can also be determined in the same way as described above, which will not be repeated here.
[0104] In an optional embodiment, a first correlation function between voltage and current for each processing unit is obtained by fitting the target sample voltage and the target sample current corresponding to the target sample voltage, including:
[0105] Get preset values;
[0106] The first correlation function between voltage and current for each processing unit is obtained by fitting the target sample voltage, the target sample current corresponding to the target sample voltage, and the preset value for each processing unit.
[0107] In this embodiment, the first correlation function of voltage and current corresponding to each processing unit can be obtained by fitting the target sample voltage, the target sample current corresponding to the target sample voltage and the preset value of each processing unit. The first correlation function can be as shown in equation (5).
[0108]
[0109] Where I represents current, U represents voltage, a represents correlation coefficient, and k represents preset value. The value of k can be set by those skilled in the art according to the actual situation, and no specific restrictions are imposed here. For example, k can be 0, 1, or 2. The fitting process is the process of finding the value of a.
[0110] In an optional embodiment, a second correlation function between temperature and current for each processing unit can be obtained by fitting the target sample temperature, the target sample current corresponding to the target sample temperature, and a preset value. This second correlation function can be as shown in equation (6).
[0111]
[0112] Where I represents current, T represents temperature, b represents correlation coefficient, and k represents preset value. The value of k can be set by those skilled in the art according to the actual situation, and no specific restrictions are imposed here. For example, k can be 0, 1, or 2. The fitting process is the process of finding the value of a.
[0113] Assuming the processor comprises n processing units, the leakage current of the nth processing unit can be obtained using equation (7). The value of n can be determined by the specific number of processing units included in the processor.
[0114]
[0115] in, This represents the leakage current of the nth processing unit. This represents the k-th correlation coefficient in the first correlation function corresponding to the n-th processing unit. This represents the k-th power of the real-time voltage collected by the nth processing unit. This represents the k-th correlation coefficient in the second correlation function corresponding to the n-th processing unit. This represents the k-th power of the real-time temperature collected by the nth processing unit, where k represents a preset value. The value of k can be set by those skilled in the art according to actual conditions, and no specific restrictions are imposed here. The value of k can be different or the same for different processing units.
[0116] By combining the collected processor power consumption with the processor power consumption determined by the power consumption determination method provided in the embodiments of this application, we verified the algorithm through simulation. The power consumption estimation accuracy determined by the power consumption determination method provided in the embodiments of this application is about 90%, and the error rate is controlled within 10%, which is very good. In the estimation of about 1,000 samples, the error is almost mostly concentrated within 10%.
[0117] In an optional embodiment, the processor includes multiple processing units that acquire the processor's voltage and temperature, including:
[0118] Collect the voltage and temperature of each processing unit;
[0119] Before obtaining the first correlation function between the processor's voltage and current, and the second correlation function between the processor's temperature and current, the following steps are also included:
[0120] Determine the type of each processing unit;
[0121] Multiple processing units are divided into multiple types of processing units according to their type;
[0122] Obtain the first correlation function between the processor's voltage and current, and the second correlation function between the processor's temperature and current, including:
[0123] Obtain the first correlation function of voltage and current for each type of processing unit, and the second correlation function of voltage and current for each type of processing unit;
[0124] Based on voltage and a first correlation function, a first current is determined, and based on temperature and a second correlation function, a second current is determined, including:
[0125] Based on the voltage of each processing unit in each type of processing unit and the first correlation function between voltage and current corresponding to each type of processing unit, the first current of each processing unit in each type of processing unit is obtained, and based on the temperature of each processing unit in each type of processing unit and the second correlation function between temperature and current corresponding to each type of processing unit, the second current of each processing unit in each type of processing unit is obtained.
[0126] The processor's power consumption is determined based on the processor's first current and second current, including:
[0127] The power consumption of the processor is determined based on the first current of each processing unit in each type of processing unit and the second current of each processing unit in each type of processing unit.
[0128] It is understood that a processor may include processing units of different models, such as the so-called big cores and little cores. The power consumption difference between processing units of the same model is relatively small. Therefore, in this embodiment, the model of the processing unit can be used as the type of processing unit, and then the multiple processing units included in the processor can be divided into multiple categories based on the type of processing unit. Each category of processing units has the same model. Then, a first correlation function between voltage and current can be determined based on one processing unit in each category, and this first correlation function is used as the first correlation function between voltage and current for that category of processing units. A second correlation function between temperature and current can also be determined based on one processing unit in each category, and this second correlation function is used as the second correlation function between temperature and current for that category of processing units. The specific process for determining the first and second correlation functions can be found in the previous embodiments and will not be repeated here.
[0129] Once the first correlation function of voltage and current for each type of processing unit and the second correlation function of temperature and current for each type of processing unit are determined, the current of each type of processing unit can be determined based on the first and second correlation functions after the voltage and temperature of each type of processing unit of the processor are subsequently obtained. The power consumption of the processor can then be determined based on the current of each type of processing unit.
[0130] Please see Figure 3 , Figure 3 This is a schematic diagram of the power consumption determination device provided in an embodiment of this application. The power consumption determination device 200 includes: a data acquisition module 201, a function acquisition module 202, a data determination module 203, and a power consumption determination module 204.
[0131] Data acquisition module 201 is used to acquire the voltage and temperature of the processor;
[0132] The function acquisition module 202 is used to acquire a first correlation function between the voltage and current of the processor, and a second correlation function between the temperature and current of the processor;
[0133] The data determination module 203 is used to determine the first current of the processor based on the voltage and the first correlation function, and to determine the second current of the processor based on the temperature and the second correlation function;
[0134] The power consumption determination module 204 is used to determine the power consumption of the processor based on the first current and the second current of the processor.
[0135] In an optional embodiment, the processor includes multiple processing units, and the data acquisition module 201 can be used to: acquire the voltage and temperature of each processing unit;
[0136] The function acquisition module 202 can be used to: acquire a first correlation function of voltage and current corresponding to each processing unit, and a second correlation function of voltage and current corresponding to each processing unit;
[0137] The data determination module 203 can be used to: determine the first current of each processing unit based on the voltage of each processing unit and a first correlation function between the voltage and current of each processing unit, and determine the second current of each processing unit based on the voltage of each processing unit and a second correlation function between the temperature and current of each processing unit;
[0138] The power consumption determination module 204 can be used to determine the power consumption of the processor based on the first current of each processing unit and the second current of each processing unit.
[0139] In an optional embodiment, the power consumption determination device 200 may further include a function determination module, which may be used to: collect sample voltage, sample temperature, sample frequency, and sample current of each processing unit; obtain the sample voltage of each processing unit at the same sample temperature and the same sample frequency to obtain a target sample voltage for each processing unit, and determine the sample current corresponding to the target sample voltage; determine the minimum sample current from the sample currents corresponding to the target sample voltage to obtain a first reference sample current; calculate the difference between the sample current corresponding to the target sample voltage and the first reference sample current to obtain the target sample current corresponding to the target sample voltage; and fit the target sample voltage and the target sample current corresponding to the target sample voltage of each processing unit to obtain a first correlation function between voltage and current for each processing unit.
[0140] In an optional embodiment, the function determination module can be used to: collect sample voltage, sample temperature, sample frequency, and sample current of each processing unit; obtain the sample temperature of each processing unit under the same sample voltage and the same sample frequency to obtain the target sample temperature of each processing unit, and determine the sample current corresponding to the target sample temperature; determine the minimum sample current from the sample currents corresponding to the target sample temperature to obtain a second reference sample current; calculate the difference between the sample current corresponding to the target sample temperature and the second reference sample current to obtain the target sample current corresponding to the target sample temperature; and fit the target sample temperature and the target sample current corresponding to the target sample temperature of each processing unit to obtain a second correlation function between temperature and current for each processing unit.
[0141] In an optional embodiment, the function determination module may be used to: determine each of the processing units as a candidate processing unit, and obtain the sample voltage of each candidate processing unit at the minimum sample temperature and minimum sample frequency to obtain the candidate sample voltage of each candidate processing unit; determine the number of candidate sample voltages of each candidate processing unit; for processing units whose number is less than a preset number, determine them as new candidate processing units, remove their sample voltages at the minimum sample temperature and minimum sample frequency, and return to execute the step of obtaining the sample voltage of each candidate processing unit at the minimum sample temperature and minimum sample frequency to obtain the candidate sample voltage of each candidate processing unit, until the number of candidate sample voltages of each candidate processing unit is greater than or equal to the preset number;
[0142] The number of candidate sample voltages for each candidate processing unit is greater than or equal to a preset number, which is then determined as the target sample voltage for each candidate processing unit, thus obtaining the target sample voltage for each processing unit.
[0143] In an optional embodiment, the function determination module may be used to: obtain a preset value;
[0144] By fitting the target sample voltage of each processing unit, the target sample current corresponding to the target sample voltage, and the preset value, a first correlation function between voltage and current corresponding to each processing unit is obtained.
[0145] In an optional embodiment, the power consumption determination device 200 may further include a unit division module and a data acquisition module 201, which can be used to: acquire the voltage and temperature of each of the processing units;
[0146] The unit partitioning module can be used to: determine the type of each processing unit; and divide the multiple processing units into multiple types of processing units according to the type.
[0147] The function acquisition module can be used to: acquire the first correlation function of voltage and current corresponding to each type of processing unit, and the second correlation function of voltage and current corresponding to each type of processing unit;
[0148] The data determination module can be used to: obtain the first current of each processing unit in each type of processing unit based on the voltage of each processing unit in each type of processing unit and the first correlation function between the voltage and current of each type of processing unit; and obtain the second current of each processing unit in each type of processing unit based on the temperature of each processing unit in each type of processing unit and the second correlation function between the temperature and current of each type of processing unit.
[0149] The power consumption determination module can be used to determine the power consumption of the processor based on the first current of each processing unit in each type of processing unit and the second current of each processing unit in each type of processing unit.
[0150] This application provides a computer-readable storage medium storing a computer program thereon. When the computer program is executed on a computer, it causes the computer to perform the power consumption determination method provided in this embodiment.
[0151] This application also provides an electronic device, including a memory and a processor. The processor executes the power consumption determination method provided in this embodiment by calling a computer program stored in the memory.
[0152] For example, the aforementioned electronic device could be a mobile terminal such as a tablet or smartphone. See also... Figure 4 , Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.
[0153] The electronic device 300 may include components such as a processor 301 and a memory 302. Those skilled in the art will understand that... Figure 4 The electronic device structure shown does not constitute a limitation on the electronic device and may include more or fewer components than shown, or combine certain components, or have different component arrangements. For example, electronic device 300 may also include a screen.
[0154] The processor 301 is the control center of the electronic device. It connects various parts of the electronic device through various interfaces and lines. By running or executing the application program stored in the memory 302 and calling the data stored in the memory 302, it performs various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole.
[0155] Memory 302 can be used to store applications and data. The applications stored in memory 302 contain executable code. Applications can be composed of various functional modules. Processor 301 executes various functional applications and data processing by running the applications stored in memory 302.
[0156] In this embodiment, the processor 301 in the electronic device loads the executable code corresponding to the processes of one or more applications into the memory 302 according to the following instructions, and the processor 301 runs the applications stored in the memory 302, thereby achieving:
[0157] Collect the voltage and temperature of the processor;
[0158] Obtain a first correlation function between the voltage and current of the processor, and a second correlation function between the temperature and current of the processor;
[0159] The first current of the processor is determined based on the voltage and the first correlation function, and the second current of the processor is determined based on the temperature and the second correlation function.
[0160] The power consumption of the processor is determined based on the first current and the second current of the processor.
[0161] In an optional embodiment, the processor includes multiple processing units. When the processor 301 performs the step of collecting the voltage and temperature of the processor, it can perform the following: collecting the voltage and temperature of each processing unit; when the processor 301 performs the step of obtaining a first correlation function of the processor's voltage and current, and a second correlation function of the processor's temperature and current, it can perform the following: obtaining a first correlation function of the voltage and current corresponding to each processing unit, and a second correlation function of the voltage and current corresponding to each processing unit; when the processor 301 performs the step of determining a first current of the processor based on the voltage and the first correlation function, and determining a second current of the processor based on the temperature and the second correlation function, it can perform the following: determining a first current of each processing unit based on the voltage of each processing unit and the first correlation function of the voltage and current corresponding to each processing unit, and determining a second current of each processing unit based on the voltage of each processing unit and the second correlation function of the temperature and current corresponding to each processing unit; when the processor 301 performs the step of determining the power consumption of the processor based on the first current and the second current of the processor, it can perform the following: determining the power consumption of the processor based on the first current and the second current of each processing unit.
[0162] In an optional embodiment, before the processor 301 performs the acquisition of voltage and temperature of each processing unit, it may further perform the following: acquiring sample voltage, sample temperature, sample frequency, and sample current of each processing unit; obtaining the sample voltage of each processing unit at the same sample temperature and the same sample frequency to obtain a target sample voltage for each processing unit, and determining the sample current corresponding to the target sample voltage; determining the minimum sample current from the sample currents corresponding to the target sample voltage to obtain a first reference sample current; calculating the difference between the sample current corresponding to the target sample voltage and the first reference sample current to obtain the target sample current corresponding to the target sample voltage; and fitting the target sample voltage and the target sample current corresponding to the target sample voltage of each processing unit to obtain a first correlation function between voltage and current corresponding to each processing unit.
[0163] In an optional embodiment, after the processor 301 performs the acquisition of sample voltage, sample temperature, sample frequency, and sample current for each processing unit, it may further perform the following: acquire sample voltage, sample temperature, sample frequency, and sample current for each processing unit; obtain the sample temperature of each processing unit under the same sample voltage and the same sample frequency to obtain the target sample temperature for each processing unit, and determine the sample current corresponding to the target sample temperature; determine the minimum sample current from the sample currents corresponding to the target sample temperature to obtain a second reference sample current; calculate the difference between the sample current corresponding to the target sample temperature and the second reference sample current to obtain the target sample current corresponding to the target sample temperature; and fit the target sample temperature and the target sample current corresponding to the target sample temperature for each processing unit to obtain a second correlation function between temperature and current for each processing unit.
[0164] In an optional embodiment, when the processor 301 executes the step of acquiring the sample voltage of each processing unit at the same sample temperature and the same sample frequency to obtain the target sample voltage of each processing unit, it may perform the following steps: determining each processing unit as a candidate processing unit and acquiring the sample voltage of each candidate processing unit at the minimum sample temperature and minimum sample frequency to obtain the candidate sample voltage of each candidate processing unit; determining the number of candidate sample voltages for each candidate processing unit; for processing units whose number is less than a preset number, determining them as new candidate processing units, removing their sample voltages at the minimum sample temperature and minimum sample frequency, and returning to the step of acquiring the sample voltage of each candidate processing unit at the minimum sample temperature and minimum sample frequency to obtain the candidate sample voltage of each candidate processing unit, until the number of candidate sample voltages for each candidate processing unit is greater than or equal to the preset number; determining the candidate sample voltage of each candidate processing unit whose number is greater than or equal to the preset number as the target sample voltage of each candidate processing unit to obtain the target sample voltage of each processing unit.
[0165] In an optional embodiment, when the processor 301 executes the step of fitting the target sample voltage of each processing unit and the target sample current corresponding to the target sample voltage to obtain a first correlation function of voltage and current corresponding to each processing unit, it may perform the following: obtaining a preset value; fitting the target sample voltage of each processing unit, the target sample current corresponding to the target sample voltage, and the preset value to obtain a first correlation function of voltage and current corresponding to each processing unit.
[0166] In an optional embodiment, the processor includes multiple processing units. When the processor 301 executes the step of acquiring the voltage and temperature of the processor, it may perform the following: acquiring the voltage and temperature of each processing unit; before the processor 301 executes the step of acquiring the first correlation function of the processor's voltage and current, and the second correlation function of the processor's temperature and current, it may also perform the following: determining the type of each processing unit; classifying the multiple processing units into multiple types of processing units according to the type; when the processor 301 executes the step of acquiring the first correlation function of the processor's voltage and current, and the second correlation function of the processor's temperature and current, it may perform the following: acquiring the first correlation function of the voltage and current corresponding to each type of processing unit, and the second correlation function of the voltage and current corresponding to each type of processing unit; the processor 301 executes the step of acquiring the first ... When determining the first current based on the voltage and the first correlation function, and determining the second current based on the temperature and the second correlation function, the processor 301 can perform the following: obtaining the first current of each processing unit in each type of processing unit based on the voltage of each processing unit in each type of processing unit and the first correlation function between voltage and current corresponding to each type of processing unit; and obtaining the second current of each processing unit in each type of processing unit based on the temperature of each processing unit in each type of processing unit and the second correlation function between temperature and current corresponding to each type of processing unit. When the processor 301 performs the step of determining the power consumption of the processor based on the first current and the second current of the processor, the processor can perform the following: determining the power consumption of the processor based on the first current and the second current of each processing unit in each type of processing unit.
[0167] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the detailed description of the power consumption determination method above, which will not be repeated here.
[0168] The power consumption determination device provided in this application embodiment belongs to the same concept as the power consumption determination method in the above embodiment. Any of the methods provided in the power consumption determination method embodiment can be run on the power consumption determination device. For details of its implementation process, please refer to the power consumption determination method embodiment, which will not be repeated here.
[0169] It should be noted that, for the power consumption determination method of the embodiments of this application, those skilled in the art will understand that all or part of the process of implementing the power consumption determination method of the embodiments of this application can be accomplished by a computer program controlling related hardware. The computer program can be stored in a computer-readable storage medium, such as a memory, and executed by at least one processor. During execution, it can include the process of the embodiments of the power consumption determination method. The computer-readable storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), etc.
[0170] It is understood that in the specific implementation of this application, user information, such as application usage behavior data, logs and other related data, is involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0171] For the power consumption determination device of this application embodiment, its functional modules can be integrated into a processing chip, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.
[0172] The above provides a detailed description of a power consumption determination method, apparatus, storage medium, and electronic device provided in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A power consumption determination method, characterized by, The method comprises the following steps: collecting the voltage and temperature of each processing unit in the processor; obtaining a first correlation function of voltage and current corresponding to each processing unit in the processor, comprising: collecting sample voltage, sample temperature, sample frequency and sample current of each processing unit; obtaining sample voltage of each processing unit under the same sample temperature and the same sample frequency, obtaining target sample voltage of each processing unit, and determining the sample current corresponding to the target sample voltage; determining the minimum sample current from the sample current corresponding to the target sample voltage to obtain the first reference sample current; calculating the difference between the sample current corresponding to the target sample voltage and the first reference sample current to obtain the target sample current corresponding to the target sample voltage; fitting the target sample voltage of each processing unit and the target sample current corresponding to the target sample voltage to obtain the first correlation function of voltage and current corresponding to each processing unit, and obtaining a second correlation function of temperature and current corresponding to each processing unit in the processor; determining the first current of each processing unit according to the voltage of each processing unit and the first correlation function of voltage and current corresponding to each processing unit, and determining the second current of each processing unit according to the voltage of each processing unit and the second correlation function of temperature and current corresponding to each processing unit; determining the power consumption of the processor according to the first current of each processing unit and the second current of each processing unit.
2. The power consumption determination method of claim 1, wherein, After collecting the sample voltage, sample temperature, sample frequency and sample current of each processing unit, the method further comprises the following steps: collecting the sample voltage, sample temperature, sample frequency and sample current of each processing unit; obtaining sample temperature of each processing unit under the same sample voltage and the same sample frequency, obtaining target sample temperature of each processing unit, and determining the sample current corresponding to the target sample temperature; determining the minimum sample current from the sample current corresponding to the target sample temperature to obtain the second reference sample current; calculating the difference between the sample current corresponding to the target sample temperature and the second reference sample current to obtain the target sample current corresponding to the target sample temperature; fitting the target sample temperature of each processing unit and the target sample current corresponding to the target sample temperature to obtain the second correlation function of temperature and current corresponding to each processing unit.
3. The power consumption determination method of claim 1, wherein, The method for obtaining the sample voltage of each processing unit under the same sample temperature and the same sample frequency to obtain the target sample voltage of each processing unit comprises the following steps: determining each processing unit as a candidate processing unit, and obtaining sample voltage of each candidate processing unit under the minimum sample temperature and the minimum sample frequency to obtain candidate sample voltage of each candidate processing unit; determining the number of candidate sample voltages of each candidate processing unit; For the number of candidate processing units less than the preset number, the candidate processing units are determined as new candidate processing units, the sample voltage of the candidate processing units at the minimum sample temperature and the minimum sample frequency is removed, and the step of obtaining the sample voltage of each candidate processing unit at the minimum sample temperature and the minimum sample frequency is returned to be executed until the number of candidate sample voltages of each candidate processing unit is greater than or equal to the preset number; The candidate sample voltage of each candidate processing unit whose number is greater than or equal to the preset number is determined as the target sample voltage of each candidate processing unit, and the target sample voltage of each processing unit is obtained.
4. The power consumption determination method of claim 1, wherein, The target sample voltage of each processing unit and the target sample current corresponding to the target sample voltage are fitted to obtain the first correlation function of voltage and current corresponding to each processing unit, including: A preset value is obtained; The target sample voltage of each processing unit, the target sample current corresponding to the target sample voltage, and the preset value are fitted to obtain the first correlation function of voltage and current corresponding to each processing unit.
5. The power consumption determination method of claim 1, wherein, The processor includes a plurality of processing units, and the voltage and temperature of the processor are collected, including: The voltage and temperature of each processing unit are collected; Before the first correlation function of voltage and current of the processor and the second correlation function of temperature and current of the processor are obtained, further including: The type of each processing unit is determined; According to the type, the plurality of processing units are divided into multiple types of processing units; The first correlation function of voltage and current corresponding to each type of processing unit and the second correlation function of voltage and current corresponding to each type of processing unit are obtained; The first correlation function of voltage and current corresponding to each type of processing unit and the second correlation function of voltage and current corresponding to each type of processing unit are obtained; According to the voltage and the first correlation function, the first current is determined, and according to the temperature and the second correlation function, the second current is determined, including: According to the voltage of each processing unit in each type of processing unit and the first correlation function of voltage and current corresponding to each type of processing unit, the first current of each processing unit in each type of processing unit is obtained, and according to the temperature of each processing unit in each type of processing unit and the second correlation function of temperature and current corresponding to each type of processing unit, the second current of each processing unit in each type of processing unit is obtained; According to the first current of each processing unit in each type of processing unit and the second current of each processing unit in each type of processing unit, the power consumption of the processor is determined. Including:
6. A power consumption determination apparatus characterized by comprising: A data collection module is configured to collect the voltage and temperature of each processing unit in the processor; The function acquisition module is configured to acquire a first correlation function of voltage and current corresponding to each processing unit in the processor, including: collecting sample voltage, sample temperature, sample frequency and sample current of each processing unit; acquiring sample voltage of each processing unit under the same sample temperature and the same sample frequency, obtaining target sample voltage of each processing unit, and determining sample current corresponding to the target sample voltage; determining the minimum sample current from the sample current corresponding to the target sample voltage, obtaining a first reference sample current; calculating a difference between the sample current corresponding to the target sample voltage and the first reference sample current, obtaining a target sample current corresponding to the target sample voltage; fitting the target sample voltage of each processing unit and the target sample current corresponding to the target sample voltage to obtain the first correlation function of voltage and current corresponding to each processing unit, and acquiring a second correlation function of temperature and current corresponding to each processing unit in the processor; The data determination module is configured to determine a first current of each processing unit according to the voltage of each processing unit and the first correlation function of voltage and current corresponding to each processing unit, and determine a second current of each processing unit according to the voltage of each processing unit and the second correlation function of temperature and current corresponding to each processing unit. The power consumption determination module is configured to determine the power consumption of the processor according to the first current of each processing unit and the second current of each processing unit.
7. A computer-readable storage medium, characterized in that, The storage medium has a computer program stored therein, and when the computer program runs on a computer, the computer is caused to execute the power consumption determination method of any one of claims 1 to 5.
8. An electronic device, comprising: The electronic device includes a processor and a memory, and the memory has a computer program stored therein. The processor is configured to execute the power consumption determination method of any one of claims 1 to 5 by calling the computer program stored in the memory.
Citation Information
Patent Citations
Chip circuit power consumption measuring circuit and method and chip
CN110907807A