CN109542715A - The method, apparatus and terminal device of acquisition applications program feature data - Google Patents
The method, apparatus and terminal device of acquisition applications program feature data Download PDFInfo
- Publication number
- CN109542715A CN109542715A CN201811198885.5A CN201811198885A CN109542715A CN 109542715 A CN109542715 A CN 109542715A CN 201811198885 A CN201811198885 A CN 201811198885A CN 109542715 A CN109542715 A CN 109542715A
- Authority
- CN
- China
- Prior art keywords
- monitored
- performance monitoring
- performance
- destination application
- code
- 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.)
- Pending
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/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/302—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
Landscapes
- Engineering & Computer Science (AREA)
- Computing Systems (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Mathematical Physics (AREA)
- Quality & Reliability (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The disclosure is directed to method and apparatus, mobile terminal and the storage mediums of a kind of acquisition applications program feature data, the method comprise the steps that the installation kit of downloading and installation targets application program, wherein the installation kit is in compiling duration by injection efficiency monitor code;During running the destination application, the performance data for each object to be monitored for calling the performance monitoring code to be acquired in the destination application respectively;By the reporting performance data of collected each object to be monitored to server.Pass through the method for the acquisition applications program feature data of the disclosure, Application developer only needs one section of performance monitoring code of exploitation and is injected into application program installation kit, performance monitoring code is in application program operational process, report the performance data of each monitored object, the performance data that each monitored object in application program is manually collected without developer can save a large amount of human resources and collect performance data spent time.
Description
Technical field
This disclosure relates to application-development technologies field more particularly to a kind of side of acquisition applications program feature data
Method, device and terminal device.
Background technique
Application developer makes application program installation kit, by made installation kit in development and application program
It is distributed to line upper mounting plate, user downloads application program installation kit from line upper mounting plate, and what installation was downloaded on the terminal device answers
With the application program can be used after program installation kit on the terminal device.
The performance of application program is to influence the key factor of application program download, if the performance of an application program is non-
Often poor, will lead to ranking of the application program on distribution platform is influenced by very big, then the application program is installed in downloading
Number of users also can be good compared with performance application program it is few.Therefore Application developer can spend a lot of time and energy is being applied
In program feature optimization.When the performance to application program optimizes, the properties data ability of well known applications is needed
The performance of application program is effectively optimized, drawing frequency, FPS, network such as the collapse rate, Caton, interface of application program makes
With the performance data of the factors such as situation, cpu usage.It is desirable to which the developer that specially setting performance optimizes adopts manually
Collect the properties data of application program, not only time-consuming and needs to consume a large amount of human resources.
As it can be seen that there is an urgent need to those skilled in the art to provide a kind of quickly and easily acquisition applications program feature data at present
Method.
Summary of the invention
To overcome the problems in correlation technique, present disclose provides a kind of sides of acquisition applications program feature data
Method, device and terminal device.
According to the first aspect of the embodiments of the present disclosure, a kind of method of acquisition applications program feature data is provided, wherein
The described method includes: the installation kit of downloading and installation targets application program, wherein the installation kit is in compiling duration by injection efficiency
Monitor code;During running the destination application, the performance monitoring code is called to acquire the target respectively
The performance data of each object to be monitored in application program;Extremely by the reporting performance data of collected each object to be monitored
Server.
Optionally, described during running the destination application, call the performance monitoring code to adopt respectively
Collect the performance data of each object to be monitored in the destination application, comprising: in the mistake for running the destination application
Cheng Zhong calls the performance monitoring code segment injected under first monitored object when starting the first object to be monitored;Wherein,
It include multiple keywords and performance monitoring code segment in the performance monitoring code, each keyword corresponding one to be monitored right
As;Performance data caused by this operation of first monitored object is acquired by the performance monitoring code segment,
Wherein, the performance data includes: operation the time it takes, spent network traffic information, occupied memory source
At least one of information.
Optionally, the performance monitoring code is injected into the following way in the installation kit of the destination application:
The phase is edited according to the function code dynamic towards tangent plane programming mode in the destination application, injects the performance monitoring generation
Code;It wherein, include multiple keywords and performance monitoring code segment in the performance monitoring code;Respectively in the function code
Search the corresponding function code section of object to be monitored of each Keywords matching;It is inserted under each function code section respectively
The performance monitoring code segment, generates the installation kit of the destination application.
Optionally, the object to be monitored is module, component or the thread in the destination application.
According to the second aspect of an embodiment of the present disclosure, a kind of device of acquisition applications program feature data is provided, wherein institute
Stating device includes: installation module, is configured as the installation kit of downloading and installation targets application program, wherein the installation kit exists
Compiling duration is by injection efficiency monitor code;Acquisition module is configured as during running the destination application, is called
The performance monitoring code acquires the performance data of each object to be monitored in the destination application respectively;Reporting module,
It is configured as the reporting performance data of collected each object to be monitored to server.
Optionally, the acquisition module includes: calling submodule, is configured as in the mistake for running the destination application
Cheng Zhong calls the performance monitoring code segment injected under first monitored object when starting the first object to be monitored;Wherein,
It include multiple keywords and performance monitoring code segment in the performance monitoring code, each keyword corresponding one to be monitored right
As;Submodule is acquired, for this to run generated property to first monitored object by the performance monitoring code segment
Energy data are acquired, wherein the performance data includes: operation the time it takes, spent network traffic information, institute
At least one of memory source information of occupancy.
Optionally, the performance monitoring code is injected into the following way in the installation kit of the destination application:
The phase is edited according to the function code dynamic towards tangent plane programming mode in the destination application, injects the performance monitoring generation
Code;It wherein, include multiple keywords and performance monitoring code segment in the performance monitoring code;Respectively in the function code
Search the corresponding function code section of object to be monitored of each Keywords matching;It is inserted under each function code section respectively
The performance monitoring code segment, generates the installation kit of the destination application.
Optionally, the object to be monitored is module, component or the thread in the destination application.
According to the third aspect of an embodiment of the present disclosure, a kind of terminal device is provided, comprising: processor;It is handled for storage
The memory of device executable instruction;Wherein, the processor is configured to executing any of the above-described kind of acquisition applications program feature number
According to method.
According to a fourth aspect of embodiments of the present disclosure, a kind of non-transitorycomputer readable storage medium is provided, when described
When instruction in storage medium is executed by the processor of terminal device, so that terminal device executes any of the above-described kind of acquisition applications journey
The method of sequence performance data.
According to a fifth aspect of the embodiments of the present disclosure, it provides according to a kind of computer program product, when the computer journey
When instruction in sequence product is executed by the processor of mobile terminal, so that terminal device executes any of the above-described kind of acquisition applications program
The method of performance data.
The technical scheme provided by this disclosed embodiment can include the following benefits:
The scheme for the acquisition applications program feature data that embodiment of the disclosure provides, in application program operational process,
The performance monitoring code being previously implanted in application program is called, performance is carried out to each object to be detected in the application program respectively
Monitoring collection performance data simultaneously reports to server, and the performance of each monitored object in application program is manually collected without developer
Data can save a large amount of human resources and collect performance data spent time.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure
Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is a kind of step process of the method for acquisition applications program feature data shown according to an exemplary embodiment
Figure;
Fig. 2 is a kind of step process of the method for acquisition applications program feature data shown according to an exemplary embodiment
Figure;
Fig. 3 is a kind of block diagram of the device of acquisition applications program feature data shown according to an exemplary embodiment;
Fig. 4 is a kind of structural block diagram of terminal device shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is a kind of flow chart of the method for acquisition applications program feature data shown according to an exemplary embodiment,
The method of acquisition applications program feature data as shown in Figure 1 is in terminal device, comprising the following steps:
Step 101: downloading the installation kit of simultaneously installation targets application program.
Wherein, the installation kit of destination application is in compiling duration by injection efficiency monitor code.Performance monitoring code can wrap
Containing multiple keywords and performance monitoring code segment.The corresponding object to be monitored of each keyword, performance monitoring code segment can divide
It is not injected in the code entrance of each object to be monitored, is respectively used to acquire the performance data of each object to be monitored.Actually answering
With in the process, if demand of the Application developer without the performance data for acquiring destination application, it is not necessarily to answer to target
With injection efficiency monitor code in the installation kit of program.Performance monitoring code is applicable to different application, for different
The design parameter of keyword and performance data to be monitored in performance monitoring code is adaptively adjusted i.e. application program
It can.
It, can be in installation kit compiler by AOP in the installation kit to destination application when injection efficiency monitor code
(Aspect Oriented Programming, towards tangent plane programming) technology is realized.AOP technology be by precompile mode and
Runtime dynamic proxy realizes a kind of technology of the unified maintenance of program function.AOP is a hot spot in software development, and
An important content in Spring frame is a kind of derivative pattern of functional expression programming.It can be to service logic using AOP
Various pieces are isolated, so that the degree of coupling between service logic each section reduces, improve the reusability of program, together
When improve the efficiency of exploitation.
Step 102: during operational objective application program, invocation performance monitor code acquires target application journey respectively
The performance data of each object to be monitored in sequence.
Performance prison in destination application operational process, when the operation of a certain object to be monitored, in performance monitoring code
Control code segment is then called, and performance monitoring code segment is treated the performance data that monitored object generates in the process of running and adopted
Collection.
The design parameter that performance data includes can be configured according to actual needs by Application developer, this public affairs
It opens in embodiment and this is not particularly limited.
Object to be monitored can be module, component or the thread in destination application.For the tool of object to be monitored
Body setting, can be configured according to actual needs by destination application developer, not done in the embodiment of the present disclosure to this
Concrete restriction.
Step 103: by the reporting performance data of collected each object to be monitored to server.
The property for each object to be monitored that terminal device is arrived by the performance monitoring code acquisition injected in destination application
Energy data report to server, and destination application developer targetedly obtains destination application from server
The performance data of each object to be monitored further can carry out analysis optimization to its performance, be not necessarily to manual collecting performance data.
The method of acquisition applications program feature data shown in the present exemplary embodiment, in application program operational process,
The performance monitoring code being previously implanted in application program is called, performance is carried out to each object to be detected in the application program respectively
Monitoring collection performance data simultaneously reports to server, and the performance of each monitored object in application program is manually collected without developer
Data can save a large amount of human resources and collect performance data spent time.
Fig. 2 is a kind of flow chart of method for obtaining application program capacity data shown according to an exemplary embodiment,
The method of acquisition application program capacity data as shown in Figure 2 is for including the following steps in terminal device.
Step 201: downloading the installation kit of simultaneously installation targets application program.
Wherein, the installation kit of destination application is in compiling duration by injection efficiency monitor code.Performance monitoring code is by mesh
Mark Application developer obtains according to the parameter coding of object to be monitored and performance data to be collected.Wherein, performance is supervised
Control includes multiple keywords and performance monitoring code segment, the corresponding object to be monitored of each keyword in code.
Performance monitoring code has good universality, and the performance of other each application programs can be applied to by micro-adjustment
In data acquisition.When carrying out to adjust, corresponding application programs developer is according to object to be monitored in institute's development and application program
The keyword in performance monitoring code is adaptively adjusted, the design parameter tuning performance according to the performance data to be acquired monitors
Code segment, Application developer are not necessarily to from the beginning develop performance monitor code section respectively for each application program, can
Saving human resource development and exploitation institute, time-consuming.
Performance monitoring code can be injected into the following way in the installation kit of destination application: firstly, according to the side AOP
Formula edits the phase in the function code dynamic of destination application, injects monitor code;Secondly, being searched in function code respectively each
The corresponding function code section of the object to be monitored of Keywords matching;Finally, being inserted into performance monitoring under each function code section respectively
Code segment generates the installation kit of destination application.
The main thinking of embodiment of the present disclosure injection efficiency monitor code is to use AspectJ in Java compiling duration
The mode of Wave expression formula, and the expression formula can be the big component of any Android tetra- and be also possible to a slight interface exhibition
Show Widget.By way of Wave expression formula, we can do corresponding in any one class or any one handle
Code injection work.It can be according to each keyword in performance monitoring code, from the function generation of destination application based on which
Handle of the corresponding function code section of each object to be monitored as code injection, the injection under determining each handle are determined in code
Energy monitor code section, to complete the injection of performance monitoring code.
Step 202: during operational objective application program, when starting the first object to be monitored, calling the first prison
The performance monitoring code segment injected under control object.
It wherein, include multiple keywords and performance monitoring code segment in performance monitoring code, each keyword is one corresponding
Object to be monitored.Object to be monitored can be module, component or the thread in destination application.
Step 203: to the first monitored object, this runs generated performance data progress to passage capacity monitor code section
Acquisition.
Wherein, performance data includes: operation the time it takes, spent network traffic information, occupied memory
At least one of resource information.
Step 204: by the reporting performance data of collected each object to be monitored to server.
The property for each object to be monitored that terminal device is arrived by the performance monitoring code acquisition injected in destination application
Energy data report to server, and destination application developer targetedly obtains destination application from server
The performance data of each object to be monitored further can carry out analysis optimization to its performance, be not necessarily to manual collecting performance data.This
The method of acquisition applications program feature data shown in exemplary embodiment is called in application program operational process and applies journey
The performance monitoring code being previously implanted in sequence carries out performance monitoring collection to each object to be detected in the application program respectively
Energy data simultaneously report to server, and the performance data of each monitored object in application program is manually collected without developer, can
It saves a large amount of human resources and collects performance data spent time.In addition, passing through AOP technology in the embodiment of the present disclosure to target
Injection efficiency monitor code in the installation kit of application program can be answered automatically according to the keyword in performance monitoring code in target
With searched in the function code of program the corresponding function code section of each object to be monitored and thereto be inserted into performance monitoring code segment,
The former function logic that the efficiency and the degree of coupling for being able to ascend performance monitoring code injection can be avoided destination application is disturbed.
Fig. 3 is a kind of block diagram of the device of acquisition applications program feature data shown according to an exemplary embodiment, ginseng
According to Fig. 3, the device includes: installation module 301, acquisition module 302 and reporting module 303.
Module 301 is installed, is configured as the installation kit of downloading and installation targets application program, wherein the installation kit exists
Compiling duration is by injection efficiency monitor code;
Acquisition module 302 is configured as calling the performance monitoring generation during running the destination application
Code acquires the performance data of each object to be monitored in the destination application respectively;
Reporting module 303 is configured as the reporting performance data of collected each object to be monitored to server.
Optionally, the acquisition module 302 may include: to call submodule 3021, be configured as running the target
During application program, when starting the first object to be monitored, the performance monitoring injected under first monitored object is called
Code segment;It wherein, include multiple keywords and performance monitoring code segment, each keyword corresponding one in the performance monitoring code
A object to be monitored;Acquire submodule 3022, for by the performance monitoring code segment to first monitored object this
Performance data caused by running is acquired, wherein the performance data includes: operation the time it takes, spent
At least one of network traffic information, occupied memory source information.
Optionally, the performance monitoring code is injected into the following way in the installation kit of the destination application:
The phase is edited according to the function code dynamic towards tangent plane programming mode in the destination application, injects the performance monitoring generation
Code;It wherein, include multiple keywords and performance monitoring code segment in the performance monitoring code;Respectively in the function code
Search the corresponding function code section of object to be monitored of each Keywords matching;It is inserted under each function code section respectively
The performance monitoring code segment, generates the installation kit of the destination application.
Optionally, the object to be monitored is module, component or the thread in the destination application
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, no detailed explanation will be given here.
Fig. 4 is a kind of block diagram of terminal device 600 shown according to an exemplary embodiment.For example, terminal device 600 can
To be mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, Medical Devices are good for
Body equipment, personal digital assistant etc..
Referring to Fig. 4, terminal device 600 may include following one or more components: processing component 602, memory 604,
Power supply module 606, multimedia component 608, audio component 610, the interface 612 of input/output (I/O), sensor module 614,
And communication component 616.
The integrated operation of the usual controlling terminal equipment 600 of processing component 602, such as with display, call, data are logical
Letter, camera operation and record operate associated operation.Processing component 602 may include one or more processors 620 to hold
Row instruction, to perform all or part of the steps of the methods described above.In addition, processing component 602 may include one or more moulds
Block, convenient for the interaction between processing component 602 and other assemblies.For example, processing component 602 may include multi-media module, with
Facilitate the interaction between multimedia component 608 and processing component 602.
Memory 604 is configured as storing various types of data to support the operation in terminal device 600.These data
Example include any application or method for being operated on terminal device 600 instruction, contact data, telephone directory
Data, message, picture, video etc..Memory 604 can by any kind of volatibility or non-volatile memory device or it
Combination realize, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable
Except programmable read only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, fastly
Flash memory, disk or CD.
Power supply module 606 provides electric power for the various assemblies of terminal device 600.Power supply module 606 may include power supply pipe
Reason system, one or more power supplys and other with for terminal device 600 generate, manage, and distribute the associated component of electric power.
Multimedia component 608 includes the screen of one output interface of offer between terminal device 600 and user.One
In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen
Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings
Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action
Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers
Body component 608 includes a front camera and/or rear camera.When terminal device 600 is in operation mode, as shot mould
When formula or video mode, front camera and/or rear camera can receive external multi-medium data.Each preposition camera shooting
Head and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 610 is configured as output and/or input audio signal.For example, audio component 610 includes a Mike
Wind (MIC), when terminal device 600 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone
It is configured as receiving external audio signal.The received audio signal can be further stored in memory 604 or via logical
Believe that component 616 is sent.In some embodiments, audio component 610 further includes a loudspeaker, is used for output audio signal.
I/O interface 612 provides interface between processing component 602 and peripheral interface module, and above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock
Determine button.
Sensor module 614 includes one or more sensors, for providing the state of various aspects for terminal device 600
Assessment.For example, sensor module 614 can detecte the state that opens/closes of terminal device 600, the relative positioning of component, example
As the component be terminal device 600 display and keypad, sensor module 614 can also detect terminal device 600 or
The position change of 600 1 components of terminal device, the existence or non-existence that user contacts with terminal device 600, terminal device 600
The temperature change of orientation or acceleration/deceleration and terminal device 600.Sensor module 614 may include proximity sensor, be configured
For detecting the presence of nearby objects without any physical contact.Sensor module 614 can also include optical sensor,
Such as CMOS or ccd image sensor, for being used in imaging applications.In some embodiments, which may be used also
To include acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 616 is configured to facilitate the communication of wired or wireless way between terminal device 600 and other equipment.
Terminal device 600 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.Show at one
In example property embodiment, communication component 616 receives broadcast singal or broadcast from external broadcasting management system via broadcast channel
Relevant information.In one exemplary embodiment, the communication component 616 further includes near-field communication (NFC) module, short to promote
Cheng Tongxin.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module
(UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, terminal device 600 can be by one or more application specific integrated circuit (ASIC), number
Word signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing shown in above-mentioned Fig. 1 to Fig. 2
Acquisition applications program feature data method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided
It such as include the memory 604 of instruction, above-metioned instruction can be executed by the processor 620 of terminal device 600 to complete above-mentioned Fig. 1 to figure
The method of acquisition applications program feature data shown in 2.For example, the non-transitorycomputer readable storage medium can be
ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc..
In the exemplary embodiment, a kind of computer program product is additionally provided, when in the computer program product
When instruction is executed by the processor 620 of terminal device 600, so that terminal device 600 is completed above-mentioned Fig. 1 and is adopted to shown in Fig. 2
Collect the method for application program capacity data.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or
Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following
Claim is pointed out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.
Claims (10)
1. a kind of method of acquisition applications program feature data, which is characterized in that the described method includes:
Download the installation kit of simultaneously installation targets application program, wherein the installation kit is in compiling duration by injection efficiency monitor code;
During running the destination application, the performance monitoring code is called to acquire the target application journey respectively
The performance data of each object to be monitored in sequence;
By the reporting performance data of collected each object to be monitored to server.
2. the method according to claim 1, wherein described during running the destination application,
The performance data for each object to be monitored for calling the performance monitoring code to be acquired in the destination application respectively, comprising:
During running the destination application, when starting the first object to be monitored, first monitoring pair is called
As the performance monitoring code segment of lower injection;It wherein, include multiple keywords and performance monitoring code in the performance monitoring code
Section, the corresponding object to be monitored of each keyword;
Performance data caused by this operation of first monitored object is acquired by the performance monitoring code segment,
Wherein, the performance data includes: operation the time it takes, spent network traffic information, occupied memory source
At least one of information.
3. the method according to claim 1, wherein the performance monitoring code is injected into institute in the following way
It states in the installation kit of destination application:
The phase is edited according to the function code dynamic towards tangent plane programming mode in the destination application, injects the performance prison
Control code;It wherein, include multiple keywords and performance monitoring code segment in the performance monitoring code;
The corresponding function code section of object to be monitored of each Keywords matching is searched in the function code respectively;
It is inserted into the performance monitoring code segment under each function code section respectively, generates the installation of the destination application
Packet.
4. the method according to claim 1, wherein the object to be monitored is in the destination application
Module, component or thread.
5. a kind of device of acquisition applications program feature data, which is characterized in that described device includes:
Module is installed, is configured as the installation kit of downloading and installation targets application program, wherein the installation kit is in compiling duration quilt
Injection efficiency monitor code;
Acquisition module is configured as during running the destination application, and the performance monitoring code is called to distinguish
Acquire the performance data of each object to be monitored in the destination application;
Reporting module is configured as the reporting performance data of collected each object to be monitored to server.
6. device according to claim 5, which is characterized in that the acquisition module includes:
Submodule is called, is configured as during running the destination application, when starting the first object to be monitored,
Call the performance monitoring code segment injected under first monitored object;It wherein, include multiple passes in the performance monitoring code
Keyword and performance monitoring code segment, the corresponding object to be monitored of each keyword;
Submodule is acquired, for this to run generated property to first monitored object by the performance monitoring code segment
Energy data are acquired, wherein the performance data includes: operation the time it takes, spent network traffic information, institute
At least one of memory source information of occupancy.
7. device according to claim 5, which is characterized in that the performance monitoring code is injected into institute in the following way
It states in the installation kit of destination application:
The phase is edited according to the function code dynamic towards tangent plane programming mode in the destination application, injects the performance prison
Control code;It wherein, include multiple keywords and performance monitoring code segment in the performance monitoring code;
The corresponding function code section of object to be monitored of each Keywords matching is searched in the function code respectively;
It is inserted into the performance monitoring code segment under each function code section respectively, generates the installation of the destination application
Packet.
8. device according to claim 5, which is characterized in that the object to be monitored is in the destination application
Module, component or thread.
9. a kind of terminal device characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to executing such as acquisition applications program feature number of any of claims 1-4
According to method.
10. a kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of terminal device
When device executes, so that terminal device is able to carry out acquisition applications program feature data according to any one of claims 1-4
Method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811198885.5A CN109542715A (en) | 2018-10-15 | 2018-10-15 | The method, apparatus and terminal device of acquisition applications program feature data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811198885.5A CN109542715A (en) | 2018-10-15 | 2018-10-15 | The method, apparatus and terminal device of acquisition applications program feature data |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109542715A true CN109542715A (en) | 2019-03-29 |
Family
ID=65843968
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811198885.5A Pending CN109542715A (en) | 2018-10-15 | 2018-10-15 | The method, apparatus and terminal device of acquisition applications program feature data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109542715A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110177300A (en) * | 2019-05-23 | 2019-08-27 | 北京字节跳动网络技术有限公司 | Monitoring method, device, electronic equipment and the storage medium of running state of programs |
CN111813633A (en) * | 2020-07-20 | 2020-10-23 | 前海人寿保险股份有限公司 | Performance monitoring method, device, equipment and readable storage medium |
CN111913847A (en) * | 2020-07-21 | 2020-11-10 | 上海冰鉴信息科技有限公司 | Method and system for acquiring remote task execution progress |
CN112559293A (en) * | 2020-12-22 | 2021-03-26 | 上海哔哩哔哩科技有限公司 | Application package monitoring method and device |
CN112650656A (en) * | 2019-10-09 | 2021-04-13 | 北京京东尚科信息技术有限公司 | Performance monitoring method, device, equipment, server and storage medium |
CN112860522A (en) * | 2021-03-02 | 2021-05-28 | 北京梧桐车联科技有限责任公司 | Program operation monitoring method, device and equipment |
CN113553230A (en) * | 2021-06-30 | 2021-10-26 | 珠海豹趣科技有限公司 | Application program performance monitoring method and device, storage medium and electronic equipment |
WO2021243574A1 (en) * | 2020-06-02 | 2021-12-09 | 深圳市欢太科技有限公司 | Detection method for user information acquisition in violation of regulations and related device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060288025A1 (en) * | 2005-06-16 | 2006-12-21 | Arun Kumar | Identifying problems, usage patterns, and performance in a database interface using aspect-oriented programming |
CN103714290A (en) * | 2013-12-26 | 2014-04-09 | 北京工业大学 | Software behavior obtaining, monitoring and verifying method |
CN106844153A (en) * | 2017-01-20 | 2017-06-13 | 北京奇虎科技有限公司 | Application program operation and monitoring method, device and terminal |
-
2018
- 2018-10-15 CN CN201811198885.5A patent/CN109542715A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060288025A1 (en) * | 2005-06-16 | 2006-12-21 | Arun Kumar | Identifying problems, usage patterns, and performance in a database interface using aspect-oriented programming |
CN103714290A (en) * | 2013-12-26 | 2014-04-09 | 北京工业大学 | Software behavior obtaining, monitoring and verifying method |
CN106844153A (en) * | 2017-01-20 | 2017-06-13 | 北京奇虎科技有限公司 | Application program operation and monitoring method, device and terminal |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110177300A (en) * | 2019-05-23 | 2019-08-27 | 北京字节跳动网络技术有限公司 | Monitoring method, device, electronic equipment and the storage medium of running state of programs |
CN112650656A (en) * | 2019-10-09 | 2021-04-13 | 北京京东尚科信息技术有限公司 | Performance monitoring method, device, equipment, server and storage medium |
WO2021243574A1 (en) * | 2020-06-02 | 2021-12-09 | 深圳市欢太科技有限公司 | Detection method for user information acquisition in violation of regulations and related device |
CN111813633A (en) * | 2020-07-20 | 2020-10-23 | 前海人寿保险股份有限公司 | Performance monitoring method, device, equipment and readable storage medium |
CN111913847A (en) * | 2020-07-21 | 2020-11-10 | 上海冰鉴信息科技有限公司 | Method and system for acquiring remote task execution progress |
CN111913847B (en) * | 2020-07-21 | 2021-04-27 | 上海冰鉴信息科技有限公司 | Method and system for acquiring remote task execution progress |
CN112559293A (en) * | 2020-12-22 | 2021-03-26 | 上海哔哩哔哩科技有限公司 | Application package monitoring method and device |
CN112559293B (en) * | 2020-12-22 | 2023-03-07 | 上海哔哩哔哩科技有限公司 | Application package monitoring method and device |
CN112860522A (en) * | 2021-03-02 | 2021-05-28 | 北京梧桐车联科技有限责任公司 | Program operation monitoring method, device and equipment |
CN113553230A (en) * | 2021-06-30 | 2021-10-26 | 珠海豹趣科技有限公司 | Application program performance monitoring method and device, storage medium and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109542715A (en) | The method, apparatus and terminal device of acquisition applications program feature data | |
CN104267977B (en) | application program operation method and device | |
CN105094931B (en) | Method for upgrading software and device | |
KR101770931B1 (en) | Method, apparatus, program and computer-readable recording medium of generating communication module firmware and plug-in | |
CN103916829B (en) | A kind of desktop Notification Method of message and device | |
CN107122158A (en) | The method and device of broadcast information prompting audio, electronic equipment | |
CN104951335B (en) | The processing method and processing device of application program installation kit | |
CN104731868B (en) | Intercept the method and device of advertisement | |
CN105848190A (en) | OTA upgrading method and apparatus | |
CN103916468B (en) | Method for upgrading system, terminal, server and upgrade-system | |
CN107315791A (en) | Static resource caching method, device and computer-readable recording medium | |
CN105302615B (en) | Method for upgrading software and device | |
CN107370772A (en) | Account login method, device and computer-readable recording medium | |
CN106445806B (en) | Method for testing software and device | |
CN110300189A (en) | A kind of resource downloading method, device and electronic equipment | |
CN109814942A (en) | A kind of parameter processing method and device | |
CN104050236B (en) | Web site contents update reminding method, server and client side | |
CN105930151A (en) | Application compilation method and apparatus as well as terminal | |
CN106537288B (en) | The method and device of self-starting is applied in control | |
CN104932970A (en) | Monitoring method and device of memory leakage | |
CN108280342A (en) | Using synchronous method with device, for applying synchronous device | |
CN109344051A (en) | Method, apparatus, electronic equipment and the storage medium of data processing | |
CN109951701A (en) | Monitor fault handling method and device | |
CN105607979A (en) | Network interconnection control method and device | |
CN105323318B (en) | Amending method, device and the equipment of parameter |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190329 |