CN104426945B - A kind of method, apparatus and system obtaining application performance data - Google Patents
A kind of method, apparatus and system obtaining application performance data Download PDFInfo
- Publication number
- CN104426945B CN104426945B CN201310378979.1A CN201310378979A CN104426945B CN 104426945 B CN104426945 B CN 104426945B CN 201310378979 A CN201310378979 A CN 201310378979A CN 104426945 B CN104426945 B CN 104426945B
- Authority
- CN
- China
- Prior art keywords
- performance data
- application
- user terminal
- detected
- service
- 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.)
- Active
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a kind of method, apparatus and system for obtaining application performance data, the described method includes: indicating user terminal is based on preset service (Service) and the operation library (Runtime) execution performance data acquisition application, the corresponding performance data of application to be detected is filtered out from the performance data of performed application output, and the performance data filtered out is exported to corresponding log;The performance data that the log updates is obtained in a manner of monitoring, by the specified file of the performance data write-in of the acquisition.By means of the invention it is possible to obtain the performance data of application performance data and user's real-time operation for granularity, safe and simple with application, and performance data analysis conveniently is carried out in server side.
Description
Technical field
The present invention relates to the acquiring technology of the application performance data of user terminal more particularly to a kind of acquisition application performance numbers
According to method, apparatus and system.
Background technique
User terminal user is frequently necessary to understand the performance data of user terminal.
Default shell (Shell) script is sent according to user terminal, Shell script is executed by user terminal, to call
Related tool periodically acquires the scheme of the performance data of user terminal itself, and due to the limitation of related tool, the program is only
The performance data that user terminal entirety can be obtained, i.e., the central processing unit all applied (CPU, Central Processing
Unit) the flow of occupancy, memory service condition and consumption.
According to the PC side (PC, Personal Computer) give user terminal send Shell script, by with
Family terminal execution performance data acquisition application obtains the schemes of application performance data, has the following problems:
1) it needs to establish socket (Socket) communication connection in the program between PC and user terminal, and uses correspondence
The tools such as the debugging tool of different platform such as Android debugging (ADB, Android DeBug) send Shell foot to user terminal
This, due to not supporting prolonged Socket to communicate to connect under debud mode, it is therefore desirable to obtain user terminal performance number
According to when continually Socket opened, read and write and shutoff operation, be easy to cause Socket abnormal, obtain application terminating
When performance data, need to carry out end operation using compulsory out code such as adb-kill, security risk is also higher;
2) application performance data are obtained by way of executing Shell script, it usually needs in ADB mode by with
The combination that family terminal sends multiple Shell instructions could complete the operation for obtaining application performance data accordingly, due to Socket
It to frequent switch on and close in debugging, therefore increase the operation complexity for reading Shell script sentence;
3) the user terminal performance data that the program obtains can only be stored in user terminal local, it has not been convenient to extract in the side PC
Performance data is analyzed;
4) during obtaining user terminal performance data, application to be detected can not be obtained, event, i.e. user couple occurs
Application to be detected carries out performance data when real-time operation, including application to be detected occur when event occupied CPU, memory with
And the information of the resources such as flow.
In conclusion the relevant technologies for such as how application be granularity, safe and simple obtain application performance data and
The performance data of user's real-time operation, and performance data analysis conveniently is carried out in the side PC, it there is no effective solution scheme.
Summary of the invention
In view of this, the main purpose of the present invention is to provide a kind of method for obtaining application performance data, equipment and being
System, at least to solve the above problems.
In order to achieve the above objectives, the technical scheme of the present invention is realized as follows:
A method of application performance data are obtained, this method comprises:
Indicating user terminal is based on preset service Service and the operation library Runtime execution performance data acquisition is answered
With filtering out the corresponding performance data of application to be detected from the performance data of performed application output, and will be filtered out
Performance data export to corresponding log;
The performance data that the log updates is obtained in a manner of monitoring, by the specified text of acquired performance data write-in
Part.
Preferably, the indicating user terminal is based on the default library Service and Runtime execution performance data acquisition
Using before, this method further include:
Parsing need to obtain the installation package file of the application of performance data, by the process title parsed under debud mode
It is sent to the user terminal in the form of a file, and refers to the shell Shell that the user terminal sends the default Service of starting
It enables.
Preferably, described that the corresponding performance number of application to be detected is filtered out from the performance data of performed application output
According to, comprising:
According to the application process title and process sequence PID obtained from the performance data of performed application output
Mapping relations determine PID corresponding with the process title parsed, and determine the performance data of performed application output
In performance data corresponding with identified PID.
Preferably, the performance data that the log is obtained in a manner of monitoring and is updated, by acquired performance data
When the file that write-in is specified, this method further include:
The specified file is written into the timestamp information of acquired performance data.
Preferably, this method further include:
The application to be detected is obtained in a manner of monitoring and receives performance data when event in the log, will be obtained
The specified file is written in timestamp when the performance data and the application to be detected taken receives event.
Preferably, this method further include:
When determining the performance data for terminating to obtain the application to be detected, it is default that Xiang Suoshu user terminal sends termination
The Shell of Service is instructed.
A kind of user terminal, the user terminal include: performance data acquiring unit and performance data filter element;Wherein,
The performance data acquiring unit, for based on preset service Service and the operation library Runtime feasibility
Energy data acquisition application obtains the performance data of performed application output;
The performance data filter element, it is corresponding for filtering out application to be detected from the performance data of the output
Performance data, and the performance data filtered out is exported to corresponding log.
Preferably, the performance data acquiring unit is also used to according to from the performance data of performed application output
The application process title of acquisition and the mapping relations of process sequence PID determine PID corresponding with the received process title of institute,
And determine performance data corresponding with identified PID in the performed performance data using output.
A kind of server, the server include: indicating unit and monitoring writing unit;Wherein,
The indicating unit is used to indicate user terminal and is held based on preset service Service and the operation library Runtime
Row performance data obtains application, and the corresponding performance number of application to be detected is filtered out from the performance data of performed application output
According to, and the performance data filtered out is exported to corresponding log;
The monitoring writing unit, the performance data updated for obtaining the log in a manner of monitoring will be acquired
The specified file of performance data write-in.
Preferably, the server further include:
Parse transmission unit, for parsing the installation package file that need to obtain the application of performance data, will be parsed into
Journey title is sent to the user terminal in the form of a file under debud mode, and it is default that Xiang Suoshu user terminal sends starting
The shell Shell of Service is instructed, and triggers the indicating unit.
Preferably, the monitoring writing unit is also used to obtain the performance data that the log updates in a manner of monitoring,
When by the specified file of the performance data write-in of the acquisition, the finger is written into the timestamp information of acquired performance data
Fixed file.
Preferably, the indicating unit, when being also used to determine the performance data for terminating to obtain the application to be detected, to institute
It states user terminal and sends the Shell instruction for terminating default Service.
A kind of system obtaining application performance data, the system include that the described in any item users of the claims are whole
End and the described in any item servers of the claims.
Technical solution provided by the present invention, has the advantages that
1) performance data that the log updates is obtained in a manner of monitoring, such as in Android platform, can use day
Will monitors (Logcat) application and monitors the performance data that log updates, since Logcat has the original communicated to long-time Socket
It is raw to support, it avoids continually opening Socket, read and write and shutoff operation, be easy to cause the situation of Socket exception;
2) when terminating the operation of the acquisition to the performance data of application to be detected, by sending the service of closing to mobile terminal
(Service) Shell instruction, without ensure that safety by compulsory out code end operation;Based on default
The execution performance data acquisition application of the library Service and Runtime, the combination without multiple Shell instruction can be completed accordingly
Acquisition application performance data operation, implement simple and convenient;
3) the specified file of the performance data write-in that server updates the log obtained in a manner of monitoring, it is convenient
Server is to performance data processing for statistical analysis;
4) according to the determining corresponding process sequence number of application to be detected (PID, Process IDentity) in output
Performance data filters out the performance data with detection application, and realizing with application is that granularity obtains performance data;Meanwhile to monitor
Mode obtain the performance data aimed at the day when application to be detected receives event, and by the performance number of the acquisition
The specified file is written in timestamp when accordingly and the application to be detected receives event, in this way, from described specified
Performance data when event, i.e. user to user terminal progress real-time operation occurs for application to be detected, energy can be obtained in file
It is enough that more targetedly performance data is analyzed.
Detailed description of the invention
Fig. 1 is the implementation flow chart of the method for the acquisition application performance data of the embodiment of the present invention;
Fig. 2 is the structural schematic diagram of the user terminal of the embodiment of the present invention;
Fig. 3 is the structural schematic diagram of the server of the embodiment of the present invention;
Fig. 4 is the structural schematic diagram of the system of the acquisition application performance data of the embodiment of the present invention;
Fig. 5 is the realization schematic diagram of the acquisition application performance data of the embodiment of the present invention.
Specific embodiment
The technical solution of the present invention is further elaborated in the following with reference to the drawings and specific embodiments.
The embodiment of the present invention provides a kind of method for obtaining application performance data, and Fig. 1 is that the acquisition of the embodiment of the present invention is answered
With the implementation flow chart of the method for performance data, as shown in Figure 1, comprising:
Step 101: indicating user terminal is based on default Service and the operation library (Runtime) execution performance data obtain
Take application, filter out the corresponding performance data of application to be detected from the performance data of performed application output, and by mistake
The performance data filtered out is exported to corresponding log.
Wherein, the indicating user terminal is answered based on the default library Service and Runtime execution performance data acquisition
With before, further includes:
Parsing need to obtain the installation package file of the application of performance data, and the process title of the application parsed is existed
User terminal is sent under debud mode in the form of a file, and is referred to the Shell that user terminal sends the default Service of starting
It enables.
Wherein, described that the corresponding performance number of application to be detected is filtered out from the performance data of performed application output
According to, comprising:
According to the mapping relations of the application process title and PID obtained from the performance data of performed application output,
Determine PID corresponding with the process title parsed, and determine in the performance data of performed application output with it is true
The corresponding performance data of fixed PID.
By taking the user terminal of Android platform as an example, in step 101, when the performance for needing to obtain certain application in user terminal
When data, which includes: the flow of CPU usage, memory service condition and user terminal consumption;It parses first
The installation kit of the application to be detected leads to the process title of the application parsed in the form of a file under ADB mode
It crosses adb push instruction and is sent to user terminal, and send the Shell instruction for starting default Service to user terminal, if in advance
If Service entitled com.bit a.assistant.StartPerformance when, then corresponding Shell instruction are as follows:
adb am startservice-a com.bita.assistant.StartPerformance;
User terminal is based on the preset library Service and Runtime, and the performance data for executing itself obtains application, comprising:
Top, proc, dumpsys and ps;The mapping that application process title and PID are obtained from the performance data that above-mentioned application exports is closed
System, for example, including the process title of application and the mapping relations of PID in the output of top application, from acquired mapping relations
PID corresponding with the process title of application to be detected parsed is determined, from above-mentioned application, including top, proc, dumpsys
Performance data corresponding with the PID of application to be detected, and the performance number that will be filtered out are determined in the performance data exported with ps
According to the log extremely using Logcat application output with default label (Tag);For example, it is desired to which exporting CPU usage and memory makes
When with the performance data of situation to the log that default label is per tag, corresponding Logcat instruction are as follows:
Log.v("per_tag",m_cpu+"P"+m_mem);" P " is used to be used as performance data m_cpu word in mentioned order
The separator of section (i.e. CPU usage) and performance data m_mem field (i.e. memory service condition).
Step 102: obtaining the performance data that the log updates in a manner of monitoring, acquired performance data is written
Specified file.
When wherein, by the specified file of acquired performance data write-in, for the different time sections to application to be detected
Performance data targetedly analyzed, also the timestamp information for the performance data that the acquired log updates is write
Enter specified file.In this way, passing through the time when needing to apply to be detected when the performance data of certain time period is analyzed
Stab the performance data of information filtering write-in specified file.
Wherein, if event has occurred in application to be detected, i.e., to be checked in acquisition when obtaining the performance data of application to be detected
User operates application to be detected when surveying the performance data of application, to be detected when different operation in order to analyze user
The performance data of application, the mode that may also listen for obtain the property when the application to be detected receives event in the log
Energy data, the text that the timestamp write-in when performance data of the acquisition and the application to be detected to be received to event is specified
Part.
Wherein, it when needing not continue to obtain the performance data of application to be detected, sends to terminate to user terminal and preset
The Shell of Service is instructed, can terminal invocation performance data acquisition application acquisition performance data.
Still by taking the user terminal of Android platform as an example, in step 102, step 101 is monitored when needing to apply using Logcat
The performance data of update of the middle output to log, and when specified file per_log.txt is written, corresponding logcat instruction
Are as follows: logcat-v long-s per_tag > c: per_log.txt;
The event that also current application to be detected can occur for above-mentioned Logcat instruction, i.e. user carry out application to be detected real
When operating, file per_log.txt is written in the performance data of application to be detected and the timestamp information of real-time operation, together
When, operation of the user to application to be detected can also be subjected to screenshot.
When user is when the interface of application to be detected carries out clicking operation, the performance data in file per_log.txt
One example is as follows:
Click(135:150)+20130722121210439+9+20130722121220213.jpg+200028;
Wherein, field click(135:150) indicate coordinate of the user in the clicking operation at the interface of application to be detected, word
Section 20130722121210439 is timestamp information, and field 9 is CPU usage, and field 20130722121220213.jpg is
To user to the title of the screenshot of the operation of application to be detected, field 200028 is memory service condition.
When performance data of the user when the interface of application to be detected does not carry out any operation, in file per_log.txt
An example it is as follows:
null+20130722121210440+4+20130722121220214.jpg+100028;
Wherein, field null indicates that application to be detected occurs currently without event, remaining field meanings and phase described above
Together, it repeats no more.
When needing not continue to obtain the performance data of application to be detected, is sent to user terminal and terminate default Se rvice
Shell instruction, such as can be by starting another Service, i.e. the mode of topService stops obtaining performance number
According to default Service, an illustrative Shell instruction are as follows: adb am startse rvice-a com.bita.assi
stant.StopPerformance;Wherein, topService corresponds to com.bita.ass istant.StopPerformance,
Terminate default com.bita.assistant.Star tPerformance by starting the topService, can stop obtaining
Take the data of application to be detected.
The embodiment of the invention also provides a kind of user terminal, Fig. 2 is that the structure of the user terminal of the embodiment of the present invention is shown
It is intended to, as shown in Figure 2, comprising: performance data acquiring unit 21 and performance data filter element 22;Wherein,
The performance data acquiring unit 21, for based on the default library Service and Runtime execution performance data
Application is obtained, the performance data of performed application output is obtained;
The performance data filter element 22, it is corresponding for filtering out application to be detected from the performance data of the output
Performance data, and the performance data filtered out is exported to corresponding log.
Wherein, the performance data acquiring unit 21 is also used to according to from the performance data of performed application output
The application process title of acquisition and the mapping relations of PID determine PID corresponding with the received process title of institute, and performed
Using performance data corresponding with identified PID in the performance data of output.
The embodiment of the invention also provides a kind of server, Fig. 3 is the structural schematic diagram of the server of the embodiment of the present invention,
As shown in Figure 3, comprising: indicating unit 31 and monitoring writing unit 32;Wherein,
The indicating unit 31 is used to indicate user terminal and is based on the default library Service and Runtime execution performance
Data acquisition application filters out the corresponding performance data of application to be detected from the performance data of performed application output, and
The performance data filtered out is exported to corresponding log;
The monitoring writing unit 32, the performance data updated for obtaining the log in a manner of monitoring, will be obtained
The specified file of the performance data write-in taken.
Wherein, the server further include:
Transmission unit 33 is parsed, for parsing the installation package file that need to obtain the application of performance data, by what is parsed
Process title is sent to the user terminal in the form of a file under debud mode, and it is default that Xiang Suoshu user terminal sends starting
The Shell of Service is instructed, and triggers the indicating unit 31.
Wherein, the monitoring writing unit 32 is also used to obtain the performance data that the log updates in a manner of monitoring,
It is when by the specified file of acquired performance data write-in, the timestamp information write-in of acquired performance data is described specified
File.
Wherein, the indicating unit 31, when being also used to determine the performance data for terminating to obtain the application to be detected, Xiang Yong
Family terminal sends the Shell instruction for terminating default Service.
Based on user terminal shown in Fig. 2 and server shown in Fig. 3, the embodiment of the invention also provides a kind of acquisitions to answer
With the system of performance data, Fig. 4 is a kind of structural schematic diagram of the system of acquisition application performance data of the embodiment of the present invention, such as
Shown in Fig. 4, comprising: user terminal 41 and server 42;Wherein,
The user terminal 41, for being based on the default library Service and Runtime execution performance data acquisition application,
Obtain the performance data of performed application output;It is corresponding that application to be detected is filtered out from the performance data of the output
Performance data, and the performance data filtered out is exported to corresponding log.
The user terminal 41 is also used to according to the application process obtained from the performance data of performed application output
The mapping relations of title and PID determine PID corresponding with the received process title of institute, and determine performed application output
Performance data corresponding with identified PID in performance data.
The server 42 is used to indicate user terminal 41 and is based on the default library Service and Runtime execution performance
Data acquisition application filters out the corresponding performance data of application to be detected from the performance data of performed application output, and
The performance data filtered out is exported to corresponding log;The performance data that the log updates is obtained in a manner of monitoring,
By the specified file of acquired performance data write-in.
The server 42 is also used to be based on the default library Service and Runtime in indicating user terminal 41 to execute
Performance data obtains application, and the corresponding performance data of application to be detected is filtered out from the performance data of performed application output
Before, parsing need to obtain performance data application installation package file, by the process title parsed under debud mode with
The form of file is sent to user terminal 41, and the Shell instruction for starting default Service is sent to user terminal 41.
The server 42 is also used to obtain the performance data that the log updates in a manner of monitoring, by the acquisition
Performance data write-in specified file when, the specified file is written into the timestamp information of acquired performance data.
The server 42, when being also used to determine the performance data for terminating to obtain the application to be detected, to user terminal
41 send the Shell instruction for terminating default Service.
As shown in Fig. 2, the user terminal 41 includes:
Performance data acquiring unit 21, for according to based on the default library Service and Runtime execution performance data
Application is obtained, the performance data of performed application output is obtained;
Performance data filter element 22, for filtering out the corresponding property of application to be detected from the performance data of the output
Energy data, and the performance data filtered out is exported to corresponding log.
Wherein, the performance data acquiring unit 21 is also used to according to from the performance data of performed application output
The application process title of acquisition and the mapping relations of PID determine PID corresponding with the received process title of institute, and determination is held
Performance data corresponding with identified PID in the performance data of capable application output.
As shown in figure 3, the server 42 includes:
Indicating unit 31 is used to indicate user terminal and is based on the default library Service and Runtime execution performance data
Application is obtained, filters out the corresponding performance data of application to be detected from the performance data of performed application output, and by institute
The performance data filtered out is exported to corresponding log;
Writing unit 32 is monitored, the performance data updated for obtaining the log in a manner of monitoring will be acquired
The specified file of performance data write-in.
Wherein, the server 42 further include:
Transmission unit 33 is parsed, for parsing the installation package file that need to obtain the application of performance data, by what is parsed
The process title of the application is sent to the user terminal, Xiang Suoshu user terminal hair in the form of a file under debud mode
The Shell instruction for starting default Service is sent, and triggers the indicating unit 31.
Wherein, the monitoring writing unit 32 is also used to obtain the performance data that the log updates in a manner of monitoring,
When by the specified file of the performance data write-in of the acquisition, described in the timestamp information write-in by the performance data of the acquisition
Specified file.
Wherein, the indicating unit 31, when being also used to determine the performance data for terminating to obtain the application to be detected, to institute
It states user terminal and sends the Shell instruction for terminating default Service.
It is described in detail below with reference to method of the Fig. 5 to the acquisition application performance data of the embodiment of the present invention, Fig. 5 is this
The realization schematic diagram of the acquisition application performance data of inventive embodiments, as shown in Figure 5, comprising:
Step 501: user terminal installs the apk installation kit of application to be detected.
Step 502~step 503: server parses application apk installation kit to be detected, and the process title parsed is written
File, and user terminal is sent by this document by the way of adb push.
Step 504: server sends Shell instruction to user terminal, and indicating user terminal starts default Service.
Step 505: user terminal will be exported using corresponding performance data to the log with default Tag with to be detected.
User terminal is based on default Service and Runtime and periodically executes top, and proc, dumpsys, ps etc. are applied,
The performance data for obtaining above-mentioned application output determines that the process title of corresponding application to be detected is corresponding according to the performance data of acquisition
PID, and filter out from the performance data of acquisition the performance data of the PID of corresponding application to be detected, will filter out performance number
According to the log extremely using Logcat application output with default Tag.
Step 506~step 507: server obtains the performance number that the log with default Tag updates in a manner of monitoring
According to by acquired performance data write-in local file.
Server monitors the performance data updated in the log with default Tag by Logcat application, by the property of update
It can data and current timestamp write-in local file.
In step 507, server can also carry out the event that application to be detected occurs while obtaining performance data
Screenshot, correspondingly, performance data packet includes performance data when event occurs for application to be detected, timestamp in server local file
And the title of screenshot file.
Step 508: server sends the Shell instruction for stopping default Service to user terminal.
When server no longer needs to obtain the performance data of application to be detected, stopped by way of starting topService
Only obtain the default Service of performance data.
In the embodiment of the present invention, server indicating user terminal is based on the default library Service and Runtime feasibility
Energy data acquisition application filters out the corresponding performance data of application to be detected from the performance data of performed application output,
And export the performance data filtered out to corresponding log, implementation is simple and convenient, when needing to terminate to obtain performance data, only
The Shell instruction for stopping default Service need to be sent, it is highly-safe;And it can be according to the process name of application to be detected
Claim the performance data for filtering out corresponding application to be detected, realizes and obtained with application for the performance data of granularity;With the side of monitoring
Formula can obtain the performance data of application to be detected in real time, meanwhile, performance data write-in local file is also facilitated in local
Carry out performance data analysis.
It should be noted that the foregoing is merely illustrative of the preferred embodiments of the present invention, it is not intended to limit of the invention
Protection scope.
Claims (7)
1. a kind of method for obtaining application performance data, which is characterized in that this method comprises:
Indicating user terminal is based on preset service Service and the operation library Runtime execution performance data acquisition application, from
The corresponding performance data of application to be detected, and the performance that will be filtered out are filtered out in the performance data of performed application output
Data are exported to corresponding log;
It is described that the corresponding performance data of application to be detected is filtered out from the performance data of performed application output, comprising:
According to the mapping of the application process title and process sequence PID obtained from the performance data of performed application output
Relationship determines PID corresponding with the process title parsed, and determine in the performance data of performed application output with it is true
The corresponding performance data of fixed PID;
The performance data that the log updates is obtained in a manner of monitoring, by the specified file of acquired performance data write-in;
The performance data for obtaining the log in a manner of monitoring and updating, by the specified text of acquired performance data write-in
Part includes:
The specified file is written into the timestamp information of acquired performance data;
When determining the performance data for terminating to obtain the application to be detected, Xiang Suoshu user terminal, which is sent, terminates default Service
Shell instruction.
2. obtaining the method for application performance data according to claim 1, which is characterized in that the indicating user terminal is based on
Before the default library Service and Runtime execution performance data acquisition application, this method further include:
Parsing need to obtain the installation package file of the application of performance data, by the process title parsed with text under debud mode
The form of part is sent to the user terminal, and the shell Shell instruction for starting default Service is sent to the user terminal.
3. obtaining the method for application performance data according to claim 1, which is characterized in that this method further include:
The application to be detected is obtained in a manner of monitoring receives performance data when event in the log, it will be acquired
The specified file is written in timestamp when performance data and the application to be detected receive event.
4. a kind of user terminal, which is characterized in that the user terminal includes: that performance data acquiring unit and performance data filtering are single
Member;Wherein,
The performance data acquiring unit, for based on preset service Service and the operation library Runtime execution performance number
It is applied according to obtaining, obtains the performance data of performed application output, the performance data includes corresponding timestamp letter
Breath;
When for determining the performance data for terminating to obtain application to be detected, it is default to receive termination for the performance data acquiring unit
The Shell of Service is instructed;
The performance data filter element, for filtering out the corresponding performance of application to be detected from the performance data of the output
Data, and the performance data filtered out is exported to corresponding log;
The performance data acquiring unit, be also used to according to the application obtained from the performance data of performed application output into
The mapping relations of journey title and process sequence PID, determination PID corresponding with the received process title of institute, and performed by determination
Application output performance data in performance data corresponding with identified PID.
5. a kind of server, which is characterized in that the server includes: indicating unit and monitoring writing unit;Wherein,
The indicating unit is used to indicate user terminal and is based on preset service Service and the operation library Runtime feasibility
Energy data acquisition application filters out the corresponding performance data of application to be detected from the performance data of performed application output,
And the performance data filtered out is exported to corresponding log, wherein the corresponding performance of application to be detected filtered out
Data are performance data corresponding with identified PID in the performance data of performed application output, according to the PID from
The mapping relations of the application process title and process sequence PID that obtain in the performance data of performed application output, determine
PID corresponding with the process title parsed;
The indicating unit, when for determining the performance data for terminating to obtain the application to be detected, Xiang Suoshu user terminal hair
It makes arrangements for his funeral and only presets the Shell instruction of Service;
The monitoring writing unit, the performance data updated for obtaining the log in a manner of monitoring, by acquired property
It can the specified file of data write-in;
The monitoring writing unit is also used to obtain the performance data that the log updates in a manner of monitoring, by the acquisition
Performance data write-in specified file when, the specified file is written into the timestamp information of acquired performance data.
6. server according to claim 5, which is characterized in that the server further include:
Parse transmission unit, for parsing the installation package file that need to obtain the application of performance data, the process name that will be parsed
Title is sent to the user terminal in the form of a file under debud mode, and it is default that Xiang Suoshu user terminal sends starting
The shell Shell of Service is instructed, and triggers the indicating unit.
7. a kind of system for obtaining application performance data, which is characterized in that the system includes that user as claimed in claim 4 is whole
End and the described in any item servers of claim 5 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310378979.1A CN104426945B (en) | 2013-08-27 | 2013-08-27 | A kind of method, apparatus and system obtaining application performance data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310378979.1A CN104426945B (en) | 2013-08-27 | 2013-08-27 | A kind of method, apparatus and system obtaining application performance data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104426945A CN104426945A (en) | 2015-03-18 |
CN104426945B true CN104426945B (en) | 2019-08-13 |
Family
ID=52974870
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310378979.1A Active CN104426945B (en) | 2013-08-27 | 2013-08-27 | A kind of method, apparatus and system obtaining application performance data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104426945B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10712971B2 (en) * | 2015-10-23 | 2020-07-14 | Hewlett-Packard Development Company, L.P. | Write commands filtering |
CN106130753B (en) * | 2016-06-12 | 2020-05-05 | 腾讯科技(深圳)有限公司 | Application performance data collection system and method, proxy client and related server |
CN106354647B (en) * | 2016-08-31 | 2018-02-27 | 腾讯科技(深圳)有限公司 | One kind applies detection method and server |
CN108829577A (en) * | 2018-04-26 | 2018-11-16 | 四川斐讯信息技术有限公司 | A kind of automated testing method of application program capacity |
CN108833132A (en) * | 2018-04-26 | 2018-11-16 | 努比亚技术有限公司 | log acquisition control method, terminal and computer readable storage medium |
CN110196798A (en) * | 2019-06-06 | 2019-09-03 | 百度在线网络技术(北京)有限公司 | Performance data determines method, apparatus, equipment and readable storage medium storing program for executing |
CN111597323B (en) * | 2020-04-16 | 2023-06-02 | RealMe重庆移动通信有限公司 | Key field filtering method and device, storage medium and electronic equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101320350A (en) * | 2008-07-17 | 2008-12-10 | 金蝶软件(中国)有限公司 | Performance monitoring method and device |
JP2009064124A (en) * | 2007-09-05 | 2009-03-26 | Fuji Electric Systems Co Ltd | System, device and program for performance data collection/display |
CN101645032A (en) * | 2009-08-31 | 2010-02-10 | 金蝶软件(中国)有限公司 | Performance analysis method of application server and application server |
CN102479084A (en) * | 2010-11-26 | 2012-05-30 | 腾讯科技(深圳)有限公司 | Method and device for acquiring log by Android terminal |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5034955B2 (en) * | 2008-01-08 | 2012-09-26 | 富士通株式会社 | Performance evaluation simulation apparatus, performance evaluation simulation method, and performance evaluation simulation program |
-
2013
- 2013-08-27 CN CN201310378979.1A patent/CN104426945B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009064124A (en) * | 2007-09-05 | 2009-03-26 | Fuji Electric Systems Co Ltd | System, device and program for performance data collection/display |
CN101320350A (en) * | 2008-07-17 | 2008-12-10 | 金蝶软件(中国)有限公司 | Performance monitoring method and device |
CN101645032A (en) * | 2009-08-31 | 2010-02-10 | 金蝶软件(中国)有限公司 | Performance analysis method of application server and application server |
CN102479084A (en) * | 2010-11-26 | 2012-05-30 | 腾讯科技(深圳)有限公司 | Method and device for acquiring log by Android terminal |
Also Published As
Publication number | Publication date |
---|---|
CN104426945A (en) | 2015-03-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104426945B (en) | A kind of method, apparatus and system obtaining application performance data | |
US8332765B2 (en) | Problem reporting system based on user interface interactions | |
CN109032909A (en) | Processing method, system, equipment and the storage medium of application crash log | |
CN101292867B (en) | Physiological multi-parameter remote monitoring system based on B/S structure | |
US7900198B2 (en) | Method and system for parameter profile compiling | |
WO2018120721A1 (en) | Method and system for testing user interface, electronic device, and computer readable storage medium | |
US8855961B2 (en) | Binary definition files | |
US20130132933A1 (en) | Automated compliance testing during application development | |
CN106030456B (en) | Automatic asynchronised handover mark | |
TW201411367A (en) | Method and system for monitoring execution of user request in distributed system | |
CN105608382B (en) | Software maintenance method and software issue determination method and its corresponding device | |
CN110750458A (en) | Big data platform testing method and device, readable storage medium and electronic equipment | |
CN105975367B (en) | Test method and device for mobile equipment | |
CN107277019B (en) | Data plaintext acquisition method and device, electronic terminal and readable storage medium | |
CN107025167B (en) | Method and apparatus for data flow analysis using compiler type information in processor trace logs | |
CN106713011B (en) | Method and system for obtaining test data | |
CN105637488A (en) | Tracing source code for end user monitoring | |
CN112395843A (en) | PHP code-based service processing method, device, equipment and medium | |
CN110134447A (en) | The system and method for BMC immediate updating hard disk information based on operating system | |
CN109783284A (en) | Information acquisition method, system and server, computer readable storage medium | |
CN112269746A (en) | Automatic testing method and related equipment | |
CN105227399A (en) | Based on network equipment Debugging message acquisition methods and the system of User space | |
KR20120071175A (en) | Mobile phone loading web-platform, method for offering log information using the same mobile phone, verification system and method for web-platform | |
CN104516970B (en) | A kind of method and apparatus for carrying out log analysis | |
CN103095513A (en) | Simulation testing device and method of Encryption equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |