[go: up one dir, main page]

CN107273277A - A kind of depth captures the method and device of mobile phone application runnability data - Google Patents

A kind of depth captures the method and device of mobile phone application runnability data Download PDF

Info

Publication number
CN107273277A
CN107273277A CN201710330347.6A CN201710330347A CN107273277A CN 107273277 A CN107273277 A CN 107273277A CN 201710330347 A CN201710330347 A CN 201710330347A CN 107273277 A CN107273277 A CN 107273277A
Authority
CN
China
Prior art keywords
mobile phone
data
phone application
runnability
runnability data
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
Application number
CN201710330347.6A
Other languages
Chinese (zh)
Inventor
刘马良
张强
夏运思
王刚
廖泉辉
张鹏飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Kingsoft Online Game Technology Co Ltd
Chengdu Xishanju Interactive Entertainment Technology Co Ltd
Original Assignee
Zhuhai Kingsoft Online Game Technology Co Ltd
Chengdu Xishanju Interactive Entertainment Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Zhuhai Kingsoft Online Game Technology Co Ltd, Chengdu Xishanju Interactive Entertainment Technology Co Ltd filed Critical Zhuhai Kingsoft Online Game Technology Co Ltd
Priority to CN201710330347.6A priority Critical patent/CN107273277A/en
Publication of CN107273277A publication Critical patent/CN107273277A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/349Performance evaluation by tracing or monitoring for interfaces, buses
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/24Arrangements for testing

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The present invention proposes a kind of method that depth captures mobile phone application runnability data, for the program developed in Android smartphone based on Unity engines, comprises the following steps:Start and be detected mobile phone application, and monitor the mobile phone application process;Application programming interface in Unity engines is searched, and captures the runnability data of the application programming interface;Corresponding operation is performed, the application programming interface is called in triggering, to obtain and preserve presently described runnability data;The runnability data are exported into external file.Beneficial effects of the present invention are:By not limited by exploitation version and release version, depth crawl real user uses the runnability data for developing program in Android smartphone based on Unity engines, is that mobile phone application developer optimizes offer data supporting;Simultaneously by collecting the performance data for a large amount of mobile phone games developed in current outer net using Unity engines, big data support is provided to formulate the standard of performance test.

Description

A kind of depth captures the method and device of mobile phone application runnability data
Technical field
The present invention relates to mobile phone application and development field, more particularly to a kind of depth crawl mobile phone application runnability data Method and device.
Background technology
In smart mobile phone industry, with the occupation rate of market more and more higher of mobile phone games, most well-known development of games Company has all put into more technical research in mobile phone games exploitation.Because the hardware configuration of mobile phone has compared with personal computer Obvious gap, while considering the factor such as power consumption and heating, its performance differs greatly with personal computer, therefore mobile phone games The performance of game can be more paid close attention to, to improve Consumer's Experience.
There is provided perfect mobile phone games performance monitoring as a kind of wide variety of mobile phone application development engine by Unity Instrument.Specifically, the profiler instruments that mobile phone application developer is carried by using Unity engines, can be captured with depth Various conventional Unity engine performance datas.Because after profiler, which is switched, to be opened, the performance of mobile phone games will be by obvious Influence, so the released version of mobile phone games can all turn off the option, so that test crawl number can only be carried out to exploitation version According to, it is impossible to the release version depth Grabbing properties data used true player.And when mobile phone application developer uses routine Monitor mode, that is, start the proc file system datas that independent process reads tested mobile phone games process, obtain it During the service conditions such as CPU, internal memory or network, again can not depth crawl Unity engines in resource occupation, such as being used internal memory Data.
In view of the foregoing, mobile phone application developer needs a set of released version towards mobile phone application during running Depth crawl mobile phone application runnability data tool, to obtain the release version runnability data towards real user, Data supporting is provided for mobile phone optimizing application.Meanwhile, mobile phone application developer, which can collect, uses Unity engines in current outer net The performance data of a large amount of mobile phone games of exploitation, the standard for formulating performance test using tester for mobile phone provides big data branch Hold.
The content of the invention
Present invention aims to solve the deficiencies of the prior art, and provides a kind of a kind of depth captures mobile phone application runnability data Method and device, its towards the program developed based on Unity engines in Android smartphone, result in depth crawl towards The effect of the mobile phone application runnability data of user.
To achieve these goals, the present invention uses following technical scheme:
A kind of method that depth captures mobile phone application runnability data is proposed, for being based in Android smartphone The program of Unity engines exploitation, comprises the following steps:
S100) start and be detected mobile phone application, and monitor the mobile phone application process;
S200 application programming interface in Unity engines) is searched, and detects the maneuverability of the application programming interface Can data;
S300 corresponding operation) is performed, the application programming interface is called in triggering, to obtain and preserve the current operation Performance data;
S400 the runnability data) are exported into external file.
In the above method of the present invention, the application programming interface includes Mono platforms out of, operating system distribution Deposit interface.
In the above method of the present invention, the application programming interface renders interface including figure.
Further, the figure, which renders the runnability data that interface is crawled, includes interface interchange number of times, triangle number And number of vertex.
In the above method of the present invention, the application programming interface includes scene switching interface.
Further, the runnability data that the scene switching interface is crawled call consumption including the scene switching interface When.
In the above method of the present invention, the application programming interface includes resource loading interface.
Further, the runnability data that the resource loading interface is crawled include resource and load statistics.
Present invention also proposes the device that a kind of depth captures mobile phone application runnability data, for Android smartphone In the program developed based on Unity engines, including with lower module:
Starting module, for starting detected mobile phone application, and monitors the mobile phone application process;
Trigger module, for mobile phone application developer after operation is performed, sends snatching at application program DLL The message of current runnability data;
After handling module, the message of current runnability data for receiving snatching at application program DLL, crawl Corresponding runnability data;
Export module, for the runnability data of crawl to be exported into external file.
In the said apparatus of the present invention, the trigger module is after mobile phone application developer performs corresponding operating, hair Go out to capture Mono platforms from the message of the current runnability data of the storage allocation interface of operating system.
In the said apparatus of the present invention, the trigger module is after mobile phone application developer performs corresponding operating, hair Go out to capture the message that the figure renders the current runnability data of interface.
Further, handling module reception captures the figure and rendered after the message of current runnability data of interface, The runnability data of crawl include interface interchange number of times, triangle number and number of vertex.
In the said apparatus of the present invention, the trigger module is after mobile phone application developer performs corresponding operating, hair Go out to capture the message of the current runnability data of the scene switching interface.
Further, the handling module is received after the message for the current runnability data for capturing the scene switching interface, The runnability data of crawl are called time-consuming including the scene switching interface.
In the said apparatus of the present invention, the trigger module is after mobile phone application developer performs corresponding operating, hair Go out to capture the message of the current runnability data of the resource loading interface.
Further, the handling module is received after the message for the current runnability data for capturing the resource loading interface, The runnability data of crawl include resource and load statistics.
Present invention also offers a kind of computer-readable medium, comprising for performing above-mentioned depth crawl mobile phone application operation The instruction of performance data method.
Beneficial effects of the present invention are:By not limited by exploitation version and release version, depth crawl real user It is that mobile phone application developer is carried out using the runnability data for developing program in Android smartphone based on Unity engines Optimization provides data supporting;While the performance by collecting a large amount of mobile phone games developed in current outer net using Unity engines Data, big data support is provided to formulate the standard of performance test.
Brief description of the drawings
Fig. 1 show the method flow diagram that depth proposed by the present invention captures mobile phone application runnability data;
Fig. 2 show the method flow diagram of the runnability data of crawl internal memory situation proposed by the present invention;
Fig. 3 show the method flow diagram for the runnability data that grabbing graphics proposed by the present invention are rendered;
Fig. 4 show the method flow diagram of the runnability data of crawl scene switching proposed by the present invention;
Fig. 5 show the method flow diagram of the runnability data of crawl resource loading proposed by the present invention;
Fig. 6 show the structure drawing of device that depth proposed by the present invention captures mobile phone application runnability data.
Embodiment
The technique effect of the design of the present invention, concrete structure and generation is carried out below with reference to embodiment and accompanying drawing clear Chu, complete description, to be completely understood by the purpose of the present invention, scheme and effect.It should be noted that in situation about not conflicting Under, the feature in embodiment and embodiment in the application can be mutually combined.The identical accompanying drawing mark used everywhere in accompanying drawing Note indicates same or analogous part.
Fig. 1 show the method flow diagram that depth proposed by the present invention captures mobile phone application runnability data.Reference picture 1, an exemplary embodiment for being developed program in Android smartphone based on Unity engines is comprised the following steps:
S100) start and be detected mobile phone application, mobile phone is connected by adb instruments, and use injecting program by monitor code Mobile phone application is injected into, so as to monitor the mobile phone application process;
S200 application programming interface related in Unity engines) is searched, and detects the application programming interface Runnability data;
S300 corresponding operation) is performed, the application programming interface is called in triggering, to obtain and preserve presently described Runnability data;
S400) when exiting detected mobile phone and applying, the runnability data being collected into are exported into external file.
According to a preferred embodiment of the present invention, the runnability data of the crawl internal memory situation shown in reference picture 2 Method flow diagram, performs depth crawl mobile phone and enters using the function code injection detected hand machine game of the runnability data Cheng Hou, searches the storage allocation interface of the Mono platforms from operating system in Unity engines;When performing related operation, touch Send out Unity engines in Mono platforms from the storage allocation interface of operating system when, monitor code will be by the distribution Interface is deposited, the runnability data of instant Memory Allocation are captured.
According to a preferred embodiment of the present invention, the performance data method stream that the grabbing graphics shown in reference picture 3 are rendered Cheng Tu, after performing depth crawl mobile phone using the function code injection detected hand machine game process of the runnability data, The figure in lookup Unity engines renders the relevant interface in interface, such as gldraw;When performing related operation, touch The figure in hair Unity engines is when rendering interface, and monitor code will render interface by the figure, and crawl is included but not It is limited to the runnability data such as drawcall interface interchanges number of times, triangle number and the number of vertex of every frame.
According to a preferred embodiment of the present invention, the performance data method stream of the crawl scene switching shown in reference picture 4 Cheng Tu, after performing depth crawl mobile phone using the function code injection detected hand machine game process of the runnability data, Search the scene switching interface in Unity engines;When performing related scene handover operation, trigger in Unity engines During the scene switching interface, monitor code will be captured the including but not limited to scene and cut by the scene switching interface Alias calls the runnability data such as time-consuming.
According to a further advantageous embodiment of the invention, the performance data method of the crawl resource loading shown in reference picture 5 Flow chart, performs function code injection detected hand machine game process of the depth crawl mobile phone using the runnability data Afterwards, the resource loading interface in Unity engines is searched;When performing related operation, the money in Unity engines is triggered During the loading interface of source, monitor code will be captured by the resource loading interface and include but is not limited to the resource loading interface The runnability data such as statistics resource.
Realizing the function code of above-mentioned depth crawl mobile phone application runnability data method can compile and generate executable Program, and be stored in computer-readable medium.
Fig. 6 show the structure drawing of device that depth proposed by the present invention captures mobile phone application runnability data.The dress Put the program for being developed in Android smartphone based on Unity engines.The expression data flow of arrow in reference picture 6, figure.
Mobile phone application developer starts after test game, and starting module, which starts, is detected mobile phone application, and monitors described Mobile phone application process so that trigger module can search application programming interface related in Unity engines;When mobile phone application Developer is performed after corresponding operation, and trigger module detects application programming interface related in Unity engines and adjusted With rear, the message of the current runnability data of snatching at application program DLL is sent to handling module;Handling module is connecing After the message for the current runnability data for receiving snatching at application program DLL, corresponding runnability data are captured;Test After finishing, the runnability data of crawl are exported to external file by export module.
According to a preferred embodiment of the present invention, the trigger module searches in Unity engines Mono platforms from operation The storage allocation interface of system;When performing related operation, the trigger module detects Mono platforms in Unity engines When being called from the storage allocation interface of operating system, message is sent to the handling module;The handling module is received To after message, the runnability data of instant Memory Allocation by the storage allocation interface, will be captured.
According to a preferred embodiment of the present invention, the figure that the trigger module is searched in Unity engines is rendered Relevant interface in interface, such as gldraw;When performing related scene handover operation, the trigger module detects Unity The figure in engine render interface it is called when, send message to the handling module;The handling module, which is received, to disappear After breath, interface will be rendered by the figure, crawl includes but is not limited to drawcall interface interchanges number of times, the triangle per frame The runnability data such as number and number of vertex.
According to a preferred embodiment of the present invention, the trigger module searches the scene switching in Unity engines Interface;When performing related scene handover operation, the trigger module detects the scene switching interface in Unity engines When called, message is sent to the handling module;The handling module is received after message, will be connect by scene switching Mouthful, crawl includes but is not limited to the scene switching interface and calls time-consuming grade for runnability data.
According to a further advantageous embodiment of the invention, the resource that the trigger module is searched in Unity engines adds Carry interface;When performing related operation, the resource loading interface that the trigger module is detected in Unity engines is called When, send message to the handling module;The handling module is received after message, will be grabbed by the resource loading interface Take the runnability data such as the statistics resource of including but not limited to described resource loading interface.
Although description of the invention is quite detailed and especially several embodiments are described, it is not These any details or embodiment or any specific embodiments are intended to be limited to, but it is by reference to appended that should be considered as Claim considers that prior art is explained for the possibility that these claims provide broad sense, so as to effectively cover the present invention Preset range.In addition, with the foreseeable embodiment of inventor, present invention is described above, its purpose is to be provided with Description, and those unsubstantialities changes to the present invention still unforeseen at present can still represent the equivalent modifications of the present invention.

Claims (10)

1. a kind of method that depth captures mobile phone application runnability data, for being based on Unity engines in Android smartphone The program of exploitation, it is characterised in that comprise the following steps:
S100) start and be detected mobile phone application, and monitor the mobile phone application process;
S200 application programming interface in Unity engines) is searched, and detects the runnability of the application programming interface Data;
S300 corresponding operation) is performed, the application programming interface is called in triggering, to obtain and preserve presently described operation Performance data;
S400 the runnability data) are exported into external file.
2. the method that a kind of depth according to claim 1 captures mobile phone application runnability data, it is characterised in that institute Stating application programming interface includes storage allocation interface of the Mono platforms from operating system.
3. the method that a kind of depth according to claim 1 captures mobile phone application runnability data, it is characterised in that institute State application programming interface and render interface including figure.
4. the method that a kind of depth according to claim 3 captures mobile phone application runnability data, it is characterised in that institute Stating figure and rendering the runnability data that interface is crawled includes interface interchange number of times, triangle number and number of vertex.
5. the method that a kind of depth according to claim 1 captures mobile phone application runnability data, it is characterised in that institute Stating application programming interface includes scene switching interface.
6. the method that a kind of depth according to claim 5 captures mobile phone application runnability data, it is characterised in that institute State the runnability data that scene switching interface is crawled called including the scene switching interface it is time-consuming.
7. the method that a kind of depth according to claim 1 captures mobile phone application runnability data, it is characterised in that institute Stating application programming interface includes resource loading interface.
8. the method that a kind of depth according to claim 7 captures mobile phone application runnability data, it is characterised in that institute State the runnability data that resource loading interface is crawled and include resource and load statistics.
9. a kind of depth captures the device of mobile phone application runnability data, for being based on Unity engines in Android smartphone The program of exploitation, it is characterised in that including with lower module:
Starting module, for starting detected mobile phone application, and monitors the mobile phone application process;
Trigger module, for mobile phone application developer after operation is performed, sends the current of snatching at application program DLL The message of runnability data;
After handling module, the message of current runnability data for receiving snatching at application program DLL, crawl correspondence Runnability data;
Export module, for the runnability data of crawl to be exported into external file.
10. a kind of computer-readable medium, it is characterised in that including for performing according to any one of the claim 1-8 depths The instruction of degree crawl mobile phone application runnability data method.
CN201710330347.6A 2017-05-11 2017-05-11 A kind of depth captures the method and device of mobile phone application runnability data Pending CN107273277A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710330347.6A CN107273277A (en) 2017-05-11 2017-05-11 A kind of depth captures the method and device of mobile phone application runnability data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710330347.6A CN107273277A (en) 2017-05-11 2017-05-11 A kind of depth captures the method and device of mobile phone application runnability data

Publications (1)

Publication Number Publication Date
CN107273277A true CN107273277A (en) 2017-10-20

Family

ID=60074165

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710330347.6A Pending CN107273277A (en) 2017-05-11 2017-05-11 A kind of depth captures the method and device of mobile phone application runnability data

Country Status (1)

Country Link
CN (1) CN107273277A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108255729A (en) * 2018-01-24 2018-07-06 珠海金山网络游戏科技有限公司 A kind of mobile phone games automated testing method and system based on Unity platforms
CN110162687A (en) * 2019-05-06 2019-08-23 海马云(天津)信息技术有限公司 Data grab method and system in a kind of application of Android
CN113687870A (en) * 2020-05-15 2021-11-23 宇龙计算机通信科技(深圳)有限公司 Terminal operation optimization method and device, storage medium and terminal

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103399810A (en) * 2013-08-01 2013-11-20 北京安兔兔科技有限公司 Method and device for evaluating performance of mobile terminal and mobile terminal
CN103631703A (en) * 2012-08-21 2014-03-12 腾讯科技(深圳)有限公司 Software performance testing method and device in Android device
CN103810087A (en) * 2012-11-09 2014-05-21 腾讯科技(深圳)有限公司 Method and device for testing performance of application program
US20150234639A1 (en) * 2013-04-23 2015-08-20 Clearblade, Inc. System and Method for Creating a Development and Operational Platform for Mobile Applications
CN105204981A (en) * 2014-05-28 2015-12-30 北京奇虎科技有限公司 Application performance test method and device
CN106201864A (en) * 2016-06-27 2016-12-07 乐视控股(北京)有限公司 A kind of application programming interface API method of testing, device and mobile device
CN106535240A (en) * 2015-09-11 2017-03-22 飞思达技术(北京)有限公司 Mobile APP centralized performance analysis method based on cloud platform
CN106557424A (en) * 2016-11-18 2017-04-05 腾讯科技(深圳)有限公司 Internal storage testing method, measured terminal, test client and system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103631703A (en) * 2012-08-21 2014-03-12 腾讯科技(深圳)有限公司 Software performance testing method and device in Android device
CN103810087A (en) * 2012-11-09 2014-05-21 腾讯科技(深圳)有限公司 Method and device for testing performance of application program
US20150234639A1 (en) * 2013-04-23 2015-08-20 Clearblade, Inc. System and Method for Creating a Development and Operational Platform for Mobile Applications
CN103399810A (en) * 2013-08-01 2013-11-20 北京安兔兔科技有限公司 Method and device for evaluating performance of mobile terminal and mobile terminal
CN105204981A (en) * 2014-05-28 2015-12-30 北京奇虎科技有限公司 Application performance test method and device
CN106535240A (en) * 2015-09-11 2017-03-22 飞思达技术(北京)有限公司 Mobile APP centralized performance analysis method based on cloud platform
CN106201864A (en) * 2016-06-27 2016-12-07 乐视控股(北京)有限公司 A kind of application programming interface API method of testing, device and mobile device
CN106557424A (en) * 2016-11-18 2017-04-05 腾讯科技(深圳)有限公司 Internal storage testing method, measured terminal, test client and system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108255729A (en) * 2018-01-24 2018-07-06 珠海金山网络游戏科技有限公司 A kind of mobile phone games automated testing method and system based on Unity platforms
CN108255729B (en) * 2018-01-24 2021-12-31 珠海金山网络游戏科技有限公司 Mobile phone game automatic testing method and system based on Unity platform
CN110162687A (en) * 2019-05-06 2019-08-23 海马云(天津)信息技术有限公司 Data grab method and system in a kind of application of Android
CN113687870A (en) * 2020-05-15 2021-11-23 宇龙计算机通信科技(深圳)有限公司 Terminal operation optimization method and device, storage medium and terminal
CN113687870B (en) * 2020-05-15 2024-02-20 宇龙计算机通信科技(深圳)有限公司 Terminal operation optimization method and device, storage medium and terminal

Similar Documents

Publication Publication Date Title
CN108415739B (en) Hook method and device for dynamic link library function and storage medium
CN104811787B (en) Game video recording method and device
CN107273277A (en) A kind of depth captures the method and device of mobile phone application runnability data
CN109087239A (en) A kind of face image processing process, device and storage medium
CN105808060B (en) A kind of method and apparatus of playing animation
CN107357725B (en) Application testing method and device
CN109874312A (en) Method and apparatus for playing audio data
CN110222789A (en) Image-recognizing method and storage medium
CN106951780A (en) Beat again the static detection method and device of bag malicious application
CN104111847B (en) A kind of method and device for improving game running speed
CN110290421A (en) Frame per second method of adjustment, device, computer equipment and storage medium
CN110110263A (en) Webpage display process, device, terminal and storage medium
CN107888968A (en) Player method, device and the computer-readable storage medium of live video
CN109784351A (en) Data classification method, disaggregated model training method and device
CN105530239B (en) Multi-medium data acquisition methods and device
CN109346111A (en) Data processing method, device, terminal and storage medium
CN108132790A (en) Detect the method, apparatus and computer storage media of dead code
CN108279904A (en) Code compiling method and terminal
CN110704191A (en) Game optimization method, game optimization device and mobile terminal
CN107277226A (en) A kind of method and device for obtaining mobile phone application memory snapshot and Memory Allocation storehouse
CN109814930A (en) Application loading method, device and mobile terminal
CN110515688A (en) Page display method, device, terminal and storage medium
CN102624967A (en) Method and system for realizing file download on mobile terminal
CN104104783B (en) Mobile phone terminal and starting-up method thereof
CN104965737B (en) The acquisition methods and device updated the data

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

Application publication date: 20171020

RJ01 Rejection of invention patent application after publication