Process false-kill rate determination method, device, intelligent device and medium

By calculating the application's cold start and hot start time, number and attenuation parameters, combined with the preset attenuation cycle, the process kill rate is accurately determined, which solves the problem of difficult to judge the process kill rate in smart devices and improves the accuracy of system resource recycling Sex and user experience.

CN113778816BInactive Publication Date: 2024-11-05BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010436357.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-05-21
Publication Date
2024-11-05
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

When smart devices recycle memory resources, it is difficult to accurately judge and avoid process accidental killing, resulting in poor user experience, insufficient existing statistical methods, and excessive cases of accidental killing cold starts.

Method used

By obtaining the application's cold start and hot start time, cold start times and attenuation parameters, combining the preset attenuation period and attenuation amount, the process manslaughter rate is calculated, and a weighted average method is used to determine the process manslaughter rate to improve accuracy.

Benefits of technology

The indicators of manslaughter cold start are accurately quantified, the algorithms of the intelligent device system are optimized, the user experience is improved, and the situation of process manslaughter is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113778816B_ABST
    Figure CN113778816B_ABST
Patent Text Reader

Abstract

The present disclosure is about a method, apparatus, smart device and medium for determining a process false positive rate, which is applied to a smart device running an application, and the method includes: when the application is cold started, obtaining the first duration t between the current startup time of the startup application and the shutdown time when the application was last switched to background operation; determining the attenuation parameter y of the application during the cold start process according to the preset attenuation period T, the attenuation amount m of the preset attenuation period and the first duration t; obtaining the number of cold starts k1 and the number of hot starts k2 of the application within the preset duration; determining the process false positive rate w of the application according to the number of cold starts k1, the number of hot starts k2 and the attenuation parameter y corresponding to each cold start of the application. The method in the present disclosure is used to determine the process false positive rate, accurately quantify the indicator of false positive cold start, and the result is more precise, so as to further optimize the algorithm of the system of the smart device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of intelligent devices, and in particular to a method, device, intelligent device and medium for determining a process false positive rate. Background Art

[0002] Smart devices such as mobile phones have limited memory resources. When each application on a smart device is started, one or more processes are allocated in the background, which occupy memory and other resources. When designing the system of a smart device, it is hoped that the application process can be kept running in the background for as long as possible when not in use, so as to facilitate the user's next use and improve the user experience.

[0003] However, in order to create a new process or run a more important process, it is necessary to clear the processes that are not being used temporarily and are running in the background, so as to reclaim resources such as memory for use by the new process or the more important process. Summary of the invention

[0004] In order to overcome the problems existing in the related art, the present disclosure provides a method, apparatus, intelligent device and medium for determining a process false positive rate.

[0005] According to a first aspect of an embodiment of the present disclosure, a method for determining a process false positive rate is provided, which is applied to a smart device running an application program, and the method includes:

[0006] When the application is cold started, the first duration t between the current startup time of the startup application and the last shutdown time when the application was switched to background operation is obtained;

[0007] Determine, according to a preset decay period T, an decay amount m of the preset decay period and the first duration t, a decay parameter y of the application during the cold start process;

[0008] Get the number of cold starts k1 and the number of hot starts k2 of the application within a preset time period;

[0009] The process false-kill rate w of the application is determined according to the number of cold starts k1, the number of hot starts k2 of the application, and the attenuation parameter y corresponding to each cold start.

[0010] Optionally, determining the attenuation parameter y of the application program in the cold start process according to the preset attenuation period T, the attenuation amount m of the preset attenuation period, and the first duration t includes:

[0011] Determining a power parameter n according to the preset attenuation period T and the first duration t;

[0012] The attenuation parameter y is determined according to the power parameter n and the attenuation amount m of a preset attenuation period.

[0013] Optionally, determining the power parameter n according to the preset attenuation period T and the first duration t includes:

[0014] The ratio of the first time length t to the preset attenuation period T is the power parameter n.

[0015] Optionally, determining the attenuation parameter y according to the power parameter n and the attenuation amount m of a preset attenuation period includes:

[0016] The attenuation parameter y is the nth power of the difference between 1 and the attenuation amount m of the preset attenuation period.

[0017] Optionally, determining the process false positive rate w of the application according to the number of cold starts k1, the number of hot starts k2 and the attenuation parameter y corresponding to each cold start of the application includes:

[0018] Determine a weighted cold start parameter Z according to the number of cold starts k1 and the attenuation parameter y corresponding to each cold start;

[0019] Determine the total number of starts K based on the number of cold starts k1 and the number of hot starts k2;

[0020] The process false-kill rate w of the application is determined according to the weighted cold-start parameter Z and the total number of starts K.

[0021] Optionally, determining a weighted cold start parameter Z according to the number of cold starts k1 and a decay parameter y corresponding to each cold start includes:

[0022] The attenuation parameters y corresponding to each cold start are summed up as the weighted cold start parameter Z.

[0023] Optionally, determining the total startup number K according to the cold startup number k1 and the hot startup number k2 includes:

[0024] The sum of the cold start number k1 and the hot start number k2 is taken as the total start number K.

[0025] Optionally, determining the process false-kill rate w of the application program according to the weighted cold-start parameter Z and the total number of startups K includes:

[0026] The ratio of the weighted cold start parameter Z to the total number of startup times K is used as the process false kill rate w of the application.

[0027] According to a second aspect of an embodiment of the present disclosure, a device for determining a process false positive rate is provided, which is applied to a smart device running an application program, and the device includes:

[0028] An acquisition module, used for acquiring, when an application is cold started, the first time duration t between the current startup time of the application and the last shutdown time when the application was switched to background operation;

[0029] A determination module, configured to determine an attenuation parameter y of the application during the cold start process according to a preset attenuation period T, an attenuation amount m of the preset attenuation period and the first duration t;

[0030] The acquisition module is further used to acquire the number of cold starts k1 and the number of hot starts k2 of the application within a preset time period;

[0031] The determination module is further used to determine the process false-kill rate w of the application program according to the number of cold starts k1, the number of hot starts k2 and the attenuation parameters corresponding to each cold start of the application program.

[0032] Preferably, the determining module is specifically used for:

[0033] Determining a power parameter n according to the preset attenuation period T and the first duration t;

[0034] The attenuation parameter y is determined according to the power parameter n and the attenuation amount m of a preset attenuation period.

[0035] Optionally, the determining module is specifically used to:

[0036] The determining the power parameter n according to the preset attenuation period T and the first duration t includes:

[0037] The ratio of the first time length t to the preset attenuation period T is the power parameter n.

[0038] Optionally, the determining module is specifically used to:

[0039] The attenuation parameter y is the nth power of the difference between 1 and the attenuation amount m of the preset attenuation period.

[0040] Optionally, the determining module is further used for:

[0041] Determine a weighted cold start parameter Z according to the number of cold starts k1 and the attenuation parameter y corresponding to each cold start;

[0042] Determine the total number of starts K based on the number of cold starts k1 and the number of hot starts k2;

[0043] The process false-kill rate w of the application is determined according to the weighted cold-start parameter Z and the total number of starts K.

[0044] Optionally, the determining module is specifically used to:

[0045] The attenuation parameters y corresponding to each cold start are summed up as the weighted cold start parameter Z.

[0046] Optionally, the determining module is specifically used to:

[0047] The sum of the cold start number k1 and the hot start number k2 is taken as the total start number K.

[0048] Optionally, the determining module is specifically used to:

[0049] The ratio of the weighted cold start parameter Z to the total number of startup times K is used as the process false kill rate w of the application.

[0050] According to a third aspect of an embodiment of the present disclosure, there is provided a smart device, including:

[0051] processor;

[0052] a memory for storing executable instructions for the processor;

[0053] Wherein, the processor is configured to execute the process false killing rate determination method as described above.

[0054] According to a fourth aspect of an embodiment of the present disclosure, a non-temporary computer-readable storage medium is provided. When instructions in the storage medium are executed by a processor of an intelligent device, the intelligent device is enabled to execute the process false-killing rate determination method as described above.

[0055] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: using the method in the present disclosure to determine the process false positive rate, accurately quantifying the indicators of false positive cold start, and the results are more precise to further optimize the algorithm of the system of the smart device.

[0056] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0058] Figure 1 The figure is a flowchart of a method for determining a process false positive rate according to an exemplary embodiment.

[0059] Figure 2 The figure is a flowchart of a method for determining a process miskilling rate according to another exemplary embodiment.

[0060] Figure 3 The figure is a flowchart of a method for determining a process miskilling rate according to another exemplary embodiment.

[0061] Figure 4 The figure is a block diagram of a device for determining a process false positive rate according to an exemplary embodiment.

[0062] Figure 5 is a block diagram of a smart device according to an exemplary embodiment. DETAILED DESCRIPTION

[0063] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.

[0064] The memory resources of smart devices such as mobile phones are limited. When each application of a smart device is started, one or more processes will be allocated in the background, and these processes occupy memory and other resources. When designing the system of smart devices, it is hoped that the application process will be kept running in the background for as long as possible when not in use, so as to facilitate the user's next use and improve the user experience. However, in order to create a new process or run a more important process, it is necessary to clear the processes that are not currently running in the background to reclaim memory for the use of the new process or the more important process.

[0065] In order to determine which application processes to keep or terminate, the smart device system will judge the importance of each process currently running and running in the background based on the components running in the process and the status of these components. When a new process or a more important process requires more memory space, the system will first close the least important process to free up some memory. When more memory space is needed, the system will further close processes with a slightly lower level of importance, and so on, to achieve system resource recovery.

[0066] When the system executes the above-mentioned system resource recycling process, it is inevitable that the system will accidentally kill a process when closing a process of a slightly lower level of importance. The negative experience brought to users by accidentally killing a process is mainly the cold start of the application, that is, there is no process of the application in the background. At this time, the system will reassign a process to the application. This startup method is called a cold start.

[0067] In one example, a user starts Application A for the first time and stops using Application A after using it for 1 minute. At this time, Application A is transferred to the background. During the background operation, Application A is forcibly closed by the system. When the user starts Application A again 2 minutes later, the system needs to reallocate the process to Application A. The user feels that when starting Application A, it still needs to be reloaded and wait for a while before Application A can be started. When the user starts Application A for the second time, the startup process of Application A is a cold start. The user starts Application A for the second time in a short time and thinks that Application A can be started quickly. However, because the system forcibly closes Application A, the user needs to wait for a while before starting Application A again, and the user experience is poor.

[0068] Therefore, in order to avoid the above situation, we must first accurately determine the process false positive rate of application A, and then optimize the system according to the process false positive rate of application A to avoid the situation where the process of application A is falsely killed.

[0069] In related technologies, the method for determining the process false-kill rate is mainly to count the number of cold starts. For example, if the application is not opened for the first time, when the user clicks on the application again, the process of the application does not exist and the system needs to reallocate the process. In this case, the last time is considered to be a false-kill and recorded as a cold start. This statistical method is not accurate enough. Using the above statistical method, some process starts that the user is unaware of or expects will also be counted as false-kill cold starts.

[0070] The present disclosure provides a method for determining a process false-kill rate, which is applied to a smart device running an application. The method comprehensively determines the process false-kill rate of the application based on a preset decay period, an decay amount of the preset decay period, and a first duration between the current startup moment of the application and the last shutdown moment of the application switching to background operation. The result is more accurate, so as to further optimize the algorithm of the system of the smart device.

[0071] In an exemplary embodiment, Figure 1 As shown, a method for determining the process false positive rate is disclosed, which is applied to a smart device running an application. The smart device in this embodiment can be a terminal device such as a mobile phone, a tablet computer, a personal computer, etc. that can run an application, and the application is an APP. The method for determining the process false positive rate in this embodiment includes:

[0072] S110: When the application is cold started, a first duration t between the current startup time of the startup application and the last shutdown time when the application was switched to background operation is obtained.

[0073] In this step, the cold start process of the application refers to the process in which the user opens application A for the first time and then temporarily stops using application A, and application A runs in the background. When application A is running in the background, the process of application A is forcibly closed by the system, resulting in the system needing to allocate a process to application A again when the user opens application A for the second time.

[0074] Among them, the first duration t refers to the duration between the current startup time of application A and the last shutdown time when application A switched to background operation. In one example, the user starts application A for the first time at 8:00:00 (i.e. 8 o'clock), and at 8:05:00 (i.e. 8:05), the user stops using application A and starts application B. At this time, application A switches to background operation and application B runs in the foreground. At 8:15:00 (i.e. 8:15), the user clicks on the icon of application A again and stops using application B. At this time, because the system of the smart device mistakenly kills the process of application A, application A is not started until 8:15:05 (i.e. 8:15:05). In this process, the first duration t is equal to 8:15:00 minus 8:05:00, that is, the first duration t is equal to 10 minutes.

[0075] In this step, the duration between the two startup moments of application A is taken into consideration, so that the time can be quantified as a reference indicator in subsequent method steps, so as to accurately determine from various situations where the process is closed due to mistaken killing, thereby improving the accuracy of the method for determining the process mistaken killing rate in this embodiment.

[0076] S120. Determine an attenuation parameter y of the application during the cold start process according to a preset attenuation period T, an attenuation amount m of the preset attenuation period, and a first duration t.

[0077] In this step, the preset decay period T and the decay amount m of the preset decay period are stored in the smart device, and when it is necessary to determine the process false positive rate of the application program, they can be called from the storage unit of the smart device. In the implementation process, the preset decay period T and the decay amount m of the preset decay period can be related to a variety of situations.

[0078] In one example, the preset attenuation period T and the attenuation amount m of the preset attenuation period are usually related to the version of the system used by the smart device. For example, the system of the smart device is the Android system. When the version of the Android system is different, the values ​​of the preset attenuation period T and the attenuation amount m of the preset attenuation period may be different.

[0079] In another example, the preset attenuation period T and the attenuation amount m of the preset attenuation period may also be related to the system used by the smart device. For example, when the system of the smart device is an AA system or a BB system, when the systems are different, the preset attenuation period T and the attenuation amount m of the preset attenuation period have different values ​​under different systems.

[0080] In another example, the preset attenuation period T and the attenuation amount m of the preset attenuation period may also be related to the applications installed on the smart device. For example, the preset attenuation period T and the attenuation amount m of the preset attenuation period of application A may have different values ​​from the preset attenuation period T and the attenuation amount m of the preset attenuation period of application B.

[0081] The preset decay period T refers to the time length of a decay process, and the decay amount m of the preset decay period refers to the decay amount m of the process of application A after each preset decay period T. It should be noted that, in the actual implementation process, the energy value of each application when it is switched to the background can be preset to 1. Then, as the application A runs in the background for a longer time, the energy decay times of application A increase, the remaining energy value decreases, and the application A is more likely to be killed by mistake.

[0082] S130, obtaining the number of cold starts k1 and the number of hot starts k2 of the application within a preset time period.

[0083] In this step, the preset duration may be related to the system used by the smart device, or may be related to the version of the system used by the smart device. The preset duration may be, for example, one day or one month, and may be determined according to actual conditions during implementation, and is not specifically limited here.

[0084] The definition of cold start in this step has been explained above and will not be repeated here. The hot start in this step means that when the user starts application A, there is already a process of application A in the background (for example, through the exit operation, or the home button operation to make application A move from the foreground to the background to continue running). When the user clicks on application A again, the user does not need to wait, and application A immediately returns to the state used last time, and there is no need to return to the homepage of the smart device to open the application. This startup process is called hot start.

[0085] S140 , determining the process false-kill rate w of the application according to the number of cold starts k1 , the number of hot starts k2 and the attenuation parameter y corresponding to each cold start of the application.

[0086] In this step, the attenuation parameter y corresponding to each cold start process of application A, as well as the number of cold starts k1 and the number of hot starts k2 within the preset time are comprehensively considered as parameter indicators for evaluating the process false-kill rate. That is, the time that application A runs in the background and the proportion of different startup methods in the total number of times the user uses application A within the preset time are comprehensively considered to affect the process false-kill rate, so as to obtain a more accurate process false-kill rate w for application A.

[0087] In another exemplary embodiment, Figure 2 As shown, the method in this embodiment is a further limitation of step S120 in the above embodiment. The method in this embodiment includes:

[0088] S210: Determine a power parameter n according to a preset attenuation period T and a first duration t.

[0089] In actual implementation, the method for determining the power parameter in this step may be to use the ratio of the first duration t to the preset decay period T as the power parameter n. That is, n=first duration / preset decay period=t / T.

[0090] S220 , determining an attenuation parameter y according to the power parameter n and an attenuation amount m of a preset attenuation period.

[0091] In this step, the method for determining the attenuation parameter y may be to use the nth power of the difference between 1 and the attenuation amount m of the preset attenuation cycle as the attenuation parameter y. That is, y = (1-m) n .

[0092] Here, it should be noted that, as described in the previous embodiment, in the actual implementation process, the energy value of each application at the time of switching to background operation can be preset to 1. Then, as the application A runs in the background for a longer time, the more times the energy of application A decays, the less its remaining energy value, and the more likely application A is to be mistakenly killed. Therefore, when calculating the energy decay parameter y of application A, 1 is used as the standard for calculation. Of course, it can be understood that on the basis of maintaining the logic of the process mistaken killing rate determination method in this embodiment, other parameters besides 1 can also be used as the standard for calculation.

[0093] In another exemplary embodiment, Figure 3 As shown, the method in this embodiment is a further limitation of step S140 in the above embodiment. The method in this embodiment includes:

[0094] S310 , determining a weighted cold start parameter Z according to the number of cold starts k1 and the attenuation parameter y corresponding to each cold start.

[0095] In this step, the attenuation parameter y corresponding to each cold start is summed up as the weighted cold start parameter Z.

[0096] In an example, a user starts application A 10 times in one day, including 7 hot starts and 3 cold starts, which are k11, k12 and k13 respectively. The decay parameters y corresponding to the three cold starts are y11, y12 and y13 respectively. The weighted cold start parameter Z = y11+y12+y13.

[0097] S320 , determining a total startup number K according to the cold startup number k1 and the hot startup number k2 .

[0098] In this step, the sum of the cold start times k1 and the hot start times k2 is taken as the total start times K. That is, K=k1+k2.

[0099] S330: Determine the process kill error rate w of the application program according to the weighted cold start parameter Z and the total number of starts K.

[0100] In this step, the ratio of the weighted cold start parameter Z to the total number of startups K is the process kill rate w of the application. That is, w = Z / K = y11+y12+y13 / k1+k2, so the process kill rate can be understood as the proportion of the weighted cold start times in the total number of startups of application A.

[0101] When the value of the process false-kill rate w is larger, it means that the proportion of cold starts of application A in a short period of time is larger, indicating that the strategy of the smart device system for forcibly closing the process of application A is more unreasonable, and it needs to be adjusted in time to avoid a bad user experience.

[0102] In another exemplary embodiment, in order to facilitate understanding and further clarify the implementation process of the process error killing rate determination method in the present disclosure, the method in the present disclosure is described in detail with a specific implementation process. Before describing the method in this embodiment, the parameters involved in this embodiment are first defined.

[0103] In this embodiment, the preset duration is one day, that is, the number of cold starts k1 and the number of hot starts k2 of application A in one day are counted; the preset decay period T and the decay amount m of the preset decay period are preset. Assuming the number of cold starts k1 = 3, they are k11, k12 and k13 respectively; the number of hot starts k2 = 7, then the total number of starts K = 10. The first durations t of the three cold starts are t11, t12 and t13 respectively.

[0104] First cold start k11:

[0105] Power parameter n11 = t11 / T, attenuation parameter y11 = (1-m) n11.

[0106] Second cold start k12:

[0107] Power parameter n12 = t12 / T, attenuation parameter y12 = (1-m) n12 .

[0108] The third cold start k13:

[0109] Power parameter n13 = t13 / T, attenuation parameter y13 = (1-m) n13 .

[0110] The weighted cold start parameter Z of application A during the day = y11 + y12 + y13;

[0111] The process error rate of application A in one day is w=Z / K=(y11+y12+y13) / 10.

[0112] In this embodiment, full consideration is given to the running time of the application in the background and the number of hot starts and cold starts of the application A within the preset time, so as to accurately determine the process killing rate of the application A when the process is mistakenly killed when the application A is started multiple times, so as to further optimize the system algorithm and enhance the user experience.

[0113] The present disclosure also provides a process error killing rate determination device, which is applied to a smart device running an application program, such as Figure 4 As shown, the device includes an acquisition module 410 and a determination module 420 electrically connected to the acquisition module 410. The device in this embodiment implements the following during operation: Figure 1 The method for determining the process false killing rate is shown in . In the process of using the device in this embodiment to implement the method for determining the process false killing rate, the acquisition module 410 is used to obtain the first time duration t between the current startup time of the application and the last shutdown time of the application to the background when the application is cold started; on the other hand, the acquisition module 410 is also used to obtain the number of cold starts k1 and the number of hot starts k2 of the application within the preset time duration.

[0114] On the one hand, the determination module 420 is used to determine the attenuation parameter y of the application during the cold start process based on the preset attenuation period T, the attenuation amount m of the preset attenuation period and the first duration t; on the other hand, the determination module 420 is also used to determine the process false positive rate w of the application based on the number of cold starts k1, the number of hot starts k2 and the attenuation parameters corresponding to each cold start of the application.

[0115] In another exemplary embodiment, still referring to Figure 4The device in this embodiment includes an acquisition module 410 and a determination module 420 electrically connected to the acquisition module 410. The device in this embodiment is used to implement the following Figure 2 The process manslaughter rate determination method shown.

[0116] In the implementation process, the function of the acquisition module 410 in this embodiment is the same as that in the above embodiment, and will not be repeated here. The determination module 420 in this embodiment is specifically used to determine the power parameter n according to the preset attenuation period T and the first time length t; and to determine the attenuation parameter y according to the power parameter n and the attenuation amount m of the preset attenuation period.

[0117] In another exemplary embodiment, still referring to Figure 4 The device in this embodiment includes an acquisition module 410 and a determination module 420 electrically connected to the acquisition module 410. The device in this embodiment is used to implement the following Figure 3 The process manslaughter rate determination method shown.

[0118] During implementation, the function of the acquisition module 410 in this embodiment is the same as that in the above embodiment, and will not be described in detail here. The determination module 420 in this embodiment is specifically used to determine the weighted cold start parameter Z according to the number of cold starts k1 and the attenuation parameter y corresponding to each cold start; and to determine the total number of starts K according to the number of cold starts k1 and the number of hot starts k2; at the same time, it is also used to determine the process miskilling rate w of the application according to the weighted cold start parameter Z and the total number of starts K.

[0119] like Figure 5 The present disclosure also provides a smart device, for example, the device 500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0120] Device 500 may include one or more of the following components: a processing component 502 , a memory 504 , a power component 506 , a multimedia component 508 , an audio component 510 , an input / output (I / O) interface 512 , a sensor component 514 , and a communication component 516 .

[0121] The processing component 502 generally controls the overall operation of the device 500, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 502 may include one or more processors 520 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 502 may include one or more modules to facilitate the interaction between the processing component 502 and other components. For example, the processing component 502 may include a multimedia module to facilitate the interaction between the multimedia component 508 and the processing component 502.

[0122] The memory 504 is configured to store various types of data to support operations on the device 500. Examples of such data include instructions for any application or method operating on the device 500, contact data, phone book data, messages, pictures, videos, etc. The memory 504 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0123] Power component 506 provides power to various components of device 500. Power component 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 500.

[0124] The multimedia component 508 includes a screen that provides an output interface between the device 500 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front camera and / or a rear camera. When the device 500 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0125] The audio component 510 is configured to output and / or input audio signals. For example, the audio component 510 includes a microphone (MIC), and when the device 500 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 504 or sent via the communication component 516. In some embodiments, the audio component 510 also includes a speaker for outputting audio signals.

[0126] I / O interface 512 provides an interface between processing component 502 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0127] The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the device 500. For example, the sensor assembly 514 can detect the open / closed state of the device 500, the relative positioning of components, such as the display and keypad of the device 500, and the sensor assembly 514 can also detect the position change of the device 500 or a component of the device 500, the presence or absence of user contact with the device 500, the orientation or acceleration / deceleration of the device 500, and the temperature change of the device 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 514 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0128] The communication component 516 is configured to facilitate wired or wireless communication between the device 500 and other devices. The device 500 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0129] In an exemplary embodiment, the device 500 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.

[0130] In another exemplary embodiment of the present disclosure, a non-transitory computer-readable storage medium is provided, such as a memory 504 including instructions, which can be executed by a processor 520 of a device 500 to perform the above method. For example, the computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc. When the instructions in the storage medium are executed by a processor of an intelligent device, the intelligent device is enabled to perform the above method.

[0131] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.

[0132] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A method for determining a process false positive rate, applied to a smart device running an application, characterized in that: The method comprises: When the application is cold started, the first duration t between the current startup time of the startup application and the last shutdown time when the application was switched to background operation is obtained; Determine, according to a preset decay period T, an decay amount m of the preset decay period and the first duration t, a decay parameter y of the application during the cold start process; Get the number of cold starts k1 and the number of hot starts k2 of the application within a preset time period; Determine the process false positive rate w of the application according to the number of cold starts k1, the number of hot starts k2 and the decay parameter y corresponding to each cold start, wherein the process false positive rate w is positively correlated with the decay parameter corresponding to the number of cold starts k1; The step of determining the attenuation parameter y of the application program during the cold start process according to the preset attenuation period T, the attenuation amount m of the preset attenuation period, and the first duration t includes: The ratio of the first time duration t to the preset attenuation period T is used as the power parameter n; The attenuation parameter y is determined according to the power parameter n and the attenuation amount m of the preset attenuation period.

2. The method for determining the process false positive rate according to claim 1, characterized in that: The step of determining the attenuation parameter y according to the power parameter n and the attenuation amount m of the preset attenuation period includes: The attenuation parameter y is the nth power of the difference between 1 and the attenuation amount m of the preset attenuation period.

3. The method for determining the process miskilling rate according to claim 1, characterized in that: The method of determining the process false-kill rate w of the application according to the number of cold starts k1, the number of hot starts k2 and the attenuation parameter y corresponding to each cold start of the application comprises: Determine a weighted cold start parameter Z according to the number of cold starts k1 and the attenuation parameter y corresponding to each cold start; Determine the total number of starts K based on the number of cold starts k1 and the number of hot starts k2; The process false-kill rate w of the application is determined according to the weighted cold-start parameter Z and the total number of starts K.

4. The method for determining the process manslaughter rate according to claim 3, characterized in that: The determining of the weighted cold start parameter Z according to the number of cold starts k1 and the attenuation parameter y corresponding to each cold start includes: The attenuation parameters y corresponding to each cold start are summed up as the weighted cold start parameter Z.

5. The method for determining the process miskilling rate according to claim 3, characterized in that: Determining the total number of starts K according to the number of cold starts k1 and the number of hot starts k2 includes: The sum of the cold start number k1 and the hot start number k2 is taken as the total start number K.

6. The method for determining the process miskilling rate according to claim 3, characterized in that: Determining the process false-kill rate w of the application program according to the weighted cold-start parameter Z and the total number of startup times K includes: The ratio of the weighted cold start parameter Z to the total number of startup times K is used as the process false kill rate w of the application.

7. A device for determining a process false positive rate, applied to a smart device running an application, characterized in that: The device comprises: An acquisition module, used for acquiring, when an application is cold started, the first time duration t between the current startup time of the application and the last shutdown time when the application was switched to background operation; A determination module, configured to determine an attenuation parameter y of the application during the cold start process according to a preset attenuation period T, an attenuation amount m of the preset attenuation period and the first duration t; The acquisition module is further used to acquire the number of cold starts k1 and the number of hot starts k2 of the application within a preset time period; The determination module is further used to determine the process false positive rate w of the application according to the number of cold starts k1, the number of hot starts k2 and the attenuation parameter corresponding to each cold start of the application, wherein the process false positive rate w is positively correlated with the attenuation parameter corresponding to the number of cold starts k1; Wherein, the determination module is specifically used for: The ratio of the first time duration t to the preset attenuation period T is used as the power parameter n; The attenuation parameter y is determined according to the power parameter n and the attenuation amount m of the preset attenuation period.

8. The process error killing rate determination device according to claim 7, characterized in that: The determination module is specifically used for: The attenuation parameter y is the nth power of the difference between 1 and the attenuation amount m of the preset attenuation period.

9. The process error killing rate determination device according to claim 7, characterized in that: The determining module is also used for: Determine a weighted cold start parameter Z according to the number of cold starts k1 and the attenuation parameter y corresponding to each cold start; Determine the total number of starts K based on the number of cold starts k1 and the number of hot starts k2; The process false-kill rate w of the application is determined according to the weighted cold-start parameter Z and the total number of starts K.

10. The process error killing rate determination device according to claim 9, characterized in that: The determination module is specifically used for: The attenuation parameters y corresponding to each cold start are summed up as the weighted cold start parameter Z.

11. The process error killing rate determination device according to claim 9, characterized in that: The determination module is specifically used for: The sum of the cold start number k1 and the hot start number k2 is taken as the total start number K.

12. The process error killing rate determination device according to claim 9, characterized in that: The determination module is specifically used for: The ratio of the weighted cold start parameter Z to the total number of startup times is used as the process false kill rate w of the application.

13. A smart device, characterized in that: include: processor; a memory for storing executable instructions for the processor; The processor is configured to execute the process false positive rate determination method as described in any one of claims 1 to 6.

14. A non-transitory computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of an intelligent device, the intelligent device is enabled to execute the process false-killing rate determination method as described in any one of claims 1 to 6.