CN109446039A - A kind of method and system of detection device Caton - Google Patents
A kind of method and system of detection device Caton Download PDFInfo
- Publication number
- CN109446039A CN109446039A CN201811105541.5A CN201811105541A CN109446039A CN 109446039 A CN109446039 A CN 109446039A CN 201811105541 A CN201811105541 A CN 201811105541A CN 109446039 A CN109446039 A CN 109446039A
- Authority
- CN
- China
- Prior art keywords
- caton
- detection
- data
- detection device
- application layer
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3466—Performance evaluation by tracing or monitoring
- G06F11/3476—Data logging
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3055—Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3065—Monitoring arrangements determined by the means or processing involved in reporting the monitored data
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3089—Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
- G06F11/3093—Configuration details thereof, e.g. installation, enabling, spatial arrangement of the probes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/32—Monitoring with visual or acoustical indication of the functioning of the machine
- G06F11/324—Display of status information
- G06F11/327—Alarm or error message display
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Computer Hardware Design (AREA)
- Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)
Abstract
A kind of method of detection device Caton comprising steps of detection is arranged in application layer, and sends condition monitoring request to system layer;System layer executes condition monitoring according to request, acquires monitoring data;And it is analyzed according to acquisition data, and analysis result is sent to application layer.The present invention provides a kind of system of detection device Caton, and terminal user can be made to have better experience in game process, promotes the competitiveness of manufacturer terminal.
Description
Technical field
The present invention relates to Android(Androids) game mobile phone technical field, it is suitable for Android system more particularly to one kind
The method of the detection device Caton of system.
Background technique
Current phone game obtains the favor of more and more people, the big games opponent such as " seeking survival danger spot ", " king's honor "
Machine performance requirement is higher.When android system is in the process of running by CPU(Central Processing Unit;Center
Processor), memory, storage, the influence of the factors such as network, once performance occur insufficient or do not send out for some or Multiple factors
It shoots when should have performance, terminal user most directly is influenced to be exactly system Caton.
For terminal user, the rapid lifting means performance of certain measure can be taken after the reason of learning Caton;It is right
For manufacturer terminal, the root of Caton is learned because the management strategies such as the CPU to equipment, memory, storage, network can be optimized, from source
Head lifting means performance.
Therefore, to the promotion of performance, terminal user is made to have better experience in game process, promotes the competition of manufacturer terminal
It is meaningful for power.
Summary of the invention
In order to solve the shortcomings of the prior art, the purpose of the present invention is to provide a kind of methods of detection device Caton
And system being capable of rapid lifting means the reason of can be detected according to terminal requirements, and accurately determine Caton
Energy.
To achieve the above object, the method for detection device Caton provided by the invention, comprising the following steps:
Detection is arranged in application layer, and sends condition monitoring request to system layer;
System layer executes condition monitoring according to request, acquires monitoring data;And
The monitoring data of acquisition is analyzed, and analysis result is sent to application layer.
Further, the detection, comprising: processor condition monitoring, the detection of physical memory use state, physics
At least one of memory and the detection of virtual memory swap status, storage state detection and network signal quality state-detection.
Further, the step of system layer executes condition monitoring according to request, acquires monitoring data, further wraps
It includes:
System layer opens the service of memory-resident, receives the condition monitoring request of application layer;
Judge whether current screen is in the open state;
If screen is in close state, current service is fallen asleep state, and is waited and being waken up again, otherwise starts to execute
Monitoring.
Further, the system layer executes condition monitoring according to request, acquires monitoring data, further comprises: acquisition
In unit time using the number of processes of CPU, the remaining space size of physical memory in the unit time, in the unit time
The size of data for being transferred to virtual memory is deposited from physics and size of data, the unit time of physical memory are transferred to from virtual memory
The time and SIM card network signal quality and/or WIFI network signal matter in the unit time that interior CPU waits storage IO
At least one of amount data.
Further, the monitoring data of described pair of acquisition is analyzed, and the step of analysis result is sent to application layer,
Further comprise:
Collected data are compared with default comparison condition;
Judge whether Caton occur according to comparison result;
Analysis result and reason are sent to application layer.
Further, described to judge whether the step of Caton occur according to comparison result, including, if it is determined that being acquired
To the number of processes of CPU be greater than the collected physical memory remaining space size of 20, than the record number of CPU core number and remove
In the percentage of physical memory total size be greater than 10% and deposit less than 15%, from physics be transferred to virtual memory size of data or from
Virtual memory is transferred to the record strip number that the size of data of physical memory is 0 and waits the time of storage IO to be greater than 5 greater than 5, CPU
Record number remove in d percentage be greater than 20% and SIM card signal strength less than -105dBm record strip number or WIFI letter
The record strip number of number intensity less than -75dBm is greater than at least one in 25% divided by the percentage for acquiring total number in the unit time
Kind, then it is assumed that there is Caton.
Further, comprising: make the system layer suspend mode stipulated time.
Further, comprising: application layer is prompted based on the analysis results.
To achieve the above object, the system of detection device Caton provided by the invention, including application layer and system layer,
The application layer includes: detection switch unit, opens or closes detection as needed;With send receiving unit,
Its by condition monitoring request be transferred to the system layer, and receive the system layer analysis as a result,
The system layer includes: transmitting and receiving unit, receives the condition monitoring request of the application layer, and to the application
Layer sends the analysis result;Judging unit judges whether current phone screen is in the open state;If at mobile phone screen
In closed state, then current service is fallen asleep state, and is waited and being waken up again, otherwise starts to execute monitoring;Detection unit,
It is detected according to condition monitoring request;With data collection and analysis unit, acquisition testing data, and by it compared with default
Condition is compared, and whether Caton occurs according to comparison result analytical judgment.
Further, the application layer further comprises prompt unit, according to the analysis result remind user with
Analysis result is handled accordingly,
The system layer further comprises control unit, controls the system layer and carries out suspend mode.
The method and system of detection device Caton of the present invention, need to select detection according to user, and to its into
Row detection.The reason of user or manufacturer can detect according to terminal requirements, can accurately determine Caton as a result,.
The method and system of detection device Caton of the present invention, application layer is by providing the original for Caton occur to user or manufacturer
Cause and corresponding corresponding method.It, being capable of rapid lifting means thereby, it is possible to take the rapid lifting means performance of certain measure
Energy.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification
It obtains it is clear that understand through the implementation of the invention.
Detailed description of the invention
Attached drawing is used to provide further understanding of the present invention, and constitutes part of specification, and with it is of the invention
Embodiment together, is used to explain the present invention, and is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the method flow diagram of detection device Caton according to the present invention;
Fig. 2 is the system architecture diagram of detection device Caton according to the present invention.
Specific embodiment
Hereinafter, preferred embodiments of the present invention will be described with reference to the accompanying drawings, it should be understood that preferred reality described herein
Apply example only for the purpose of illustrating and explaining the present invention and is not intended to limit the present invention.
The method of detection device Caton
Embodiment one
Fig. 1 is that the method flow diagram of detection device Caton according to the present invention is suitable for of the invention below with reference to Fig. 1
The method of the detection device Caton of android system is described in detail.
In step 101, detection is arranged in application layer, and sends condition monitoring request to system layer.In a step 101, root
According to needing to open or close detection;Condition monitoring request is transferred to system layer.In the present embodiment, detection includes: place
Manage device condition monitoring, the detection of physical memory use state, physical memory and the detection of virtual memory swap status, storage IO
(Input/Output;Input/output) state-detection and network signal quality state-detection, but not limited to this.
In step 102, system layer executes condition monitoring according to request, acquires monitoring data.In a step 102, system layer
The service for opening memory-resident receives the condition monitoring request of application layer;Judge whether current phone screen is in the open state;
If mobile phone screen is in close state, current service is fallen asleep state, and is waited and being waken up again, otherwise starts to execute
Monitoring.In the present embodiment, when executing processor condition monitoring, the process number using CPU in unit time A is obtained
Mesh (ProcessNum), when executing the detection of physical memory use state, the residue for obtaining the physical memory in unit time B is empty
Between size (MemFreeSize), when executing physical memory and virtual memory swap status and detecting, in acquisition unit time C
The size of data (SwapOutput) for being transferred to virtual memory and the data that physical memory is transferred to from virtual memory are deposited from physics
Size (SwapInput), execute storage I/O state detection when, obtain unit time D in CPU wait storage IO time
(IOWait), when executing network signal quality state-detection, the SIM(Subscriber in unit time E is obtained
Identification Module) card network signal quality (SIM_dBm) and/or WIFI(Wireless Fidelity) network
Signal quality (WIFI_dBm);The data that will acquire are stored.In the present embodiment, unit time A, B, C, D, E can root
It needs to set according to user, can also be determined in advance, and these unit time can be identical, it can also be different.
It in step 103, is analyzed according to acquisition data, and analysis result is sent to application layer.In step 103,
Collected data are compared with default comparison condition;Judge whether Caton occur according to comparison result;Result will be analyzed
And reason is sent to application layer.In the present embodiment, the collected nearest a processor operation shape with current time of analysis institute
In state record, if the number of processes of CPU is greater than 20 (notes of ProcessNum-CPU nucleus number than the record number of CPU core number
Record number > 20), then it is assumed that because CPU leads to Caton;Analysis the collected b physical memory nearest with current time make
With in state recording, if physical memory remaining space size removes the percentage in physical memory total size and is greater than 10% and is less than
15%(10% < MemFreeSize/ physical memory total size < 15%), then it is assumed that because low memory leads to Caton;Analysis is collected
Nearest with current time c physical memory use state record in, if depositing the data for being transferred to virtual memory from physics
Size or from virtual memory be transferred to physical memory size of data be 0 record strip number be greater than 5 (SwapOutput or
Item number > 5 that SwapInput is 0), then it is assumed that because low memory leads to Caton;Analysis institute is collected nearest with current time
D item storage I/O state record in, if CPU waits record number of the time of storage IO greater than 5 except being greater than in the percentage of d
Number/d > 20% that 20%(IOWait is 5), then it is assumed that because storing, I/O task is busy to lead to Caton;Analysis institute it is collected with work as
The preceding time it is nearest e network signal quality record in, if SIM card signal strength less than -105dBm record strip number or
Record strip number of the WIFI signal intensity less than -75dBm is greater than the record that 25%(SIM_dBm is less than -105dBm except the percentage in e
Item number or WIFI_dBm are less than record strip number/e > 25% of -75dBm), then it is assumed that lead to Caton because network signal is bad.System layer
The Caton type monitored is reported into application layer, terminal user is notified by application layer or is managed by application layer.
In step 104, return step 101 is after making the system layer suspend mode stipulated time to recycle progress Caton detection.In this reality
Apply system layer suspend mode 1 second in example.
Embodiment two
The present embodiment further comprises step 105, and application layer is prompted based on the analysis results.In the present embodiment, if received
Lead to Caton to because of CPU, then the game for reminding user to open CPU accelerates mode;If received because low memory leads to Caton,
User is reminded to close certain applications;If received because I/O task is busy leads to Caton for storage, reminds user to close backstage and download
Using;If receiving leads to Caton because network signal quality is bad, user is reminded to detect network settings.
The system of detection device Caton
Fig. 2 is the block diagram of the system 200 of the detection device Caton according to the present invention suitable for android system, such as Fig. 2 institute
Show, the system 200 of detection device Caton of the invention includes application layer 201 and system layer 202, wherein application layer 201 includes:
Detection switch unit 203, opens or closes detection as needed;Receiving unit 204 is sent, condition monitoring is requested
It is transferred to system layer 202, and receives the analysis result of system layer 202;With prompt unit 205, reminds use based on the analysis results
Result is corresponding handles with analysis at family.System layer 202 includes: to transmit and receive unit 206, receives the state prison of application layer 201
Control request, and analysis result is sent to application layer 201;Judging unit 207, judges whether current phone screen is in opening state
State;If mobile phone screen is in close state, current service is fallen asleep state, and is waited and being waken up again, is otherwise started
Execute monitoring;Detection unit 208 is detected according to condition monitoring request;Data collection and analysis unit 209, acquisition inspection
Measured data, and it is compared with default comparison condition, and whether Caton is occurred according to comparison result analytical judgment;And control
Unit 210 processed, control system layer 202 carry out suspend mode, and each unit of control system layer 202.
In the present embodiment, detection unit 208 can be by multiple units specifically corresponding with detection.
According to the present invention, it needs to select detection according to user, and it is detected.User or factory as a result,
The reason of quotient can detect according to terminal requirements, can accurately determine Caton.
According to the present invention, there is the reason of Caton and corresponding corresponding method by providing to user or manufacturer in application layer.
It, being capable of rapid lifting means performance thereby, it is possible to take the rapid lifting means performance of certain measure.
Those of ordinary skill in the art will appreciate that: the foregoing is only a preferred embodiment of the present invention, and does not have to
In the limitation present invention, although the present invention is described in detail referring to the foregoing embodiments, for those skilled in the art
For, still can to foregoing embodiments record technical solution modify, or to part of technical characteristic into
Row equivalent replacement.All within the spirits and principles of the present invention, any modification, equivalent replacement, improvement and so on should all include
Within protection scope of the present invention.
Claims (10)
1. a kind of method of detection device Caton, which comprises the following steps:
Detection is arranged in application layer, and sends condition monitoring request to system layer;
System layer executes condition monitoring according to request, acquires monitoring data;And
The monitoring data of acquisition is analyzed, and analysis result is sent to application layer.
2. the method for detection device Caton according to claim 1, which is characterized in that the detection, comprising: processor
Condition monitoring, the detection of physical memory use state, physical memory and the detection of virtual memory swap status, storage state are examined
At least one of survey and network signal quality state-detection.
3. the method for detection device Caton according to claim 1, which is characterized in that the system layer is executed according to request
The step of condition monitoring, acquisition monitoring data, further comprise:
System layer opens the service of memory-resident, receives the condition monitoring request of application layer;
Judge whether current screen is in the open state;
If screen is in close state, current service is fallen asleep state, and is waited and being waken up again, otherwise starts to execute
Monitoring.
4. the method for detection device Caton according to claim 1, which is characterized in that the system layer is executed according to request
Condition monitoring, acquire monitoring data, further comprise: in the acquisition units time using the number of processes of CPU, in the unit time
The remaining space size of physical memory, the slave physics in the unit time deposit the size of data for being transferred to virtual memory and from virtual
Memory is transferred to the size of data of physical memory, the CPU in the unit time was waited in the time and unit time of storage IO
At least one of SIM card network signal quality and/or WIFI network signal quality data.
5. the method for detection device Caton according to claim 1, which is characterized in that described pair acquisition monitoring data into
Row analysis, and the step of analysis result is sent to application layer further comprise:
Collected data are compared with default comparison condition;
Judge whether Caton occur according to comparison result;
Analysis result and reason are sent to application layer.
6. the method for detection device Caton according to claim 5, which is characterized in that described to be according to comparison result judgement
No there is the step of Caton, including, if it is determined that collected CPU number of processes it is bigger than the record number of CPU core number
In the collected physical memory remaining space size of 20, except the percentage in physical memory total size is greater than 10% and is less than
15%, the size of data for being transferred to virtual memory is deposited from physics or is transferred to the size of data of physical memory from virtual memory as 0
Record strip number be greater than 5, CPU wait record number of the time greater than 5 of storage IO remove percentage in d greater than 20% and
The record strip number of record strip number of the SIM card signal strength less than -105dBm or WIFI signal intensity less than -75dBm is divided by unit
The percentage of acquisition total number is greater than at least one of 25% in time, then it is assumed that Caton occurs.
7. the method for detection device Caton according to claim 1, which is characterized in that further comprise: stopping system layer
It sleeps the stipulated time.
8. the method for detection device Caton according to claim 1, which is characterized in that further comprise: application layer according to
Analysis result is prompted.
9. a kind of system of detection device Caton, including application layer and system layer, which is characterized in that
The application layer includes: detection switch unit, opens or closes detection as needed;With send receiving unit,
Its by condition monitoring request be transferred to the system layer, and receive the system layer analysis as a result,
The system layer includes: transmitting and receiving unit, receives the condition monitoring request of the application layer, and to the application
Layer sends the analysis result;Judging unit judges whether current phone screen is in the open state;If at mobile phone screen
In closed state, then current service is fallen asleep state, and is waited and being waken up again, otherwise starts to execute monitoring;Detection unit,
It is detected according to condition monitoring request;With data collection and analysis unit, acquisition testing data, and by it compared with default
Condition is compared, and whether Caton occurs according to comparison result analytical judgment.
10. the system of detection device Caton according to claim 9, which is characterized in that
The application layer further comprises prompt unit, reminds user corresponding with analysis result according to the analysis result
Processing,
The system layer further comprises control unit, controls the system layer and carries out suspend mode.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811105541.5A CN109446039A (en) | 2018-09-21 | 2018-09-21 | A kind of method and system of detection device Caton |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811105541.5A CN109446039A (en) | 2018-09-21 | 2018-09-21 | A kind of method and system of detection device Caton |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109446039A true CN109446039A (en) | 2019-03-08 |
Family
ID=65530812
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811105541.5A Withdrawn CN109446039A (en) | 2018-09-21 | 2018-09-21 | A kind of method and system of detection device Caton |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109446039A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101533366A (en) * | 2009-03-09 | 2009-09-16 | 浪潮电子信息产业股份有限公司 | Method for acquiring and analyzing performance data of server |
CN105589783A (en) * | 2014-11-18 | 2016-05-18 | 广州市动景计算机科技有限公司 | Application program lag problem data obtaining method and device |
CN106681913A (en) * | 2016-12-08 | 2017-05-17 | 武汉斗鱼网络科技有限公司 | Application not responding positioning system and method |
CN107783835A (en) * | 2016-08-31 | 2018-03-09 | 中国电信股份有限公司 | System optimization method and device |
CN108345524A (en) * | 2017-01-22 | 2018-07-31 | 腾讯科技(深圳)有限公司 | Method for monitoring application program and Application Monitoring device |
-
2018
- 2018-09-21 CN CN201811105541.5A patent/CN109446039A/en not_active Withdrawn
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101533366A (en) * | 2009-03-09 | 2009-09-16 | 浪潮电子信息产业股份有限公司 | Method for acquiring and analyzing performance data of server |
CN105589783A (en) * | 2014-11-18 | 2016-05-18 | 广州市动景计算机科技有限公司 | Application program lag problem data obtaining method and device |
CN107783835A (en) * | 2016-08-31 | 2018-03-09 | 中国电信股份有限公司 | System optimization method and device |
CN106681913A (en) * | 2016-12-08 | 2017-05-17 | 武汉斗鱼网络科技有限公司 | Application not responding positioning system and method |
CN108345524A (en) * | 2017-01-22 | 2018-07-31 | 腾讯科技(深圳)有限公司 | Method for monitoring application program and Application Monitoring device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108268366B (en) | Test case execution method and device | |
JP2018525042A5 (en) | ||
CN107273263A (en) | A kind of analysis method of misoperation, application terminal and monitoring server | |
KR20160120714A (en) | Systems and methods for collecting, tracking, and storing system performance and event data for computing devices | |
CN107197473A (en) | A kind of terminal abnormal state determines method and apparatus | |
CN113254323B (en) | Online full link voltage measurement method and device and computer equipment | |
CN110795203A (en) | Resource scheduling method, device and system and computing equipment | |
EP3671441A1 (en) | Application management method and apparatus, storage medium, and electronic device | |
CN107703922A (en) | The full-automatic failure analysis methods of service robot and its device | |
CN105577879A (en) | Address book management method and mobile terminal | |
CN111625383A (en) | Process abnormal event processing method and device, electronic equipment and storage medium | |
CN103809955B (en) | The method and apparatus of end process | |
CN108667740A (en) | The method, apparatus and system of flow control | |
CN109388552A (en) | Start the determination method, apparatus and storage medium of the duration of application program | |
CN114785616A (en) | Data risk detection method and device, computer equipment and storage medium | |
CN104661181A (en) | Terminal device, scanning method and information processing system | |
CN109446039A (en) | A kind of method and system of detection device Caton | |
CN113961925A (en) | Container escape detection method and device | |
CN109582751A (en) | A kind of measure and server of retrieval effectiveness | |
WO2014165500A1 (en) | Remote onboard emission compliance technique | |
CN113806119B (en) | Memory card processing method, device, equipment and storage medium | |
CN108494087A (en) | A kind of reminding method and relevant device of unit check | |
CN107220748B (en) | Equipment acquisition scheduling method and system based on greedy algorithm | |
CN107357703A (en) | A kind of terminal applies power consumption detection method and server | |
CN106211124B (en) | A kind of method, apparatus and terminal of data management |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20190308 |