CN107622000A - A kind of collection of application crash information and report method, device - Google Patents

A kind of collection of application crash information and report method, device Download PDF

Info

Publication number
CN107622000A
CN107622000A CN201710845589.9A CN201710845589A CN107622000A CN 107622000 A CN107622000 A CN 107622000A CN 201710845589 A CN201710845589 A CN 201710845589A CN 107622000 A CN107622000 A CN 107622000A
Authority
CN
China
Prior art keywords
information
application
crash
application crash
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710845589.9A
Other languages
Chinese (zh)
Inventor
吴迪
程剑锋
袁连松
马宝岩
王孝满
朱孝瑾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information 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 Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201710845589.9A priority Critical patent/CN107622000A/en
Publication of CN107622000A publication Critical patent/CN107622000A/en
Pending legal-status Critical Current

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a kind of collection of application crash information and report method, device.One embodiment of this method includes:The user of the current page of timing acquiring application program browses positional information, and after the operation of the collection is performed every time, and positional information is browsed according to when time user of collection browses the user that updating location information deposited;When the application crash, the essential information of the application crash is gathered by default crash log sampling instrument;User according to currently preserving browses positional information and the essential information generation application crash information of the application crash, then preserves the application crash information.The particular location coordinate for the Web page that user the browses when embodiment is able to record and reports collapse generation, so as to fully collect the data of application crash, the particular location for the Web page that user is browsed carries out precise positioning to propose recovery scenario when being easy to web developer to collapse generation.

Description

A kind of collection of application crash information and report method, device
Technical field
The present invention relates to collection and the side of reporting of field of computer technology, more particularly to a kind of application crash information Method, device, electronic equipment, computer-readable medium.
Background technology
The App (application program) being currently running in iOS operating systems is usual after collapse (" being moved back using sudden strain of a muscle ") occurs Stack information when collapsing generation, facility information etc. can be reported to server, so that developer consults, developer passes through The BUG being previously present (leak) can be positioned and repaired in the version iteration of next time by these data reported.
The mode for collecting crash info at present has two kinds:First, collected by official's collapse of Apple Inc. to complete;Two It is that selection collapses collection and analysis business to collect data using third party.The data collected by above two method, its content one As include:Collapse time of origin, App versions and build (version structure) numbers, system version, device type, App the startup time, Type of error, collapse thread dispatching stack information etc..Consideration based on versatility, third party collapse the SDK (softwares for collecting and surveying business Development kit) and official of Apple Inc. crash data be collect some basis common information.
In process of the present invention is realized, inventor has found that at least there are the following problems in the prior art:Existing collapse letter Cease existence information when collection scheme collects crash info and collect the problem of insufficient.
The content of the invention
In view of this, the embodiment of the present invention provides collection and report method, device, the electricity of a kind of application crash information Sub- equipment, computer-readable medium, the particular location coordinate for the Web page that user browses when being able to record and reporting collapse generation, So as to fully collect the data of application crash, the Web page that user is browsed when being easy to web developer to collapsing generation The particular location in face carries out precise positioning to propose recovery scenario.
To achieve the above object, a kind of one side according to embodiments of the present invention, there is provided application crash information Collection method.
A kind of collection method of application crash information, including:The user of the current page of timing acquiring application program Positional information is browsed, and after the operation of the collection is performed every time, positional information is browsed more according to as time user of collection The new user deposited browses positional information;When the application crash, gathered by default crash log sampling instrument The essential information of the application crash;User according to currently preserving browses positional information and the application crash Essential information generates application crash information, then preserves the application crash information.
Alternatively, the essential information includes:The relevant information of application crash, the relevant information of application program, answer The relevant information of equipment where program.
Alternatively, the page is Web page, and the user browses positional information and browses the inclined of position correspondence for user Move coordinate information.
Another aspect according to embodiments of the present invention, there is provided a kind of report is collapsed using the application program of the embodiment of the present invention The method for the application crash information that the collection method for information of bursting is collected.
A kind of method for the application crash information for reporting the collection method using application crash information to collect, bag Include:After application program is restarted, by collected application crash information reporting to server.
Alternatively, by before collected application crash information reporting to server, in addition to:Compress and encrypt The application crash information.
Alternatively, by after collected application crash information reporting to server, in addition to:Receive the clothes The reported result that business device returns, and collected application crash information is handled according to the reported result, wherein:Work as institute Reported result is stated to report success, then removes collected application crash information;When the reported result is above to report lost property to the authorities Lose, then retain collected application crash information, the collection is reported afterwards to restart the application program again Application crash information.
A kind of another aspect according to embodiments of the present invention, there is provided collection device of application crash information.
A kind of collection device of application crash information, including:Positional information acquisition module, for timing acquiring application The user of the current page of program browses positional information, and after the operation of the collection is performed every time, according to when time collection User browse the user that updating location information has been deposited and browse positional information;Essential information acquisition module, for when the application During program crashing, the essential information of the application crash is gathered by default crash log sampling instrument;Crash info Preserving module, the essential information generation for browsing positional information and the application crash according to the user currently preserved should With program crashing information, the application crash information is then preserved.
Alternatively, the essential information includes:The relevant information of application crash, the relevant information of application program, answer The relevant information of equipment where program.
Alternatively, the page is Web page, and the user browses positional information and browses the inclined of position correspondence for user Move coordinate information.
Another aspect according to embodiments of the present invention, there is provided a kind of report is collapsed using the application program of the embodiment of the present invention The device for the application crash information that the collection device for information of bursting is collected.
A kind of application program for reporting the collection device using the application crash information of the embodiment of the present invention to collect collapses The device for information of bursting, including:Crashing information report module, after restarting in application program, journey is applied by collected Sequence crashing information report is to server.
Alternatively, in addition to encrypting module is compressed, for compressing and encrypting the application crash information.
Alternatively, in addition to reported result receiving module, the reported result returned for receiving the server, and according to The reported result handles collected application crash information, wherein:When the reported result to report success, then clearly Except collected application crash information;When the reported result is reports failure, then retain and collected apply journey Sequence crash info, collected application crash information is reported afterwards to restart the application program again.
Another aspect according to embodiments of the present invention, there is provided a kind of electronic equipment.
A kind of electronic equipment, including:One or more processors;Memory, for storing one or more programs, work as institute When stating one or more programs by one or more of computing devices so that one or more of processors realize application The collection method of program crashing information or the application crash for reporting the collection method using application crash information to collect The method of information.
A kind of another aspect according to embodiments of the present invention, there is provided computer-readable medium.
A kind of computer-readable medium, is stored thereon with computer program, it is characterised in that described program is held by processor The collection method of application crash information is realized during row or reports what the collection method using application crash information was collected The method of application crash information.
One embodiment in foregoing invention has the following advantages that or beneficial effect:The current page of timing acquiring application program The user in face browses positional information, and after each operation for performing collection, position letter is browsed according to as time user of collection The user that breath renewal has been deposited browses positional information;When application crash, gathered by default crash log sampling instrument The essential information of application crash;User according to currently preserving browses positional information and the essential information of application crash Application crash information is generated, then preserves the application crash information.In addition, after application program is restarted, will receive The application crash information reporting of collection is to server.The tool for the Web page that user browses when being able to record and reporting collapse generation Body position coordinate, so as to fully collect the data of application crash, user institute when being easy to web developer to collapse generation The particular location of the Web page browsed carries out precise positioning to propose recovery scenario, enriches the content that collapse is collected and reported.
Further effect adds hereinafter in conjunction with embodiment possessed by above-mentioned non-usual optional mode With explanation.
Brief description of the drawings
Accompanying drawing is used to more fully understand the present invention, does not form inappropriate limitation of the present invention.Wherein:
Fig. 1 is that the embodiment of the present invention can apply to exemplary system architecture figure therein;
Fig. 2 is the key step schematic diagram of the collection method of application crash information according to embodiments of the present invention;
Fig. 3 is the key step schematic diagram of the method for reporting application crash information according to embodiments of the present invention;
Fig. 4 is collection according to embodiments of the present invention and reports the preferred whole process schematic diagram of application crash information;
Fig. 5 is the main modular schematic diagram of the collection device of application crash information according to embodiments of the present invention;
Fig. 6 is the main modular schematic diagram of the device for reporting application crash information according to embodiments of the present invention;
Fig. 7 is adapted for the structural representation of the computer system of the electronic equipment for realizing the embodiment of the present invention.
Embodiment
The one exemplary embodiment of the present invention is explained below in conjunction with accompanying drawing, including the various of the embodiment of the present invention Details should think them only exemplary to help understanding.Therefore, those of ordinary skill in the art should recognize Arrive, various changes and modifications can be made to the embodiments described herein, without departing from scope and spirit of the present invention.Together Sample, for clarity and conciseness, the description to known function and structure is eliminated in following description.
The content of Web page generally has substantial amounts of displaying content, in order to which Consumer's Experience considers generally will not all be shown in The visibility region of current screen, sightless region needs user just to be browsed by slip gesture, and sends out in this process Collapse is given birth to for web developer, if only feeding back to their current URL informations, although can navigate to is Which page is collapsed, but research staff still can not learn is collapsed in which block region of this page, The coordinate position that user is reached by slip gesture when collapsing.Existing crash info collection scheme can be collected into Some routine informations when collapse occurs, but still have some blind areas of collapse in log recording, for example opened carrying out Hybrid Hair (a kind of iOS development schemes of mixed developing, is developed with web front end such as Native exploitations and mixed, on the basis of exploitation native applications Upper embedded WebView, overall architecture are provided by native applications) when, interacting between Native and Web is frequently referred to, and use The problem of collapse is to have to face is occurring during browsing Web page for family.
Fig. 1 shows that the embodiment of the present invention can apply to exemplary system architecture 100 therein.
As shown in figure 1, system architecture 100 can include terminal device 101,102,103, network 104 and server 105). Network 104 between terminal device 101,102,103 and server 105 provide communication link medium.Network 104 can be with Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can collect application crash information with using terminal equipment 101,102,103, and pass through network 104 and clothes Business device 105 interacts, to report the application crash information of collection or the reported result of the return of the reception server 105 etc..Terminal Various telecommunication customer end applications can be installed in equipment 101,102,103, for example, the application of shopping class, web browser applications, Searching class application, JICQ, mailbox client, social platform software etc..
Terminal device 101,102,103 can have a display screen and a various electronic equipments that supported web page browses, bag Include but be not limited to smart mobile phone, tablet personal computer, pocket computer on knee and desktop computer etc..
Server 105 can be to provide the server of various services, such as utilize terminal device 101,102,103 to user Collect and report application crash information to provide the back-stage management server supported.Back-stage management server can be to receiving The data such as application crash information the processing such as be collected, and result (such as reported result) is fed back into terminal and set It is standby.
It should be noted that the collection for the application crash information that the embodiment of the present invention is provided and report method are general Performed by terminal device 101,102,103, correspondingly, the collection of application crash information and reporting device are generally positioned at end In end equipment 101,102,103.
It should be understood that the number of the terminal device, network and server in Fig. 1 is only schematical.According to realizing need Will, can have any number of terminal device, network and server.
Fig. 2 is the key step schematic diagram of the collection method of application crash information according to embodiments of the present invention.
As shown in Fig. 2 the collection method of the application crash information of the embodiment of the present invention mainly includes the steps S201 to step S203.
Step S201:The user of the current page of timing acquiring application program browses positional information, and is adopted in each execution After the operation of collection, positional information is browsed according to when time user of collection browses the user that updating location information deposited.
Wherein, application program can be mobile device App, and the mobile device can be to be provided with the mobile phone of iOS operating systems, put down Plate apparatus such as computer.The page can be Web page, and it can be the skew that user browses position correspondence that user, which browses positional information, Coordinate information.
Specifically, can pre-set a timer, the timer be used for when user opens App according to it is predetermined when Between the page that currently shows of interval scan whether be Web page, predetermined time interval can be according to research and development demand and App Energy progress is self-defined, such as can make a reservation in App whole life cycles (from App start every 1 second run-down, timer Start, exit end to App) in be always in work.It is Web page that if timer, which is scanned to current page, immediately The WebView (network view) of Web page ScrollView (rolling view) attribute is obtained, then obtaining should The ContentOffset attributes of ScrollView attributes, ScrollView rolling can be obtained by ContentOffset attributes Dynamic position (offset coordinates value).Wherein, WebView be Apple Inc. provide be built in UIKit frameworks be used for load net One control of page, ScrollView attributes are that being built in UIKit frameworks for Apple Inc.'s offer is used to show slidably One control of view, ContentOffset attributes are that an offer current page in ScrollView controls is relatively primitive The attribute of the offset of coordinate, its form are (x, y).UIKit frameworks provide a series of Class (class) to establish and manage User interface (UI) interfaces of iOS application programs, application object, event control, drawing model, window, view and it is used for Control the interface of touch-screen etc..
The slip gesture used in usual M pages (for the Web page of handset customization) only supports vertical direction to slide, therefore this hair For bright embodiment by taking the offset coordinates information for gathering vertical direction as an example, that is, the offset coordinates collected are the form of (0, y), Web Developer can navigate to the particular location of the page that user browses when App collapses occur according to y value, and software vulnerability is answered Now and repaired.Specifically, after the user of execution collection current page browses the operation of positional information every time, y is recorded The offset coordinates in direction, and offset coordinates output is saved in local disk, while timer is at predetermined intervals Continue to scan on current Web page and obtain the offset coordinates in y directions, and on the offset coordinates data cover by recording every time The data once recorded, to ensure that the data that recorded are the newest offset coordinates for the Web page that user currently browses, until Web Page is closed, and timer stops the record to the offset coordinates of the Web page.Assuming that user App when browsing the Web page collapses Burst, then, by setting suitable trace interval for timer, it can make it that the timer that is preserved in local disk is last The offset coordinates once got are closely in the Web page position that the App time point users collapsed are browsing.
It should be noted that on the one hand, it is contemplated that user browses the accuracy of position when the App of collection collapses, fixed When device scanning time interval can not be long, on the other hand, it is contemplated that the sweep spacing of App performance timer can not be set too Short, suitable trace interval is specifically as follows 1 second or other self-defining values, when the sweep spacing of timer is arranged to 1 second When, the user collected browses positional information and true excursions coordinate only exists small error, when being collapsed for positioning App The influence that user browses position is very small, and is enough to make developer navigate to the real generation position of collapse.
It will be appreciated by persons skilled in the art that the embodiment of the present invention is not limited to gather the offset coordinates letter of vertical direction Breath, it is readily applicable to gather the offset coordinates information of horizontal direction or gathers the offset coordinates information of any direction, when adopting When collecting the offset coordinates information of horizontal direction, the offset coordinates in record x directions, the offset coordinates collected are the form of (x, 0); When the offset coordinates information of collection any direction, the offset coordinates collected are the form of (x, y).
Step S202:When application crash, pass through default crash log sampling instrument acquisition applications program crashing Essential information.
Wherein, crash log sampling instrument is specifically as follows KSCrash.KSCrash is that one kind is opened based on iOS operating systems The third party of hair increases income storehouse, for collecting relevant information when collapsing during App uses, and generates crash log.
The essential information of application crash mainly includes:The relevant information of application crash, the correlation of application program The relevant information of equipment where information, application program.Specifically, the relevant information of application crash can include collapse (call stack is the App a certain tools on a time point determined upon execution for time, type of error, collapse thread dispatching stack information Function call order on body thread) etc., wherein type of error type such as array overflow error, thread handoff error;Should It can include application program (App) version number, App versions structure sequence number, application program launching time with the relevant information of program Etc. information;The relevant information of equipment where application program can include the information such as operating system version number, device type.
Step S203:User according to currently preserving browses positional information and the essential information generation of application crash should With program crashing information, the application crash information is then preserved.
KSCrash allows user to add self-defined information, can be by the Web page page of collection when application crash The coordinate information of skew adds to the essential information of the application crash of KSCrash collections, to generate application crash letter Breath.Specifically, the coordinate information of the Web page page offset of collection can be increased to the placement application program that KSCrash is provided to collapse In the data acquisition system of routed essential information, to generate application crash information, and by the application crash information of the generation It is saved in local disk.
In addition, when preserving application crash information, the day of some page normal operations collected can also be preserved Will information.The log information of the normal program operation can be the browsed non-present Web page of user that timing acquiring arrives Positional information is browsed, whether the log information of these page normal operations can be set according to the needs of research staff collects.When When not collecting the log information of these page normal operations, data screening can be passed through when preserving application crash information The log information for not preserving these page normal operations is set.
Fig. 3 is the key step schematic diagram of the method for reporting application crash information according to embodiments of the present invention.
The application crash information reported of the embodiment of the present invention can pass through the application crash information shown in Fig. 2 Collection method collect obtain.As shown in figure 3, the method for reporting application crash information of the embodiment of the present invention mainly includes Steps S301 to step S304.
Step S301:The user of the current page of timing acquiring application program browses positional information, and is adopted in each execution After the operation of collection, positional information is browsed according to when time user of collection browses the user that updating location information deposited.
It can be the offset coordinates information that user browses position correspondence that user, which browses positional information,.
Step S302:When application crash, pass through default crash log sampling instrument acquisition applications program crashing Essential information.
Default crash log sampling instrument is specifically as follows KSCrash.
Step S303:User according to currently preserving browses positional information and the essential information generation of application crash should With program crashing information, the application crash information is then preserved.
The coordinate information of the Web page page offset of collection can be increased to the placement application crash that KSCrash is provided Essential information data acquisition system in, to generate application crash information, and the application crash information of the generation is protected It is stored to local disk.
Step S301 to step S303 is the process for collecting application crash information to be reported, therein to implement in detail Process (step S201 to step S203 in corresponding diagram 2) in the embodiment of the present invention shown in Fig. 2 has been discussed in detail, Here is omitted.
Step S304:After application program is restarted, by the application crash information reporting of collection to server.
After application program is restarted, local disk is read, by the information reporting in the data acquisition system to server.Generally In the case of, when App collapses generation, App is unstable and uncontrollable, and application crash is reported when App collapses and occurred Information can be influenceed by many factors, and probability of failure is very big, therefore, need that application crash information first is stored in into this earth magnetism Disk, report the application crash information again when user restarts App.When App is restarted, first check for whether local disk has The application crash information of preservation, if so, then sending daily record reports request, by application crash information reporting to clothes Business device.
Before application crash information reporting to server, it can also compress and encrypt application crash information.
After the application crash information reporting of collection to server, in addition to:What the reception server returned reports As a result, the application crash information collected and is handled according to reported result, wherein:When reported result to report success, then clearly Except the application crash information of collection;When reported result is reports failure, then retain the application crash information of collection, with Just the application crash information of the collection is reported after re-launching applications again.
Fig. 4 is collection according to embodiments of the present invention and reports the preferred whole process schematic diagram of application crash information.
As shown in figure 4, the collection of the embodiment of the present invention and report application crash information preferred whole process include such as Under step S401 to step S411.
Step S401:Scan the page currently shown.
The page currently shown can be Web page.When user opens App, by the timer that pre-sets according to Whether the page that predetermined time interval scanning is currently shown is Web page, and predetermined time interval can be according to research and development demand And the progress of App performances is self-defined, such as can make a reservation for every 1 second run-down.
Step S402:Whether the page for judging currently to show is Web page, if so, then performing step S403, otherwise returns to step Rapid S401.
If the page currently shown is not Web page, timer continues executing with scan operation, when scanning to current display The page be Web page after, perform collection user and browse the operation of positional information.
Step S403:The user for the page that timing acquiring is currently shown browses positional information.
It can be the offset coordinates information that user browses position correspondence that user, which browses positional information,.
Step S404:The user that updating location information preservation is browsed with most freshly harvested user browses positional information.
Step S405:When application crash, pass through default crash log sampling instrument acquisition applications program crashing Essential information.
Essential information mainly includes:The relevant information of application crash, the relevant information of application program, application program institute In the relevant information of equipment.Specifically, the relevant information of application crash can include collapse time of origin, type of error, (call stack is functions of the App upon execution on a time point determined on a certain specific thread to collapse thread dispatching stack information Calling order) etc.;The relevant information of application program can include application program (App) version number, App versions structure sequence number, answer Start the information such as time with program;The relevant information of equipment where application program can include operating system version number, equipment class The information such as type.
Step S406:User according to currently preserving browses positional information and the essential information generation of application crash should With program crashing information, and preserve the application crash information of generation.
Step S407:After application program is restarted, the application crash information of reading and saving, and compress and encrypt and be somebody's turn to do Application crash information.
Step S408:By the application crash information reporting of compression encryption to server.
Step S409:Judge whether to report success according to the reported result that server returns, if so, then performing step S410, if it is not, then performing step S411.
Step S410:Remove the application crash information preserved.
Step S411:Retain the application crash information that local disk preserves, after re-launching applications again Report the application crash information of the preservation.
Restart in App to App processes and terminate period, only sent to server and be once used to that the application program encrypted will to be compressed Crashing information report reports request to server, if reporting failure, retains the application crash information of preservation, treats The application crash information for reporting the compression to encrypt when App is restarted again again.
Fig. 5 is the main modular schematic diagram of the collection device of application crash information according to embodiments of the present invention.
As shown in figure 5, the collection device 500 of the application crash information of the embodiment of the present invention mainly includes:Believe position Cease acquisition module 501, essential information acquisition module 502, crash info preserving module 503.
Positional information acquisition module 501, the user for the current page of timing acquiring application program browse positional information, And after each operation for performing collection, position is browsed according to when time user of collection browses the user that updating location information deposited Confidence ceases.
The page can be Web page, and user browses positional information and is specifically as follows the skew that user browses position correspondence Coordinate information.
Essential information acquisition module 502, for when application crash, being adopted by default crash log sampling instrument Collect the essential information of application crash.
Essential information mainly includes:The relevant information of application crash, the relevant information of application program, application program institute In the relevant information of equipment.
Crash info preserving module 503, for browsing positional information and application crash according to the user currently preserved Essential information generation application crash information, then preserve the application crash information.
Fig. 6 is the main modular schematic diagram of the device for reporting application crash information according to embodiments of the present invention.
As shown in fig. 6, the embodiment of the present invention reports main report of the device 600 of application crash information to use this hair The application crash information that the collection device 500 of the application crash information of bright embodiment is collected, reports application program to collapse The device 600 for information of bursting mainly includes:Positional information acquisition module 501, essential information acquisition module 502, crash info preserve Module 503, crashing information report module 601.Wherein, positional information acquisition module 501, essential information acquisition module 502, collapse Information preserving module 503 is the main modular of the collection device 500 of application crash information.
Crashing information report module 601, after restarting in application program, by the application crash information of collection Report for work server.
Compression encrypting module can also be included by reporting the device 600 of application crash information, for compressing and encrypting receipts The application crash information of collection.
Reported result receiving module can also be included by reporting the device 600 of application crash information, be serviced for receiving The reported result that device returns, and the application crash information collected is handled according to reported result, wherein:When reported result is upper Report successfully, then remove the application crash information of collection;When reported result to report failure, then retain the application program of collection Crash info, so that re-launching applications report the application crash information of collection afterwards again.
Below with reference to Fig. 7, it illustrates suitable for for realizing the computer system 700 of the electronic equipment of the embodiment of the present application Structural representation.Electronic equipment shown in Fig. 7 is only an example, to the function of the embodiment of the present application and should not use model Shroud carrys out any restrictions.
As shown in fig. 7, computer system 700 includes CPU (CPU) 701, it can be read-only according to being stored in Program in memory (ROM) 702 or be loaded into program in random access storage device (RAM) 703 from storage part 708 and Perform various appropriate actions and processing.In RAM 703, also it is stored with system 700 and operates required various programs and data. CPU 701, ROM 702 and RAM 703 are connected with each other by bus 704.Input/output (I/O) interface 705 is also connected to always Line 704.
I/O interfaces 705 are connected to lower component:Importation 706 including keyboard, mouse etc.;Penetrated including such as negative electrode The output par, c 707 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage part 708 including hard disk etc.; And the communications portion 709 of the NIC including LAN card, modem etc..Communications portion 709 via such as because The network of spy's net performs communication process.Driver 710 is also according to needing to be connected to I/O interfaces 705.Detachable media 711, such as Disk, CD, magneto-optic disk, semiconductor memory etc., it is arranged on as needed on driver 710, in order to read from it Computer program be mounted into as needed storage part 708.
Especially, according to embodiment disclosed by the invention, may be implemented as counting above with reference to the process of flow chart description Calculation machine software program.For example, embodiment disclosed by the invention includes a kind of computer program product, it includes being carried on computer Computer program on computer-readable recording medium, the computer program include the program code for being used for the method shown in execution flow chart. In such embodiment, the computer program can be downloaded and installed by communications portion 709 from network, and/or from can Medium 711 is dismantled to be mounted.When the computer program is performed by CPU (CPU) 701, the system that performs the application The above-mentioned function of middle restriction.
It should be noted that the computer-readable medium shown in the present invention can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two any combination.Computer-readable recording medium for example can be --- but not Be limited to --- electricity, magnetic, optical, electromagnetic, system, device or the device of infrared ray or semiconductor, or it is any more than combination.Meter The more specifically example of calculation machine readable storage medium storing program for executing can include but is not limited to:Electrical connection with one or more wires, just Take formula computer disk, hard disk, random access storage device (RAM), read-only storage (ROM), erasable type and may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only storage (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In this application, computer-readable recording medium can any include or store journey The tangible medium of sequence, the program can be commanded the either device use or in connection of execution system, device.And at this In application, computer-readable signal media can include in a base band or as carrier wave a part propagation data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium beyond storage medium is read, the computer-readable medium, which can send, propagates or transmit, to be used for By instruction execution system, device either device use or program in connection.Included on computer-readable medium Program code can be transmitted with any appropriate medium, be included but is not limited to:Wirelessly, electric wire, optical cable, RF etc., or it is above-mentioned Any appropriate combination.
Flow chart and block diagram in accompanying drawing, it is illustrated that according to the system of the various embodiments of the application, method and computer journey Architectural framework in the cards, function and the operation of sequence product.At this point, each square frame in flow chart or block diagram can generation The part of one module of table, program segment or code, a part for above-mentioned module, program segment or code include one or more For realizing the executable instruction of defined logic function.It should also be noted that some as replace realization in, institute in square frame The function of mark can also be with different from the order marked in accompanying drawing generation.For example, two square frames succeedingly represented are actual On can perform substantially in parallel, they can also be performed in the opposite order sometimes, and this is depending on involved function.Also It is noted that the combination of each square frame and block diagram in block diagram or flow chart or the square frame in flow chart, can use and perform rule Fixed function or the special hardware based system of operation are realized, or can use the group of specialized hardware and computer instruction Close to realize.
Being described in module involved in the embodiment of the present invention can be realized by way of software, can also be by hard The mode of part is realized.Described module can also be set within a processor, for example, can be described as:A kind of processor bag Include positional information acquisition module 501, essential information acquisition module 502, crash info preserving module 503.Wherein, these modules Title does not form the restriction to the module in itself under certain conditions, for example, positional information acquisition module 501 can also be retouched State as " user for being used for the current page of timing acquiring application program browses positional information, and the operation gathered in each execution Afterwards, the module that the user that updating location information deposited browses positional information is browsed according to as time user of collection ".
As on the other hand, present invention also offers a kind of computer-readable medium, the computer-readable medium can be Included in equipment described in above-described embodiment;Can also be individualism, and without be incorporated the equipment in.Above-mentioned calculating Machine computer-readable recording medium carries one or more program, when said one or multiple programs are performed by the equipment, makes Obtaining the equipment includes:The user of the current page of timing acquiring application program browses positional information, and is adopted described in each perform After the operation of collection, positional information is browsed according to when time user of collection browses the user that updating location information deposited;Work as application During program crashing, pass through the essential information of default crash log sampling instrument acquisition applications program crashing;Preserved according to current User browse the essential information generation application crash information of positional information and application crash, then preserve the application Program crashing information.Or the user of the current page of timing acquiring application program browses positional information, and institute is being performed every time After the operation for stating collection, positional information is browsed according to when time user of collection browses the user that updating location information deposited;When During application crash, pass through the essential information of default crash log sampling instrument acquisition applications program crashing;According to current The user of preservation browses positional information and the essential information generation application crash information of application crash, and then preserving should Application crash information;After application program is restarted, by application crash information reporting to server.
Technical scheme according to embodiments of the present invention, the user of the current page of timing acquiring application program browse position letter Breath, and after each operation for performing collection, according to browse the user that updating location information deposited clear as time user of collection Look at positional information;When application crash, pass through the basic of default crash log sampling instrument acquisition applications program crashing Information;User according to currently preserving browses the essential information generation application crash letter of positional information and application crash Breath, then preserves the application crash information.In addition, after application program is restarted, the application crash of collection is believed Breath is reported to server.Using the technical scheme of the embodiment of the present invention, user browses when being able to record and reporting collapse generation The particular location coordinate of Web page, so as to fully collect the data of application crash, it is easy to web developer to send out collapse The particular location for the Web page that user is browsed carries out precise positioning to propose recovery scenario when raw, enrich collapse collect and The content reported.
Above-mentioned embodiment, does not form limiting the scope of the invention.Those skilled in the art should be bright It is white, depending on design requirement and other factors, various modifications, combination, sub-portfolio and replacement can occur.It is any Modifications, equivalent substitutions and improvements made within the spirit and principles in the present invention etc., should be included in the scope of the present invention Within.

Claims (14)

  1. A kind of 1. collection method of application crash information, it is characterised in that including:
    The user of the current page of timing acquiring application program browses positional information, and perform every time the collection operation it Afterwards, positional information is browsed according to when time user of collection browses the user that updating location information deposited;
    When the application crash, the basic of the application crash is gathered by default crash log sampling instrument Information;
    User according to currently preserving browses positional information and the essential information generation application program of the application crash collapses Routed information, then preserves the application crash information.
  2. 2. according to the method for claim 1, it is characterised in that the essential information includes:The correlation of application crash The relevant information of equipment where information, the relevant information of application program, application program.
  3. 3. according to the method for claim 1, it is characterised in that the page is Web page, and the user browses position Information is the offset coordinates information that user browses position correspondence.
  4. 4. a kind of method for the application crash information that method reported any one of usage right requirement 1 to 3 is collected, It is characterised in that it includes:
    After application program is restarted, by collected application crash information reporting to server.
  5. 5. according to the method for claim 4, it is characterised in that by collected application crash information reporting to clothes It is engaged in before device, in addition to:Compress and encrypt the application crash information.
  6. 6. according to the method for claim 4, it is characterised in that
    After collected application crash information reporting to server, in addition to:Receive what the server returned Reported result, and collected application crash information is handled according to the reported result, wherein:When the reported result To report success, then collected application crash information is removed;When the reported result to report failure, then retain institute The application crash information of collection is stated, reports collected application program to collapse afterwards to restart the application program again Routed information.
  7. A kind of 7. collection device of application crash information, it is characterised in that including:
    Positional information acquisition module, the user for the current page of timing acquiring application program browse positional information, and every After the secondary operation for performing the collection, position is browsed according to when time user of collection browses the user that updating location information deposited Information;
    Essential information acquisition module, gathered for when the application crash, passing through default crash log sampling instrument The essential information of the application crash;
    Crash info preserving module, for browsing the base of positional information and the application crash according to the user currently preserved This information generates application crash information, then preserves the application crash information.
  8. 8. device according to claim 7, it is characterised in that the essential information includes:The correlation of application crash The relevant information of equipment where information, the relevant information of application program, application program.
  9. 9. device according to claim 7, it is characterised in that the page is Web page, and the user browses position Information is the offset coordinates information that user browses position correspondence.
  10. A kind of 10. dress for the application crash information that device reported any one of usage right requirement 7 to 9 is collected Put, it is characterised in that including:
    Crashing information report module, after restarting in application program, by collected application crash information reporting To server.
  11. 11. device according to claim 10, it is characterised in that also include compression encrypting module, for compressing and encrypting The application crash information.
  12. 12. device according to claim 10, it is characterised in that also including reported result receiving module, for receiving The reported result of server return is stated, and collected application crash information is handled according to the reported result, wherein: When the reported result to report success, then collected application crash information is removed;When the reported result is upper Report lost property to the authorities and lose, then retain collected application crash information, so as to restart again report after the application program it is described The application crash information of collection.
  13. 13. a kind of electronic equipment, it is characterised in that including:
    One or more processors;
    Memory, for storing one or more programs,
    When one or more of programs are by one or more of computing devices so that one or more of processors Realize the method as described in any in claim 1-3 or 4-6.
  14. 14. a kind of computer-readable medium, is stored thereon with computer program, it is characterised in that described program is held by processor The method as described in any in claim 1-3 or 4-6 is realized during row.
CN201710845589.9A 2017-09-19 2017-09-19 A kind of collection of application crash information and report method, device Pending CN107622000A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710845589.9A CN107622000A (en) 2017-09-19 2017-09-19 A kind of collection of application crash information and report method, device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710845589.9A CN107622000A (en) 2017-09-19 2017-09-19 A kind of collection of application crash information and report method, device

Publications (1)

Publication Number Publication Date
CN107622000A true CN107622000A (en) 2018-01-23

Family

ID=61090116

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710845589.9A Pending CN107622000A (en) 2017-09-19 2017-09-19 A kind of collection of application crash information and report method, device

Country Status (1)

Country Link
CN (1) CN107622000A (en)

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108845919A (en) * 2018-05-23 2018-11-20 北京五八信息技术有限公司 A kind of log reporting method, device, terminal and computer readable storage medium
CN109344035A (en) * 2018-09-30 2019-02-15 北京奇虎科技有限公司 A kind of progress control method of application program, device, equipment and storage medium
CN110109769A (en) * 2019-04-16 2019-08-09 深圳壹账通智能科技有限公司 Method for safety monitoring, device, equipment and the storage medium of application crash
CN110413450A (en) * 2019-07-22 2019-11-05 河南翔宇医疗设备股份有限公司 A kind of method, device and equipment handling application crash
CN110659185A (en) * 2019-10-09 2020-01-07 云南电网有限责任公司信息中心 Mobile APP user experience monitoring method based on real user perception
CN110955595A (en) * 2019-11-13 2020-04-03 中信百信银行股份有限公司 Problem repairing method and device, electronic equipment and computer readable storage medium
CN111290871A (en) * 2018-12-10 2020-06-16 北京京东尚科信息技术有限公司 Method and device for acquiring crash information of application program
CN111338835A (en) * 2020-02-24 2020-06-26 网易(杭州)网络有限公司 Data processing method and device
CN111435326A (en) * 2019-01-15 2020-07-21 北京京东尚科信息技术有限公司 Method and device for analyzing crash logs
CN112306856A (en) * 2019-08-02 2021-02-02 北京字节跳动网络技术有限公司 Method and device for collecting application defect information and electronic equipment
CN112417245A (en) * 2020-11-18 2021-02-26 掌阅科技股份有限公司 Application log capturing method, computing device and computer storage medium
CN112463343A (en) * 2020-12-16 2021-03-09 广州博冠信息科技有限公司 Business process restarting method and device, storage medium and electronic equipment
CN112699010A (en) * 2019-10-22 2021-04-23 北京沃东天骏信息技术有限公司 Method and device for processing crash logs
CN112711474A (en) * 2021-01-12 2021-04-27 百果园技术(新加坡)有限公司 Timer management method and device and electronic equipment
CN113010414A (en) * 2021-02-24 2021-06-22 北京每日优鲜电子商务有限公司 Application program performance management method and device based on bytecode instrumentation technology
CN113127242A (en) * 2020-01-10 2021-07-16 北京新氧科技有限公司 Application crash processing method and processing device
CN113204445A (en) * 2021-05-10 2021-08-03 北京奇艺世纪科技有限公司 Information transmission method, device, equipment and storage medium for crash location
CN113835912A (en) * 2020-06-24 2021-12-24 北京新氧科技有限公司 Application crash information processing method and device
CN116775440A (en) * 2023-08-21 2023-09-19 青岛民航凯亚系统集成有限公司 Log-level link tracking method and system based on airport production operation system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080256399A1 (en) * 2007-04-10 2008-10-16 Galileo Group Ag Software event recording and analysis system and method of use thereof
CN104348658A (en) * 2013-08-08 2015-02-11 阿里巴巴集团控股有限公司 Fault report generation method and system thereof
CN105320572A (en) * 2014-06-27 2016-02-10 腾讯科技(深圳)有限公司 Browser abnormity processing method, device and system
CN106294116A (en) * 2015-06-11 2017-01-04 阿里巴巴集团控股有限公司 Record and the methods, devices and systems of reproduction process process
CN107102928A (en) * 2017-04-18 2017-08-29 广州视源电子科技股份有限公司 A kind of application crash information uploading method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080256399A1 (en) * 2007-04-10 2008-10-16 Galileo Group Ag Software event recording and analysis system and method of use thereof
CN104348658A (en) * 2013-08-08 2015-02-11 阿里巴巴集团控股有限公司 Fault report generation method and system thereof
CN105320572A (en) * 2014-06-27 2016-02-10 腾讯科技(深圳)有限公司 Browser abnormity processing method, device and system
CN106294116A (en) * 2015-06-11 2017-01-04 阿里巴巴集团控股有限公司 Record and the methods, devices and systems of reproduction process process
CN107102928A (en) * 2017-04-18 2017-08-29 广州视源电子科技股份有限公司 A kind of application crash information uploading method and device

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108845919A (en) * 2018-05-23 2018-11-20 北京五八信息技术有限公司 A kind of log reporting method, device, terminal and computer readable storage medium
CN109344035A (en) * 2018-09-30 2019-02-15 北京奇虎科技有限公司 A kind of progress control method of application program, device, equipment and storage medium
CN111290871A (en) * 2018-12-10 2020-06-16 北京京东尚科信息技术有限公司 Method and device for acquiring crash information of application program
CN111435326A (en) * 2019-01-15 2020-07-21 北京京东尚科信息技术有限公司 Method and device for analyzing crash logs
CN110109769A (en) * 2019-04-16 2019-08-09 深圳壹账通智能科技有限公司 Method for safety monitoring, device, equipment and the storage medium of application crash
CN110413450A (en) * 2019-07-22 2019-11-05 河南翔宇医疗设备股份有限公司 A kind of method, device and equipment handling application crash
CN112306856A (en) * 2019-08-02 2021-02-02 北京字节跳动网络技术有限公司 Method and device for collecting application defect information and electronic equipment
CN110659185A (en) * 2019-10-09 2020-01-07 云南电网有限责任公司信息中心 Mobile APP user experience monitoring method based on real user perception
CN112699010A (en) * 2019-10-22 2021-04-23 北京沃东天骏信息技术有限公司 Method and device for processing crash logs
CN110955595A (en) * 2019-11-13 2020-04-03 中信百信银行股份有限公司 Problem repairing method and device, electronic equipment and computer readable storage medium
CN113127242A (en) * 2020-01-10 2021-07-16 北京新氧科技有限公司 Application crash processing method and processing device
CN111338835A (en) * 2020-02-24 2020-06-26 网易(杭州)网络有限公司 Data processing method and device
CN113835912B (en) * 2020-06-24 2024-02-09 北京新氧科技有限公司 Crash information processing method and device for application program
CN113835912A (en) * 2020-06-24 2021-12-24 北京新氧科技有限公司 Application crash information processing method and device
CN112417245A (en) * 2020-11-18 2021-02-26 掌阅科技股份有限公司 Application log capturing method, computing device and computer storage medium
CN112463343B (en) * 2020-12-16 2023-09-26 广州博冠信息科技有限公司 Restarting method and device of business process, storage medium and electronic equipment
CN112463343A (en) * 2020-12-16 2021-03-09 广州博冠信息科技有限公司 Business process restarting method and device, storage medium and electronic equipment
CN112711474A (en) * 2021-01-12 2021-04-27 百果园技术(新加坡)有限公司 Timer management method and device and electronic equipment
CN112711474B (en) * 2021-01-12 2023-12-08 百果园技术(新加坡)有限公司 Timer management method and device and electronic equipment
CN113010414A (en) * 2021-02-24 2021-06-22 北京每日优鲜电子商务有限公司 Application program performance management method and device based on bytecode instrumentation technology
CN113204445A (en) * 2021-05-10 2021-08-03 北京奇艺世纪科技有限公司 Information transmission method, device, equipment and storage medium for crash location
CN113204445B (en) * 2021-05-10 2024-04-19 北京奇艺世纪科技有限公司 Information transmission method, device, equipment and storage medium for crash positioning
CN116775440B (en) * 2023-08-21 2023-12-01 青岛民航凯亚系统集成有限公司 Log-level link tracking method and system based on airport production operation system
CN116775440A (en) * 2023-08-21 2023-09-19 青岛民航凯亚系统集成有限公司 Log-level link tracking method and system based on airport production operation system

Similar Documents

Publication Publication Date Title
CN107622000A (en) A kind of collection of application crash information and report method, device
US7139978B2 (en) Recording user interaction with an application
CN106547578A (en) The loading method and device of terminal applies APP
CN107357718A (en) One kind structure method of testing and device
CN106383780A (en) Monkey test method and device
CN106896937A (en) Method and apparatus for being input into information
CN106919711A (en) The method and apparatus of the markup information based on artificial intelligence
CN105487750A (en) Application control method and apparatus and mobile terminal
CN108446211A (en) Browser exception collection method, device, mobile terminal and storage medium
CN107644075A (en) The method and apparatus for collecting page info
CN107295067A (en) Across the method and apparatus of screen identification user
CN104598570A (en) Resource fetching method and device
CN109002282A (en) A kind of method and apparatus for realizing animation effect in web page exploitation
CN114968023A (en) Terminal control method, terminal control device, electronic equipment and storage medium
KR101397176B1 (en) Method for providing usercustomized point of sale service
CN107734474A (en) The applied statistical method and system of bound phone number
CN112286815A (en) Interface test script generation method and related equipment thereof
CN109857473A (en) A kind of loading method and device of page data
CN108205487A (en) A kind of method, apparatus and user terminal for monitoring browser performance
CN110457219A (en) The method and apparatus of selection of time when a kind of test script is recorded
CN107895573A (en) Method and device for identification information
CN106302011A (en) Method of testings based on multiterminal and terminal
CN104267960B (en) A kind of generation method and equipment of user interface forms
KR100932603B1 (en) Mobile WiFi test method and device
CN112650491A (en) Date selection modal component development method based on Reactnative and related equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180123

RJ01 Rejection of invention patent application after publication