CN104765689A - Method and device for conducting real-time supervision to interface performance data - Google Patents

Method and device for conducting real-time supervision to interface performance data Download PDF

Info

Publication number
CN104765689A
CN104765689A CN201510187621.XA CN201510187621A CN104765689A CN 104765689 A CN104765689 A CN 104765689A CN 201510187621 A CN201510187621 A CN 201510187621A CN 104765689 A CN104765689 A CN 104765689A
Authority
CN
China
Prior art keywords
time
target interface
interface
uri
execution
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.)
Granted
Application number
CN201510187621.XA
Other languages
Chinese (zh)
Other versions
CN104765689B (en
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.)
Guangzhou Huaduo Network Technology Co Ltd
Original Assignee
Guangzhou Huaduo Network 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 Guangzhou Huaduo Network Technology Co Ltd filed Critical Guangzhou Huaduo Network Technology Co Ltd
Priority to CN201510187621.XA priority Critical patent/CN104765689B/en
Publication of CN104765689A publication Critical patent/CN104765689A/en
Application granted granted Critical
Publication of CN104765689B publication Critical patent/CN104765689B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention discloses a method and device for conducting real-time supervision to interface performance data. The method comprises the steps of receiving a control and capture request sent by a user side, wherein the control and capture request carries a URL; analyzing the control and capture request, and obtaining a URI requested by the URL; when getting access to an objective interface of the URI, conducting statistics on the operation time of the objective interface in real time; generating the performance data of the operation time of the objective interface. By means of the method and device, an interface performance problemof an application program can be located rapidly.

Description

A kind of interface capability data supervise method and apparatus in real time
Technical field
The present invention relates to Internet technical field, particularly relate to a kind of interface capability data and supervise method and apparatus in real time.
Background technology
Current application program operationally, may occur that some interfaces or a certain method are moved problem slowly.For this problem, at present normally to the parameter detecting of the hardware aspect such as system CPU and internal memory, carry out monitoring and the analysis of performance with the motion daily record of coupling system, to locate the performance issue of physical interface.But, in the above-described techniques, be need the very strong developer of professional ability and need a large amount of energy of input and professional test technical ability just may locate the performance issue of physical interface.Visible, at present cannot the interface capability problem of position-location application rapidly.
Summary of the invention
Embodiments provide a kind of interface capability data and supervise method and apparatus in real time, can the interface capability problem of position-location application rapidly.
First aspect, a kind of interface capability data that the embodiment of the present invention provides supervise method in real time, comprising:
Request is caught in the control receiving user side transmission, and the described control request of catching carries uniform resource position mark URL;
Resolve the resource identifiers, URIs that URL request described in acquisition request is caught in described control;
When the target interface of accessing described URI accesses described URI, the working time of target interface described in real-time statistics;
Generate the performance data comprising the working time of described target interface.
Second aspect, the embodiment of the present invention provides a kind of interface capability data to supervise device in real time, comprising: receiving element, resolution unit, the first statistic unit and generation unit, wherein:
Described receiving element, request is caught in the control sent for receiving user side, and the described control request of catching carries uniform resource position mark URL;
Described resolution unit, catches the resource identifiers, URIs of URL request described in acquisition request for resolving described control;
Described first statistic unit, during for accessing described URI at the target interface of accessing described URI, the working time of target interface described in real-time statistics;
Described generation unit, for generating the performance data of the working time comprising described target interface.
In technique scheme, request is caught in the control receiving user side transmission, and the described control request of catching carries uniform resource position mark URL; Resolve the resource identifiers, URIs that URL request described in acquisition request is caught in described control; When the target interface of accessing described URI accesses described URI, the working time of target interface described in real-time statistics; Generate the performance data comprising the working time of described target interface.Like this under supervising in real time, long interface working time in application program can be navigated to rapidly, thus realize the interface capability problem of position-location application rapidly.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet that a kind of interface capability data that the embodiment of the present invention provides supervise method in real time;
Fig. 2 is the schematic flow sheet that another kind of interface capability data that the embodiment of the present invention provides supervise method in real time;
Fig. 3 and Fig. 4 is that the embodiment of the present invention provides optional performance data to represent schematic diagram;
Fig. 5 is the structural representation that a kind of interface capability data that the embodiment of the present invention provides supervise device in real time;
Fig. 6 is the structural representation that another kind of interface capability data that the embodiment of the present invention provides supervise device in real time;
Fig. 7 is the structural representation that another kind of interface capability data that the embodiment of the present invention provides supervise device in real time.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Refer to Fig. 1, Fig. 1 is the schematic flow sheet that a kind of interface capability data that the embodiment of the present invention provides supervise method in real time, as shown in Figure 1, comprises the steps:
Request is caught in the control that S101, reception user side send, and the described control request of catching carries URL(uniform resource locator) (Uniform Resoure Locator, URL).
Can be that above-mentioned user side is when running a certain application program, send above-mentioned control by this application program and catch request, caught by front-end control with request, such as: user side request server carries out control to the application program that user side runs and catches, to catch the performance data of each interface of this application program.
S102, resolve the resource identifier (UniformResource Identifie, URI) that URL request described in acquisition request is caught in described control.
S103, when accessing the target interface of described URI and accessing described URI, the working time of target interface described in real-time statistics.
Wherein, the working time of above-mentioned target interface can be that this target interface accesses the start time of above-mentioned URI and the difference of end time.In addition, due to above-mentioned be real-time statistics, the working time of outgoing interface can be sumed up so in time and accurately, to obtain the performance data of interface more quickly.
It should be noted that, the target interface in the embodiment of the present invention can be any interface in application program, and in addition, the interface in the embodiment of the present invention can be logic interfacing.
S104, generate and comprise the performance data of the working time of described target interface.
The performance data of the working time comprising target interface just can be generated by above-mentioned steps, in addition, in the present embodiment, can realize generating the performance data comprising the working time of each interface of application program by above-mentioned steps, thus long interface working time in application program can be navigated to rapidly, can also be in-problem interface by this interface position.
In addition, above-mentioned performance data can be Link performance data, this Link performance data can comprise the working time of each interface, the level of the method call between each interface internal and consuming time can also be comprised, and the level of other interfaces that interface relates to when accessing can also be comprised and consuming timely can to count on, the link of forming property data, thus the performance that more accurately and efficiently can embody each interface in application program, with aspect developing personnel optimization application better.
Optionally, said method can be applied to service equipment, in addition, above-mentioned user side can developer use user terminal, such as: personal computer (Personal Computer, PC), notebook computer, panel computer, mobile phone, electronic reader, telepilot, mobile unit, Web TV, wearable device etc. have the smart machine of network function.
In the present embodiment, request is caught in the control receiving user side transmission, and the described control request of catching carries uniform resource position mark URL; Resolve the resource identifiers, URIs that URL request described in acquisition request is caught in described control; When the target interface of accessing described URI accesses described URI, the working time of target interface described in real-time statistics; Generate the performance data comprising the working time of described target interface.Long interface working time in application program can be navigated to so rapidly, thus realize the interface capability problem of position-location application rapidly.
Refer to Fig. 2, Fig. 2 is the schematic flow sheet that another kind of interface capability data that the embodiment of the present invention provides supervise method in real time, as shown in Figure 2, comprises the steps:
Request is caught in the control that S201, reception user side send, and the described control request of catching carries uniform resource position mark URL.
S202, resolve the resource identifiers, URIs that URL request described in acquisition request is caught in described control.
S203, when accessing the target interface of described URI and accessing described URI, the working time of target interface described in real-time statistics.
S204, generate and comprise the performance data of the working time of described target interface.
Optionally, when the above-mentioned target interface accessing described URI accesses described URI, the step of the working time of target interface described in real-time statistics, can comprise:
When the target interface of accessing described URI accesses described URI, the execution time of each method that target interface described in real-time statistics calls, described target interface is called the working time of execution time summation as described target interface of each method.
In the present embodiment, said method can be the method performed in program.Such as: when getting above-mentioned URI, obtain the processor of this URI of process, before processor performs, perform the blocker that this processor is corresponding, to enter performance monitoring blocker, carry out method dynamic proxy, when request enters dynamic proxy method execution, namely during target interface call method, the current time is recorded, as the execution start time of method call, after Proxy Method executes, is deducted the difference of execution start time the complete time as this execution time of the method, and store the time that will record, such as: be stored to memory database.
In addition, in the present embodiment, the invoked number of times of each method can also be added up, and each invoked execution time, and each method that execution time altogether of each method that averaging time, described target interface that each method single performs call and described target interface call performance data such as invoked number of times within the unit interval can also be sumed up.Such exploitation can navigate to existing problems rapidly by the performance data of these methods or need the method for optimization.
Such as: generate the performance data comprising the working time of described target interface, comprising:
Generate the Link performance data of in the working time and following data comprising described target interface at least one:
Each method each method that invoked number of times and described target interface call within the unit interval invoked order within the unit interval that the execution time altogether of each method that the averaging time of the single execution of each method that the execution number of times of each method that the execution time of each method that described target interface calls, described target interface call, described target interface call, described target interface call, described target interface call.
Better by the method call link level between the inside of interface with specifically consuming timely to embody, to facilitate developer, method can be optimized by above-mentioned Link performance data.
In addition, can also add up each method in the present embodiment consuming time interface methodical always consuming time shared by ratio, and can also each method consuming time module always consuming time shared by ratio, and each method shared ratio consuming time at all control (Controller) entrance consuming time.Wherein, above-mentioned module can comprise one or more interface, and above-mentioned all control (Controller) entrance comprises one or more module.
Link performance data as shown in Figure 3 and Figure 4 specifically can be generated by above-mentioned statistics.Wherein, in figs. 3 and 4, above-mentioned total millisecond represents the time that current method performs altogether, above-mentioned total stopwatch shows the time that current method performs altogether, above-mentioned single represents the averaging time (unit: millisecond) that current method single performs, above-mentioned total degree represents the invoked total degree of current method, above-mentioned number of times/stopwatch shows invoked number of times in current method average 1 second, above-mentioned interface represents (all methods of this interface of current method ÷ consuming time are consuming time) × 100%, above-mentioned module represents (current method ÷ consuming time current block always consuming time) × 100%, above-mentioned whole expression (current method ÷ consuming time all Controller entrance is consuming time) × 100%, above-mentioned classification represents the type of current method, wherein, it is view layer that method can be divided into, control (Controller) layer, the method of business processing (service) layer and data (DAO) layer.
In addition, for any application, the Link performance data of above-mentioned generation can also comprise the interface name of each interface of application program, interface class, interface interchange total degree, separate run times, total run time and the average parameter such as consuming time.The performance data of each interface of application program integrally can be reflected, to navigate to the interface of existing problems or needs optimization rapidly by this performance data.
Wherein, the above-mentioned statistics to each method can use internal memory counter to add up, such as: said method can also comprise the steps:
Create internal memory counter;
Use the call number of each method that target interface calls described in described internal memory counters count, and the execution time of at every turn calling, and each method call order.
In addition, add up, to count the performance data of each interface in application program time above-mentioned counter can also be used for the number of run of each interface of application programs and run.
Optionally, when the above-mentioned target interface accessing described URI accesses described URI, the step of the working time of target interface described in real-time statistics, can comprise
When the target interface of accessing described target URL starts to perform, record current time is as the start time;
When described target interface terminates to perform, record current time is as the end time;
Using the execution time of the difference of described end time and described start time as described target interface.
Described method can also comprise:
Access in described URI process at described target interface, record the execution time that described target interface accesses at least one interface that described URI relates to, and the execution sequence of statistics at least one interface described.
Above-mentioned generation comprises the step of the performance data of the working time of described target interface, can comprise:
Generate the Link performance data comprising working time of described target interface, the execution time of described at least one interface of order and the execution sequence of at least one interface described.
Such as: access interface A can relate to interface B and interface C, wherein, have invoked again interface D inside interface B, then concrete execution is shown as follows:
Can when calling interface A starts in this sample embodiment, the record start time, and when calling interface B, the beginning of statistics calling interface B and end time, and record interface B call order be 1, the operation of record interface B is consuming time, and add up beginning and the end time of interface D, and record interface D call order be 2, the operation of record interface D is consuming time, and adds up beginning and the end time of interface C, and the operation of record interface C is consuming time, last at the end of interface A calls, the end of record (EOR) time.Thus the operation that can obtain above-mentioned interface is consuming time, and call number and call the performance datas such as order, to form Link performance data.
Optionally, the present embodiment can also comprise the steps:
S205, represent above-mentioned performance data in the mode of the page (web).
In addition, above-mentioned performance data can also be sent to above-mentioned user side by the present embodiment, uses user's real time inspection of user side to each interface to allow, and the performance data of each method.
Can realize for any interface (such as: web access interface) by above-mentioned steps, according to the application program entry that interface relates to, until called, calling of the method related to or interface, the start and end time of record its concrete order respectively, calling, thus form an access link, by data consuming time stored in internal memory, real-time exhibition is to developer.
In addition, in the present embodiment, statistics has three dimensions: 1, the statistics consuming time of total interface in whole day; 2, the method statistics consuming time of individual interface (by the hour); 3, the method statistics consuming time of individual interface (whole day).Thus more clearly can show the performance data of each interface of application program.
In the present embodiment, the basis of the embodiment shown in Fig. 1 adds the embodiment of plurality of optional, and the interface capability problem of position-location application rapidly can be realized.
Be apparatus of the present invention embodiment below, the method that apparatus of the present invention embodiment realizes for performing the inventive method embodiment one to two, for convenience of explanation, illustrate only the part relevant to the embodiment of the present invention, concrete ins and outs do not disclose, and please refer to the embodiment of the present invention one and embodiment two.
Refer to Fig. 5, Fig. 5 is the structural representation that a kind of interface capability data that the embodiment of the present invention provides supervise device in real time, as shown in Figure 5, comprising: receiving element 51, resolution unit 52, first statistic unit 53 and generation unit 54, wherein:
Receiving element 51, request is caught in the control sent for receiving user side, and the described control request of catching carries uniform resource position mark URL.
Can be that above-mentioned user side is when running a certain application program, send above-mentioned control by this application program and catch request, caught by front-end control with request, such as: user side request server carries out control to the application program that user side runs and catches, to catch the performance data of each interface of this application program.
Resolution unit 52, catches the resource identifiers, URIs of URL request described in acquisition request for resolving described control.
First statistic unit 53, during for accessing described URI at the target interface of accessing described URI, the working time of target interface described in real-time statistics.
Wherein, the working time of above-mentioned target interface can be that this target interface accesses the start time of above-mentioned URI and the difference of end time.In addition, due to above-mentioned be real-time statistics, the working time of outgoing interface can be sumed up so in time and accurately, to obtain the performance data of interface more quickly.
It should be noted that, the target interface in the embodiment of the present invention can be any interface in application program, and in addition, the interface in the embodiment of the present invention can be logic interfacing.
Generation unit 54, for generating the performance data of the working time comprising described target interface.
The performance data of the working time comprising target interface just can be generated by said units, in addition, in the present embodiment, can realize generating the performance data comprising the working time of each interface of application program by above-mentioned steps, thus long interface working time in application program can be navigated to rapidly, can also be in-problem interface by this interface position.
In addition, above-mentioned performance data can be Link performance data, this Link performance data can comprise the working time of each interface, the level of the method call between each interface internal and consuming time can also be comprised, and the level of other interfaces that interface relates to when accessing can also be comprised and consuming timely can to count on, the link of forming property data, thus the performance that more accurately and efficiently can embody each interface in application program, with aspect developing personnel optimization application better.
Optionally, said apparatus can be applied to service equipment, in addition, above-mentioned user side can developer use user terminal, such as: PC, notebook computer, panel computer, mobile phone, electronic reader, telepilot, mobile unit, Web TV, wearable device etc. have the smart machine of network function.
In the present embodiment, request is caught in the control receiving user side transmission, and the described control request of catching carries uniform resource position mark URL; Resolve the resource identifiers, URIs that URL request described in acquisition request is caught in described control; When the target interface of accessing described URI accesses described URI, the working time of target interface described in real-time statistics; Generate the performance data comprising the working time of described target interface.Long interface working time in application program can be navigated to so rapidly, thus realize the interface capability problem of position-location application rapidly.
Refer to Fig. 6, Fig. 6 is the structural representation that another kind of interface capability data that the embodiment of the present invention provides supervise device in real time, as shown in Figure 6, comprising: receiving element 61, resolution unit 62, first statistic unit 63 and generation unit 64, wherein:
Receiving element 61, request is caught in the control sent for receiving user side, and the described control request of catching carries uniform resource position mark URL.
Resolution unit 62, catches the resource identifiers, URIs of URL request described in acquisition request for resolving described control.
First statistic unit 63, during for accessing described URI at the target interface of accessing described URI, the working time of target interface described in real-time statistics.
Generation unit 64, for generating the performance data of the working time comprising described target interface.
Optionally, first statistic unit 63 may be used for when the target interface of accessing described URI accesses described URI, the execution time of each method that target interface described in real-time statistics calls, described target interface is called the working time of execution time summation as described target interface of each method.
In the present embodiment, said method can be the method performed in program.Such as: when getting above-mentioned URI, obtain the processor of this URI of process, before processor performs, perform the blocker that this processor is corresponding, to enter performance monitoring blocker, carry out method dynamic proxy, when request enters dynamic proxy method execution, namely during target interface call method, the current time is recorded, as the execution start time of method call, after Proxy Method executes, is deducted the difference of execution start time the complete time as this execution time of the method, and store the time that will record, such as: be stored to memory database.
In addition, in the present embodiment, the invoked number of times of each method can also be added up, and each invoked execution time, and each method that execution time altogether of each method that averaging time, described target interface that each method single performs call and described target interface call performance data such as invoked number of times within the unit interval can also be sumed up.Such exploitation can navigate to existing problems rapidly by the performance data of these methods or need the method for optimization.
Such as: the performance data that above-mentioned generation comprises the working time of described target interface can comprise:
Generate the Link performance data of in the working time and following data comprising described target interface at least one:
Each method each method that invoked number of times and described target interface call within the unit interval invoked order within the unit interval that the execution time altogether of each method that the averaging time of the single execution of each method that the execution number of times of each method that the execution time of each method that described target interface calls, described target interface call, described target interface call, described target interface call, described target interface call.
Better by the method call link level between the inside of interface with specifically consuming timely to embody, to facilitate developer, method can be optimized by above-mentioned Link performance data.
In addition, can also add up each method in the present embodiment consuming time interface methodical always consuming time shared by ratio, and can also each method consuming time module always consuming time shared by ratio, and each method shared ratio consuming time at all control (Controller) entrance consuming time.Wherein, above-mentioned module can comprise one or more interface, and above-mentioned all control (Controller) entrance comprises one or more module.
Link performance data as shown in Figure 3 and Figure 4 specifically can be generated by above-mentioned statistics.Wherein, in figs. 3 and 4, above-mentioned total millisecond represents the time that current method performs altogether, above-mentioned total stopwatch shows the time that current method performs altogether, above-mentioned single represents the averaging time (unit: millisecond) that current method single performs, above-mentioned total degree represents the invoked total degree of current method, above-mentioned number of times/stopwatch shows invoked number of times in current method average 1 second, above-mentioned interface represents (all methods of this interface of current method ÷ consuming time are consuming time) × 100%, above-mentioned module represents (current method ÷ consuming time current block always consuming time) × 100%, above-mentioned whole expression (current method ÷ consuming time all Controller entrance is consuming time) × 100%, above-mentioned classification represents the type of current method, wherein, it is view layer that method can be divided into, control (Controller) layer, the method of business processing (service) layer and data (DAO) layer.
In addition, for any application, the Link performance data of above-mentioned generation can also comprise the interface name of each interface of application program, interface class, interface interchange total degree, separate run times, total run time and the average parameter such as consuming time.The performance data of each interface of application program integrally can be reflected, to navigate to the interface of existing problems or needs optimization rapidly by this performance data.
Wherein, the above-mentioned statistics to each method can use internal memory counter to add up, such as: said apparatus can also comprise:
Creating unit 65, for creating internal memory counter;
Second statistic unit 66, for using the call number of each method that target interface calls described in described internal memory counters count, and the execution time of calling at every turn, and each method call order.
In addition, add up, to count the performance data of each interface in application program time above-mentioned counter can also be used for the number of run of each interface of application programs and run.
Optionally, first statistic unit 63 may be used for when the target interface of accessing described target URL starts to perform, record current time is as the start time, and during for terminating at described target interface to perform, record current time as the end time, and using the execution time of the difference of described end time and described start time as described target interface;
As shown in Figure 7, said apparatus can also comprise:
3rd statistic unit 67, for accessing in described URI process at described target interface, records the execution time that described target interface accesses at least one interface that described URI relates to, and the execution sequence of statistics at least one interface described.
Generation unit 64 may be used for generating comprise described target interface working time, the execution time of described at least one interface of order and the execution sequence of at least one interface described Link performance data.
In this embodiment, can the performance data of each interface in statistics application program rapidly, to navigate to interface problem rapidly.
In the present embodiment, the basis of the embodiment shown in Fig. 5 adds the embodiment of plurality of optional, and the interface capability problem of position-location application rapidly can be realized.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random access memory (Random Access Memory is called for short RAM) etc.
Above disclosedly be only present pre-ferred embodiments, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.

Claims (10)

1. interface capability data supervise a method in real time, it is characterized in that, comprising:
Request is caught in the control receiving user side transmission, and the described control request of catching carries uniform resource position mark URL;
Resolve the resource identifiers, URIs that URL request described in acquisition request is caught in described control;
When the target interface of accessing described URI accesses described URI, the working time of target interface described in real-time statistics;
Generate the performance data comprising the working time of described target interface.
2. the method for claim 1, is characterized in that, when the described target interface accessing described URI accesses described URI, the working time of target interface described in real-time statistics, comprising:
When the target interface of accessing described URI accesses described URI, the execution time of each method that target interface described in real-time statistics calls, described target interface is called the working time of execution time summation as described target interface of each method.
3. method as claimed in claim 2, it is characterized in that, described method also comprises:
Create internal memory counter;
Use the call number of each method that target interface calls described in described internal memory counters count, and the execution time of at every turn calling, and each method call order.
4. method as claimed in claim 3, it is characterized in that, described generation comprises the performance data of the working time of described target interface, comprising:
Generate the Link performance data of in the working time and following data comprising described target interface at least one:
Each method each method that invoked number of times and described target interface call within the unit interval invoked order within the unit interval that the execution time altogether of each method that the averaging time of the single execution of each method that the execution number of times of each method that the execution time of each method that described target interface calls, described target interface call, described target interface call, described target interface call, described target interface call.
5. the method for claim 1, is characterized in that, when the described target interface accessing described URI accesses described URI, the working time of target interface described in real-time statistics, comprises
When the target interface of accessing described target URL starts to perform, record current time is as the start time;
When described target interface terminates to perform, record current time is as the end time;
Using the execution time of the difference of described end time and described start time as described target interface;
Described method also comprises:
Access in described URI process at described target interface, record the execution time that described target interface accesses at least one interface that described URI relates to, and the execution sequence of statistics at least one interface described.
Described generation comprises the performance data of the working time of described target interface, comprising:
Generate the Link performance data comprising working time of described target interface, the execution time of described at least one interface of order and the execution sequence of at least one interface described.
6. interface capability data supervise a device in real time, it is characterized in that, comprising: receiving element, resolution unit, the first statistic unit and generation unit, wherein:
Described receiving element, request is caught in the control sent for receiving user side, and the described control request of catching carries uniform resource position mark URL;
Described resolution unit, catches the resource identifiers, URIs of URL request described in acquisition request for resolving described control;
Described first statistic unit, during for accessing described URI at the target interface of accessing described URI, the working time of target interface described in real-time statistics;
Described generation unit, for generating the performance data of the working time comprising described target interface.
7. device as claimed in claim 6, it is characterized in that, described first statistic unit is used for when the target interface of accessing described URI accesses described URI, the execution time of each method that target interface described in real-time statistics calls, described target interface is called the working time of execution time summation as described target interface of each method.
8. device as claimed in claim 7, it is characterized in that, described device also comprises:
Creating unit, for creating internal memory counter;
Second statistic unit, for using the call number of each method that target interface calls described in described internal memory counters count, and the execution time of calling at every turn, and each method call order.
9. device as claimed in claim 8, is characterized in that, described generation unit for generate comprise described target interface working time and following data in the Link performance data of at least one:
Each method each method that invoked number of times and described target interface call within the unit interval invoked order within the unit interval that the execution time altogether of each method that the averaging time of the single execution of each method that the execution number of times of each method that the execution time of each method that described target interface calls, described target interface call, described target interface call, described target interface call, described target interface call.
10. device as claimed in claim 6, it is characterized in that, described first statistic unit is used for when the target interface of accessing described target URL starts to perform, record current time is as the start time, and during for terminating at described target interface to perform, record current time as the end time, and using the execution time of the difference of described end time and described start time as described target interface;
Described device also comprises:
3rd statistic unit, for accessing in described URI process at described target interface, records the execution time that described target interface accesses at least one interface that described URI relates to, and the execution sequence of statistics at least one interface described.
Described generation unit comprises the Link performance data of working time of described target interface, the execution time of described at least one interface of order and the execution sequence of at least one interface described for generating.
CN201510187621.XA 2015-04-20 2015-04-20 A kind of interface capability data supervise method and apparatus in real time Active CN104765689B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510187621.XA CN104765689B (en) 2015-04-20 2015-04-20 A kind of interface capability data supervise method and apparatus in real time

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510187621.XA CN104765689B (en) 2015-04-20 2015-04-20 A kind of interface capability data supervise method and apparatus in real time

Publications (2)

Publication Number Publication Date
CN104765689A true CN104765689A (en) 2015-07-08
CN104765689B CN104765689B (en) 2018-09-21

Family

ID=53647533

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510187621.XA Active CN104765689B (en) 2015-04-20 2015-04-20 A kind of interface capability data supervise method and apparatus in real time

Country Status (1)

Country Link
CN (1) CN104765689B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106911666A (en) * 2017-01-04 2017-06-30 青岛海信移动通信技术股份有限公司 A kind of wearable smart machine and its message treatment method, system
CN107450994A (en) * 2017-06-28 2017-12-08 上海壹账通金融科技有限公司 Interface interchange method and system
CN107678955A (en) * 2017-09-22 2018-02-09 郑州云海信息技术有限公司 A kind of computational methods, device, equipment and the storage medium of functional interface time delay
CN108304302A (en) * 2017-12-22 2018-07-20 努比亚技术有限公司 A kind of interface merging method, equipment and computer readable storage medium
CN109144884A (en) * 2018-09-29 2019-01-04 平安科技(深圳)有限公司 Program error localization method, device and computer readable storage medium
CN110516170A (en) * 2018-07-06 2019-11-29 北京白山耘科技有限公司 A kind of method and device checking exception web access
CN110806968A (en) * 2018-08-06 2020-02-18 阿里巴巴集团控股有限公司 Application program running information acquisition method and device
CN111258867A (en) * 2015-12-30 2020-06-09 华为技术有限公司 Public cloud dial testing method and device
CN113377609A (en) * 2021-06-04 2021-09-10 广东好太太智能家居有限公司 System interface performance monitoring method and device and storage medium
CN113760529A (en) * 2021-01-15 2021-12-07 北京沃东天骏信息技术有限公司 Interface execution method, device, equipment and readable storage medium
CN115150301A (en) * 2022-07-31 2022-10-04 苏州浪潮智能科技有限公司 Method, system, equipment and medium for acquiring monitoring data by using interface

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050144591A1 (en) * 2003-12-30 2005-06-30 Banks Timothy W. Method and system for change management of interfaces in distributed computer systems
CN101727378A (en) * 2009-12-31 2010-06-09 深圳联友科技有限公司 Method and system for controlling stable operation of application service program
CN101876938A (en) * 2009-11-11 2010-11-03 北京神州泰岳软件股份有限公司 Message queue-based application software response time measuring method
CN102203835A (en) * 2008-10-31 2011-09-28 维里逊专利及许可公司 System and method for measuring interface utilization using policers
CN103197944A (en) * 2013-04-11 2013-07-10 腾讯科技(深圳)有限公司 Method for determining performance of process of application program and computer system
CN103345440A (en) * 2013-06-05 2013-10-09 深圳天珑无线科技有限公司 Statistical method and device of accumulated running time of electronic equipment and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050144591A1 (en) * 2003-12-30 2005-06-30 Banks Timothy W. Method and system for change management of interfaces in distributed computer systems
CN102203835A (en) * 2008-10-31 2011-09-28 维里逊专利及许可公司 System and method for measuring interface utilization using policers
CN101876938A (en) * 2009-11-11 2010-11-03 北京神州泰岳软件股份有限公司 Message queue-based application software response time measuring method
CN101727378A (en) * 2009-12-31 2010-06-09 深圳联友科技有限公司 Method and system for controlling stable operation of application service program
CN103197944A (en) * 2013-04-11 2013-07-10 腾讯科技(深圳)有限公司 Method for determining performance of process of application program and computer system
CN103345440A (en) * 2013-06-05 2013-10-09 深圳天珑无线科技有限公司 Statistical method and device of accumulated running time of electronic equipment and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
PYTHON自动化测试: "计算接口执行时间", 《HTTP://WWW.JIANSHU.COM/P/D8A508E2E3E6》 *

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111258867A (en) * 2015-12-30 2020-06-09 华为技术有限公司 Public cloud dial testing method and device
CN106911666A (en) * 2017-01-04 2017-06-30 青岛海信移动通信技术股份有限公司 A kind of wearable smart machine and its message treatment method, system
CN107450994B (en) * 2017-06-28 2020-02-18 深圳壹账通智能科技有限公司 Interface calling method and system
CN107450994A (en) * 2017-06-28 2017-12-08 上海壹账通金融科技有限公司 Interface interchange method and system
WO2019000626A1 (en) * 2017-06-28 2019-01-03 上海壹账通金融科技有限公司 Interface invoking method, system, electronic device and computer readable storage medium
CN107678955A (en) * 2017-09-22 2018-02-09 郑州云海信息技术有限公司 A kind of computational methods, device, equipment and the storage medium of functional interface time delay
CN107678955B (en) * 2017-09-22 2021-02-23 苏州浪潮智能科技有限公司 Method, device and equipment for calculating time delay of functional interface and storage medium
CN108304302B (en) * 2017-12-22 2021-08-24 努比亚技术有限公司 Interface merging method, equipment and computer readable storage medium
CN108304302A (en) * 2017-12-22 2018-07-20 努比亚技术有限公司 A kind of interface merging method, equipment and computer readable storage medium
CN110516170B (en) * 2018-07-06 2020-04-28 北京白山耘科技有限公司 Method and device for checking abnormal web access
CN110516170A (en) * 2018-07-06 2019-11-29 北京白山耘科技有限公司 A kind of method and device checking exception web access
CN110806968A (en) * 2018-08-06 2020-02-18 阿里巴巴集团控股有限公司 Application program running information acquisition method and device
CN110806968B (en) * 2018-08-06 2024-04-09 阿里巴巴集团控股有限公司 Application program running information acquisition method and device
CN109144884A (en) * 2018-09-29 2019-01-04 平安科技(深圳)有限公司 Program error localization method, device and computer readable storage medium
CN113760529A (en) * 2021-01-15 2021-12-07 北京沃东天骏信息技术有限公司 Interface execution method, device, equipment and readable storage medium
CN113377609A (en) * 2021-06-04 2021-09-10 广东好太太智能家居有限公司 System interface performance monitoring method and device and storage medium
CN115150301A (en) * 2022-07-31 2022-10-04 苏州浪潮智能科技有限公司 Method, system, equipment and medium for acquiring monitoring data by using interface
CN115150301B (en) * 2022-07-31 2023-07-14 苏州浪潮智能科技有限公司 Method, system, equipment and medium for acquiring monitoring data by using interface

Also Published As

Publication number Publication date
CN104765689B (en) 2018-09-21

Similar Documents

Publication Publication Date Title
CN104765689A (en) Method and device for conducting real-time supervision to interface performance data
US9584364B2 (en) Reporting performance capabilities of a computer resource service
CN109062780B (en) Development method of automatic test case and terminal equipment
CN102999314A (en) Immediate delay tracker tool
US20150046512A1 (en) Dynamic collection analysis and reporting of telemetry data
Hunt et al. Java performance
CN102915269B (en) Method analyzed in the general journal of a kind of B/S software system
CN110442712B (en) Risk determination method, risk determination device, server and text examination system
CN110020339B (en) Webpage data acquisition method and device based on non-buried point
CN111338901A (en) Redis monitoring method, Redis monitoring device and terminal
WO2013049853A1 (en) Analytics driven development
US10360140B2 (en) Production sampling for determining code coverage
CN103729446A (en) Processing method and device for user operation data and server
US9317416B2 (en) Merging automated testing reports
CN109428776B (en) Website traffic monitoring method and device
WO2013091904A1 (en) Method and system to measure user engagement with content through event tracking on the client side
US20200225927A1 (en) Methods and systems for automating computer application tasks using application guides, markups and computer vision
CN109670112A (en) A kind of generation method, device, storage medium and the terminal of user's portrait ID
US20180337841A1 (en) Enhanced component latency tracking
CN114428705A (en) Network data monitoring method, device, equipment and storage medium
CN110311806A (en) A kind of mobile applications interface operating lag diagnostic method, system and terminal
CN104426708A (en) Method and system for executing security detection service
CN109597743A (en) Page circle choosing method, click volume statistical method and relevant device
CN114462030A (en) Privacy policy processing and evidence obtaining method, device, equipment and storage medium
CN114117289A (en) Browser operation data acquisition method and device and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 510000, Guangdong Province, Guangzhou, Panyu District Town, Huambo business district, Wanda Plaza, block B1, 28 floor

Applicant after: Guangzhou Huaduo Network Technology Co., Ltd.

Address before: 510655, Guangzhou, Whampoa Avenue, No. 2, creative industrial park, building 3-08,

Applicant before: Guangzhou Huaduo Network Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant