CN110377383B - Method, device and storage medium for checking performance parameters of application software - Google Patents
Method, device and storage medium for checking performance parameters of application software Download PDFInfo
- Publication number
- CN110377383B CN110377383B CN201910589349.6A CN201910589349A CN110377383B CN 110377383 B CN110377383 B CN 110377383B CN 201910589349 A CN201910589349 A CN 201910589349A CN 110377383 B CN110377383 B CN 110377383B
- Authority
- CN
- China
- Prior art keywords
- request
- application software
- real
- parameter
- time detection
- 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
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The application discloses a method, a device and a storage medium for checking performance parameters of application software, relates to the field of performance parameter detection, and is used for solving the problem that in the prior art, all performance parameters of the application software cannot be checked in real time. According to the method, by integrating the SDK plug-in into the application software, when the application software is opened, the SDK plug-in detects the performance parameters of the application software in real time and displays the floating window assembly on an interface; and if the performance parameters of the current application software are required to be checked, checking the performance parameters of the application software by clicking the floating window component. Therefore, the SDK plug-in realizes real-time checking of the performance parameters of the application software, and the performance parameters of the application software are not required to be detected through a plurality of tools.
Description
Technical Field
The present application relates to the field of performance parameter detection, and in particular, to a method, an apparatus, and a storage medium for checking performance parameters of application software.
Background
At present, the monitoring of the performance parameters by the application software is completed by the third-party application software, and different third-party application software is required for different performance parameters.
Therefore, in the prior art, the performance parameters of the application software cannot be checked in real time.
Disclosure of Invention
The embodiment of the application provides a method and a device for checking performance parameters of application software and a storage medium, which are used for solving the problem that in the prior art, each performance parameter of the application software cannot be checked in real time.
In a first aspect, an embodiment of the present application provides a method for viewing performance parameters of application software, where the method is applied to an android system client, and the method includes:
after receiving a request for opening application software, detecting performance parameters of the application software in real time, and displaying a floating window component in an initial state on an interface;
after a click request for clicking the floating window component is received, controlling the floating window component to display an operation interface of the performance parameters of the application software;
and if a display request aiming at any one performance parameter is received, displaying the real-time detection result of the performance parameter.
In a second aspect, an embodiment of the present application provides an apparatus for viewing performance parameters of application software, where the apparatus includes:
the detection module is used for detecting the performance parameters of the application software in real time after receiving a request for opening the application software and displaying the floating window assembly in an initial state on an interface;
the display module is used for controlling the floating window assembly to display an operation interface of the performance parameters of the application software after receiving a click request for clicking the floating window assembly;
and the first display module is used for displaying the real-time detection result of the performance parameter if a display request aiming at any one performance parameter is received.
In a third aspect, another embodiment of the present application further provides a computing device comprising at least one processor; and;
a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute a method for viewing performance parameters of application software provided by the embodiment of the application.
In a fourth aspect, another embodiment of the present application further provides a computer storage medium, where the computer storage medium stores computer-executable instructions for causing a computer to perform a method for viewing performance parameters of application software in the embodiments of the present application.
According to the method, the device and the storage medium for viewing the performance parameters of the application Software, the SDK (Software Development Kit) plug-in is integrated with the application Software, when the application Software is opened, the SDK plug-in detects the performance parameters of the application Software in real time, and displays the floating window component on an interface; and if the performance parameters of the current application software are required to be checked, checking the performance parameters of the application software by clicking the floating window component. Therefore, the real-time checking of each performance parameter of the application software is realized through the SDK plug-in.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1 is a schematic flow chart illustrating the process of viewing performance parameters of application software in an embodiment of the present application;
FIG. 2 is a first schematic view of a floating window assembly in an initial state according to an embodiment of the present disclosure;
FIG. 3 is a schematic view of the embodiment of the present application after clicking on the floating window assembly;
FIG. 4 is a second schematic view of the floating window assembly in the initial state according to the embodiment of the present application;
FIG. 5 is a schematic structural diagram illustrating viewing of application performance parameters in an embodiment of the present application;
fig. 6 is a schematic structural diagram of a computing device according to an embodiment of the present application.
Detailed Description
In order to solve the problem that in the prior art, each performance parameter of application software cannot be checked in real time, embodiments of the present application provide a method, an apparatus, and a storage medium for checking performance parameters of application software. In order to better understand the technical solution provided by the embodiment of the present application, the following brief description is made on the basic principle of the solution:
the performance parameters of the application software include network request, traffic usage, memory usage, CPU (Central Processing Unit) usage, frame dropping in the card, application exception, and other information. In the prior art, a third-party packet capturing tool is used for detecting a network request, whether the frame is lost due to the pause or not is distinguished through the setting of a developer tool, specific abnormal information of application software is obtained through third-party application software, and information such as CPU usage and memory usage is checked through a third-party SDK plug-in.
However, although the performance parameters of the application software can be detected in the prior art, it is difficult to view the performance parameters of the application software in real time due to the detection of the performance parameters of the application software by a plurality of tools.
In view of this, embodiments of the present application provide a method, an apparatus, and a storage medium for viewing performance parameters of application Software, where an application Software that wants to view performance parameters integrates an SDK (Software Development Kit) plug-in, and when the application Software is opened, the SDK plug-in detects performance parameters of the application Software in real time and displays a floating window component on an interface; and if the performance parameters of the current application software are required to be checked, checking the performance parameters of the application software by clicking the floating window component. Therefore, the SDK plug-in realizes real-time checking of the performance parameters of the application software, and the performance parameters of the application software are not required to be detected through a plurality of tools.
For the convenience of understanding, the technical solutions provided in the present application are further described below with reference to the accompanying drawings. FIG. 1 is a schematic view of a process for viewing application software performance parameters, including the following steps:
step 101: after a request for opening the application software is received, the performance parameters of the application software are detected in real time, and the suspended window assembly in the initial state is displayed on an interface.
In this embodiment of the present application, in order to implement real-time detection on the performance parameters of the application software, the SDK plug-in that is detected in real time needs to be integrated into the application software, so that after the application software is opened, the SDK plug-in integrated into the application software detects the performance parameters of the application software, and the SDK plug-in detects only the performance parameters of the integrated application software and does not detect other application software.
In one embodiment, the SDK plug-ins may be integrated on multiple application software, respectively. For example: the application software 1 and the application software 2 are integrated with SDK plug-ins; when the application software 1 is opened, the SDK plug-in integrated on the application software 1 starts to detect all performance parameters of the application software 1, and all performance parameters of the application software 2 cannot be detected; when the application software 2 is opened, the SDK plug-in integrated on the application software 2 starts to detect the performance parameters of the application software 2, and the performance parameters of the application software 1 are not detected.
Step 102: and after receiving a click request for clicking the floating window component, controlling the floating window component to display an operation interface of the performance parameters of the application software.
As shown in fig. 2, which is a schematic view of the floating window assembly in an initial state. And the floating window assembly in the initial state is positioned above the current application software and is displayed in a floating mode. And the floating window assembly may be configured to adjust transparency. As shown in fig. 3, which is a schematic diagram after clicking the floating window component. And the unfolded floating window assembly is still positioned above the application software and is displayed in a floating mode. The deployed floating window assembly will display viewable performance parameters; such as: network request, flow use, CPU use, memory use, stuck frame loss, abnormal list and the like, and corresponding performance parameters can be checked by clicking.
Step 103: and if a display request aiming at any one performance parameter is received, displaying the real-time detection result of the performance parameter.
Therefore, the SDK plug-in realizes real-time checking of the performance parameters of the application software, and the performance parameters of the application software are not required to be detected through a plurality of tools.
In the embodiment of the present application, in order to improve the user experience, some brief performance parameter information is added to the floating window assembly in the original state, which may be specifically implemented as steps A1-A2:
step A1: and displaying brief information of real-time detection results of the memory usage, the CPU usage and the flow usage on the floating window assembly in an initial state.
Step A2: and displaying the real-time detection result of the Catton lost frame through the background color of the floating window component in the initial state.
It should be noted that the execution sequence of step A1 to step A2 is not limited.
As shown in fig. 4, which is a schematic view of the floating window assembly in an initial state. The brief information of the real-time detection result used by the memory is the percentage of the used memory in the total amount of the memory, as shown in the figure, the memory: 57 percent; the brief information of the real-time detection result used by the CPU is the CPU shown in the figure, wherein the percentage of the used CPU in the total amount of the CPU is as follows: 29 percent; the brief information of the real-time detection result of the flow usage is the uploading speed as shown in the figure of the downloading network speed and the uploading network speed: 10k/s (kilobytes per second) and download speed: 200k/s. And displaying the percentage of the used memory to the total memory, the percentage of the used CPU to the total CPU, the downloading network speed and the uploading network speed in the floating window assembly.
In the embodiment of the present application, the previous karton frame loss situation is reflected by the background color of the floating window component in the initial state. For example: the background color green is reflected as no frame loss, and the background color red is reflected as frame loss. Of course, in order to further refine whether the frame loss is stuck, the frame loss in stuck can be explained by a plurality of background colors. For example: the background color is green and reflected as no frame loss, the background color is yellow and reflected as being close to the frame loss boundary, and the background color is red and reflected as frame loss. Of course, the situation of the stuck frame loss can also be explained by other background colors, which is not limited in the present application.
Therefore, when the user does not click on the floating window component, the performance parameters of the current application software can be still checked, and the user experience is improved.
In the embodiment of the present application, in order to display a floating window component on a smart terminal through an SDK plug-in, the floating window component may be displayed through an add view (addView) method under an interface window manager (windowmanager). The interface WINDOW manager may be obtained by acquiring an Android system SERVICE (Android _ SERVICE).
After describing how to view the performance parameters of the application software, how to detect the performance parameters of the application software through the SDK plug-in is further described below.
The performance parameters include network request, traffic usage, memory usage, CPU usage, stuck frame loss, application exception, and other information, and how to detect each performance parameter is described below.
1. Network request:
in the embodiment of the application, in order to realize real-time detection of the network request condition through the SDK plug-in, the network request condition can be determined through an Aspect Oriented Programming (AOP) mechanism; the method can be specifically implemented as steps B1-B3:
step B1: and determining two tangent points of the network request of the current interface before and after the call based on the AOP mechanism oriented to the tangent plane programming.
And step B2: and respectively making tangent planes for the two tangent points to obtain a request parameter of the network request before calling and a return parameter after calling.
And step B3: and taking the request parameter and the return parameter as a real-time detection result of the network request.
Therefore, the network request condition of the current application software is detected in real time through the AOP mechanism, and the network request is checked in real time by clicking the network request in the floating window component.
Further, in order to enable a research and development staff to edit a network request, in the embodiment of the present application, the network request may also be edited by intercepting a request parameter at a cut point, and the cut point before calling is taken as an example below, and may be specifically implemented as step C1 to step C3:
step C1: intercepting the request parameter at the tangent point before invocation.
And C2: and setting the request parameter to be in an editable state.
In the embodiment of the application, when the request parameter is in an editable state, a developer can modify and edit the request parameter.
And C3: and after receiving a completion request for completing editing, respectively cutting the two tangent points to obtain an edited request parameter of the network request before calling and a returned parameter corresponding to the edited request parameter after calling.
Similarly, the return parameters are intercepted at the called tangent point, and the return parameters are intercepted at the called tangent point, so that the return parameters can be edited; and after receiving a completion request for completing editing, respectively cutting the two tangent points to obtain a request parameter of the network request before calling and a return parameter of the editing after calling.
Therefore, by intercepting the cut-off, research and development personnel can edit the network request through the SDK plug-in, and the operation of the research and development personnel is simplified.
2. Flow usage:
in the embodiment of the application, in order to realize real-time detection of the traffic use condition through the SDK plug-in, the traffic use condition can be determined through Android traffic statistics (Android traffic statistics); the method can be specifically implemented as steps D1-D2:
step D1: and UID (user identification) positioning is carried out on the application software of the current interface through the Android TrafficStats class.
Step D2: and acquiring the uploading flow and/or the downloading flow of the positioned application software as a real-time detection result of the flow.
Therefore, the Android TrafficStats can be used for detecting the traffic service condition of the current application software in real time, and the traffic service can be checked in real time by clicking the traffic service in the floating window component.
3. Memory usage:
in the embodiment of the present application, in order to implement real-time detection of a memory usage condition through an SDK plug-in, the memory usage condition may be determined by a method of obtaining memory structure information (activtymanager. Getmemoryinfo) under an activity manager; the method can be specifically implemented as a step E1 to a step E3:
step E1: and reading information in a system file for storing the memory information, and acquiring the total memory of the client.
In one embodiment, the system file may be read through the/proc/meminfo path.
Step E2: the current available memory amount is obtained by a method for obtaining the memory structure information under the activity manager.
Step E3: and taking the total memory amount and the current available memory amount as a real-time detection result of the memory usage.
Thus, by means of the method of activitymanager.
4. The CPU uses:
in the embodiment of the application, in order to realize real-time detection of the CPU use condition through the SDK plug-in, the CPU use condition can be determined by reading a system file for storing CPU information; specifically, the method can be implemented as steps F1 to F2:
step F1: and reading information in a system file for storing CPU information, and determining the current use condition of the CPU.
The usage of the CPU may include currently used CPU resources and CPU total resources.
In one embodiment, system files may be read through the proc/stat path.
Step F2: and taking the use condition of the current CPU as a real-time detection result of the CPU use.
Therefore, the real-time detection of the CPU use condition of the current application software is realized by reading the system file, and the real-time checking of the CPU use is realized by clicking the CPU use in the floating window component.
5. And (3) stuck frame loss:
in the embodiment of the application, in order to realize real-time detection of the katton frame loss condition through the SDK plug-in, the detection can be determined through a callback method of interface frame refreshing (chord. Framecallback) under a message processor; the method can be specifically implemented as a step G1-a step G4:
step G1: and monitoring the current picture by using a callback method for refreshing an interface frame under the message processor.
Step G2: and calling back when the picture refreshing is detected, and recording the refreshing interval duration.
Step G3: and comparing the refreshing interval duration with a preset standard interval duration to determine whether the frame is lost due to pause.
In one embodiment, the preset standard interval duration may be 16 milliseconds.
Step G4: and taking the refresh interval duration and the result of whether the frame is lost or not as the real-time detection result of the frame loss.
Therefore, the method realizes real-time detection of the katton frame loss condition of the current application software by the chord graph.
6. Application exception:
in the embodiment of the application, in order to detect the application exception in real time through the SDK plug-in, the application exception can be determined through an exception capture mechanism (uncaughtecteinhandling); specifically, the method can be implemented as a step H1 to a step H3:
step H1: and initializing the UncaudexExceptionHandler after receiving a request for opening the application software.
Step H2: and if the application software is detected to be abnormal, acquiring a log file of the application software through the abnormal capturing mechanism.
The application process crash is the abnormal occurrence of the application software.
Step H3: and storing the log file into an exception list.
In the embodiment of the application, when the application software is abnormal, the log file is stored in the abnormal list before the application software is closed.
In the embodiment of the application, after the log file of the application software is obtained, the log file can be stored locally, or the log file can be uploaded to a server after being stored, and the server analyzes the application exception.
Therefore, real-time detection of the abnormal conditions of the application is realized through an abnormal capturing mechanism, and the log files with abnormal applications are checked in real time by clicking the abnormal list in the floating window component to check the stored log files.
Based on the same inventive concept, the embodiment of the application also provides a device for checking the performance parameters of the application software. As shown in fig. 5, the apparatus includes:
the detection module 501 is configured to, after receiving a request for opening application software, perform real-time detection on performance parameters of the application software, and display a floating window component in an initial state on an interface;
a display module 502, configured to control the floating window component to display an operation interface of the performance parameter of the application software after receiving a click request for clicking the floating window component;
a first display module 503, configured to display a real-time detection result of the performance parameter if a display request for any one of the performance parameters is received.
Further, if the performance parameter is a network request, a real-time detection result of the network request is obtained through the following devices:
the system comprises a tangent point determining module, a tangent point determining module and a tangent point determining module, wherein the tangent point determining module is used for determining two tangent points of a network request of a current interface before and after calling based on a section-oriented programming AOP mechanism;
the tangent plane module is used for respectively making tangent planes for the two tangent points to obtain a request parameter of the network request before calling and a return parameter after calling;
and the first result module is used for taking the request parameter and the return parameter as a real-time detection result of the network request.
Further, the apparatus further comprises:
the first intercepting module is used for the tangent plane module to respectively conduct tangent planes on the two tangent points to obtain a request parameter of the network request before calling and an interception request parameter at the tangent point before calling before the return parameter after calling;
the first setting module is used for setting the request parameter into an editable state;
and the tangent plane module is used for respectively making tangent planes on the two tangent points after receiving the completion request of the completion of the editing to obtain the request parameters of the editing of the network request before the calling and the return parameters corresponding to the request parameters of the editing after the calling.
Further, the apparatus further comprises:
the second interception module is used for the tangent plane module to respectively make tangent planes for the two tangent points to obtain a request parameter of the network request before calling and a return parameter after calling, and intercepting the return parameter at the tangent point after calling;
the second setting module is used for setting the return parameters to be in an editable state;
and the tangent plane module is used for respectively making tangent planes for the two tangent points after receiving the completion request of the completion of the editing to obtain the request parameters of the network request before the calling and the return parameters of the editing after the calling.
Further, if the performance parameter is flow usage, a real-time detection result of the flow usage is obtained through the following devices:
the positioning module is used for carrying out user identity identification (UID) positioning on the application software of the current interface through Android traffic statistics Android traffic classes;
and the second result module is used for acquiring the uploading flow and/or the downloading flow of the positioned application software as a real-time detection result of the flow use.
Further, if the performance parameter is memory usage, a real-time detection result of the memory usage is obtained through the following devices:
the first reading module is used for reading information in a system file for storing memory information and acquiring the total memory amount of the client;
the acquisition module is used for acquiring the current available memory amount by a method for acquiring the memory structure information under the activity manager;
and the third result module is used for taking the total memory amount and the current available memory amount as the real-time detection result of the memory usage.
Further, if the performance parameter is used by the CPU, a real-time detection result of the CPU usage is obtained by:
the second reading module is used for reading information in a system file for storing CPU information and determining the use condition of the current CPU;
and the fourth result module is used for taking the use condition of the current CPU as a real-time detection result of the CPU use.
Further, if the performance parameter is stuck frame loss, a real-time detection result of stuck frame loss is obtained through the following devices:
the monitoring module is used for monitoring the current picture through a callback method of interface frame refreshing under the message processor;
the call-back module is used for calling back when the picture refreshing is detected and recording the refreshing interval duration;
the comparison module is used for comparing the refreshing interval time length with a preset standard interval time length to determine whether to delay frame loss or not;
and the fifth result module is used for taking the refresh interval duration and the result of whether the frame is lost due to the pause as the real-time detection result of the frame loss due to the pause.
Further, the apparatus further comprises:
the initialization module is used for initializing an abnormal capturing mechanism UncaudexExceptionHandler after receiving a request for opening the application software;
the exception module is used for acquiring a log file of the application software through the exception capture mechanism if the application software is detected to be abnormal;
and the storage module is used for storing the log file into an exception list.
Further, the apparatus further comprises:
the second display module is used for displaying brief information of real-time detection results of the memory usage, the CPU usage and the flow usage on the floating window assembly in an initial state after the display module receives a click request for clicking the floating window assembly and before the floating window assembly is controlled to display an operation interface of performance parameters of the application software;
and the third display module is used for displaying the real-time detection result of the frame loss caused by the pause through the background color of the floating window component in the initial state.
Having described the method and apparatus for viewing application software performance parameters in accordance with exemplary embodiments of the present application, a computing device in accordance with another exemplary embodiment of the present application is described.
As will be appreciated by one skilled in the art, aspects of the present application may be embodied as a system, method or program product. Accordingly, various aspects of the present application may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.), or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
In some possible implementations, a computing device may include at least one processor, and at least one memory, according to embodiments of the application. The memory stores program code, and when the program code is executed by the processor, the program code causes the processor to execute steps 101 to 103 of the method for viewing the performance parameters of the application software according to the various exemplary embodiments of the present application described above in the present specification.
The computing device 60 according to this embodiment of the present application is described below with reference to fig. 6. The computing device 60 shown in fig. 6 is only an example and should not bring any limitations to the functionality or scope of use of the embodiments of the present application. The computing device may be, for example, a cell phone, a tablet computer, etc.
As shown in fig. 6, computing device 60 is embodied in the form of a general purpose computing device. Components of computing device 60 may include, but are not limited to: the at least one processor 61, the at least one memory 62, and a bus 63 connecting the various system components (including the memory 62 and the processor 61).
The memory 62 may include readable media in the form of volatile memory, such as Random Access Memory (RAM) 621 and/or cache memory 622, and may further include Read Only Memory (ROM) 623.
The memory 62 may also include a program/utility 625 having a set (at least one) of program modules 624, such program modules 624 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
In some possible embodiments, the aspects of the method for viewing application software performance parameters provided in the present application may also be implemented in the form of a program product including program code for causing a computer device to perform the steps of the method for viewing application software performance parameters according to various exemplary embodiments of the present application described above in this specification when the program product is run on the computer device, and perform the steps 101-103 as shown in fig. 1.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The method for viewing the performance parameters of the application software of the embodiment of the application can adopt a portable compact disc read only memory (CD-ROM) and comprises program codes, and can be run on a computing device. However, the program product of the present application is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user computing device, partly on the user's equipment, as a stand-alone software package, partly on the user computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
It should be noted that although several units or sub-units of the apparatus are mentioned in the above detailed description, such division is merely exemplary and not mandatory. Indeed, the features and functions of two or more of the units described above may be embodied in one unit, according to embodiments of the application. Conversely, the features and functions of one unit described above may be further divided into embodiments by a plurality of units.
Moreover, although the operations of the methods of the present application are depicted in the drawings in a sequential order, this does not require or imply that these operations must be performed in this order, or that all of the illustrated operations must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a manner that causes the instructions stored in the computer-readable memory to produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the preferred embodiments of the present application have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all changes and modifications that fall within the scope of the present application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.
Claims (10)
1. A method for viewing performance parameters of application software is applied to a client of an android system, the application software of the client is integrated with an SDK plug-in, and the method comprises the following steps:
after receiving a request for opening application software, the SDK plug-in detects performance parameters of the application software in real time and displays a floating window component in an initial state on an interface, wherein the performance parameters comprise network request, flow use, memory use, CPU use, stuck frame loss and application abnormity;
after receiving a click request for clicking a floating window assembly, controlling the floating window assembly to display an operation interface of the performance parameters of the application software;
if a display request aiming at any one performance parameter is received, displaying a real-time detection result of the performance parameter;
if the performance parameter is a network request, acquiring a real-time detection result of the network request by the following method:
determining two tangent points of a network request of a current interface before and after calling based on a tangent plane-oriented programming AOP mechanism;
intercepting request parameters at the tangent points before calling, setting the request parameters to be in an editable state, and after receiving a completion request for completing editing, respectively cutting the two tangent points to obtain the edited request parameters of the network request before calling and return parameters corresponding to the edited request parameters after calling; or; intercepting the return parameters at the called tangent points, setting the return parameters to be in an editable state, and after receiving a completion request of finishing editing, respectively cutting two tangent points to obtain a request parameter of the network request before calling and an edited return parameter after calling;
and taking the request parameter and the return parameter as a real-time detection result of the network request.
2. The method according to claim 1, wherein if the performance parameter is traffic usage, the real-time detection result of the traffic usage is obtained by:
carrying out user identity identification (UID) positioning on application software of a current interface through Android traffic statistics Android TrafficStats;
and acquiring the uploading flow and/or the downloading flow of the positioned application software as a real-time detection result of the flow.
3. The method of claim 1, wherein if the performance parameter is memory usage, obtaining a real-time detection result of the memory usage by:
reading information in a system file for storing memory information, and acquiring the total memory amount of a client;
acquiring the current available memory amount by a method for acquiring memory structure information under an activity manager;
and taking the total memory amount and the current available memory amount as real-time detection results of the memory usage.
4. The method of claim 1, wherein if the performance parameter is CPU usage, then obtaining real-time CPU usage detection results by:
reading information in a system file for storing CPU information, and determining the use condition of the current CPU;
and taking the use condition of the current CPU as a real-time detection result of the CPU use.
5. The method of claim 1, wherein if the performance parameter is katon frame loss, the real-time detection result of katon frame loss is obtained by:
monitoring the current picture by a callback method of interface frame refreshing under a message processor;
when detecting the refreshing of the picture, calling back and recording the refreshing interval duration;
comparing the refreshing interval duration with a preset standard interval duration to determine whether to block and lose frames;
and taking the refresh interval duration and the result of whether the frame is lost or not as the real-time detection result of the frame loss.
6. The method of claim 1, further comprising:
initializing an abnormal capturing mechanism UncaudexExceptionHandler after receiving a request for opening the application software;
if the application software is detected to be abnormal, acquiring a log file of the application software through the abnormal capturing mechanism;
and storing the log file into an exception list.
7. The method of claim 1, wherein after receiving a click request to click on a floating window component and before controlling the floating window component to display an operation interface of network information, the method further comprises:
displaying brief information of real-time detection results of the memory usage, the CPU usage and the flow usage on the floating window assembly in an initial state; and the number of the first and second groups,
and displaying the real-time detection result of the Catton lost frame through the background color of the floating window component in the initial state.
8. The device for viewing the performance parameters of the application software is applied to a client of an android system, the application software of the client is integrated with an SDK plug-in, and the device is applied to the SDK plug-in and comprises:
the detection module is used for detecting the performance parameters of the application software in real time after receiving a request for opening the application software and displaying the floating window assembly in an initial state on an interface, wherein the performance parameters comprise any combination of network request, flow use, memory use, CPU use, stuck frame loss and application abnormity;
the display module is used for controlling the floating window assembly to display an operation interface of the performance parameters of the application software after receiving a click request for clicking the floating window assembly;
the first display module is used for displaying the real-time detection result of the performance parameter if a display request aiming at any one performance parameter is received;
if the performance parameter is a network request, acquiring a real-time detection result of the network request through the following modules:
the system comprises a tangent point determining module, a tangent point determining module and a tangent point determining module, wherein the tangent point determining module is used for determining two tangent points of a network request of a current interface before and after calling based on a section-oriented programming AOP mechanism;
a section module, configured to intercept a request parameter at the tangent point before being called, set the request parameter in an editable state, and perform section cutting on the two tangent points after receiving a completion request for completing editing, to obtain an edited request parameter of the network request before being called and a returned parameter corresponding to the edited request parameter after being called; or; intercepting the return parameters at the called tangent points, setting the return parameters to be in an editable state, and after receiving a completion request of finishing editing, respectively cutting two tangent points to obtain a request parameter of the network request before calling and an edited return parameter after calling;
and the first result module is used for taking the request parameter and the return parameter as a real-time detection result of the network request.
9. A smart terminal readable medium storing smart terminal executable instructions for performing the method of any one of claims 1-7.
10. A computing device, comprising:
at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910589349.6A CN110377383B (en) | 2019-07-02 | 2019-07-02 | Method, device and storage medium for checking performance parameters of application software |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910589349.6A CN110377383B (en) | 2019-07-02 | 2019-07-02 | Method, device and storage medium for checking performance parameters of application software |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110377383A CN110377383A (en) | 2019-10-25 |
CN110377383B true CN110377383B (en) | 2023-02-03 |
Family
ID=68251584
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910589349.6A Active CN110377383B (en) | 2019-07-02 | 2019-07-02 | Method, device and storage medium for checking performance parameters of application software |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110377383B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104854561A (en) * | 2012-10-16 | 2015-08-19 | 思杰系统有限公司 | Application wrapping for application management framework |
CN107145489A (en) * | 2016-03-01 | 2017-09-08 | 阿里巴巴集团控股有限公司 | A kind of information statistical method and device of the client application based on cloud platform |
CN108733334A (en) * | 2018-03-13 | 2018-11-02 | 广东欧珀移动通信有限公司 | Image quality parameter adjusting method, device, terminal and storage medium |
CN109522021A (en) * | 2018-10-30 | 2019-03-26 | 咪咕文化科技有限公司 | Parameter callback processing method and device, electronic equipment and storage medium |
CN109783551A (en) * | 2019-01-08 | 2019-05-21 | 上海上湖信息技术有限公司 | Method for exhibiting data and system, readable storage medium storing program for executing |
CN109814848A (en) * | 2019-02-21 | 2019-05-28 | 广州卓远虚拟现实科技有限公司 | A kind of general dynamic engine of virtual reality |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101794224B (en) * | 2010-02-26 | 2013-11-13 | 中国人民解放军国防科学技术大学 | Software run-time property monitoring method based on property specification mode |
CN106547682A (en) * | 2015-09-21 | 2017-03-29 | 腾讯科技(深圳)有限公司 | The method and device of commissioning Mobile solution |
CN105182883B (en) * | 2015-10-14 | 2018-01-09 | 青岛天人环境股份有限公司 | A kind of safe examination method of gas holder intelligence control system based on APP |
CN107273124A (en) * | 2017-06-12 | 2017-10-20 | 北京奇虎科技有限公司 | The processing method of running software performance information, apparatus and system |
-
2019
- 2019-07-02 CN CN201910589349.6A patent/CN110377383B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104854561A (en) * | 2012-10-16 | 2015-08-19 | 思杰系统有限公司 | Application wrapping for application management framework |
CN107145489A (en) * | 2016-03-01 | 2017-09-08 | 阿里巴巴集团控股有限公司 | A kind of information statistical method and device of the client application based on cloud platform |
CN108733334A (en) * | 2018-03-13 | 2018-11-02 | 广东欧珀移动通信有限公司 | Image quality parameter adjusting method, device, terminal and storage medium |
CN109522021A (en) * | 2018-10-30 | 2019-03-26 | 咪咕文化科技有限公司 | Parameter callback processing method and device, electronic equipment and storage medium |
CN109783551A (en) * | 2019-01-08 | 2019-05-21 | 上海上湖信息技术有限公司 | Method for exhibiting data and system, readable storage medium storing program for executing |
CN109814848A (en) * | 2019-02-21 | 2019-05-28 | 广州卓远虚拟现实科技有限公司 | A kind of general dynamic engine of virtual reality |
Non-Patent Citations (3)
Title |
---|
"Proof Based Analytical Comparison of Energy Parameters between Android and iOS Platform for Heterogeneous Cloud Based Application";Payal Mittal.etc;《2016 Second International Conference on Computational Intelligence & Communication Technology (CICT)》;20160818;第325-331页 * |
"基于Android的智能医疗监控终端软件的开发";王璐;《中国优秀硕士学位论文全文数据库信息科技辑》;20170215;I138-1996 * |
"基于GIS的农机监控调度系统的设计";童维楗等;《电子技术与软件工程》;20171222;第192-193页 * |
Also Published As
Publication number | Publication date |
---|---|
CN110377383A (en) | 2019-10-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108900776B (en) | Method and apparatus for determining response time | |
US9990272B2 (en) | Test case generation for uncovered code paths | |
WO2019051948A1 (en) | Method, apparatus, server, and storage medium for processing monitoring data | |
CN107979506B (en) | Flow acquisition and cloud display system, method, device and equipment | |
US10216617B2 (en) | Automatically complete a specific software task using hidden tags | |
CN104462943A (en) | Non-intrusive performance monitoring device and method for service system | |
WO2021120544A1 (en) | Method and apparatus for debugging device | |
CN113792341A (en) | Privacy compliance automation detection method, device, equipment and medium for application program | |
US20180246776A1 (en) | Guided troubleshooting with autofilters | |
EP4160421A1 (en) | Method and apparatus for obtaining browser running data, and storage medium | |
CN112068932A (en) | Application program integration and monitoring method, device, system, equipment and medium | |
CN110377383B (en) | Method, device and storage medium for checking performance parameters of application software | |
CN117931576A (en) | Front-end data collection method and device and electronic equipment | |
CN104424098A (en) | Application test method and application testing device | |
CN112416734A (en) | Test method, device and storage medium | |
CN111258893A (en) | Mobile terminal application automatic testing device for randomly assembling transaction path | |
US10353801B2 (en) | Abnormal timing breakpoints | |
US11200138B1 (en) | Policy-based request tracing using a computer | |
CN115422052A (en) | Vehicle navigation app test system and method | |
CN110413153B (en) | False touch prevention method and device and storage medium | |
CN110262856B (en) | Application program data acquisition method, device, terminal and storage medium | |
CN114328090A (en) | Program monitoring method and device, electronic equipment and storage medium | |
CN114036523A (en) | Vulnerability shooting range automatic building method and device based on virtualization technology | |
US10169197B2 (en) | Temporary breakpoints during debug process | |
US10656986B2 (en) | Dynamically controlling runtime system logging based on end-user reviews |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |