CN108520063A - Processing method, device and the terminal device of event log - Google Patents
Processing method, device and the terminal device of event log Download PDFInfo
- Publication number
- CN108520063A CN108520063A CN201810319344.7A CN201810319344A CN108520063A CN 108520063 A CN108520063 A CN 108520063A CN 201810319344 A CN201810319344 A CN 201810319344A CN 108520063 A CN108520063 A CN 108520063A
- Authority
- CN
- China
- Prior art keywords
- interface identification
- time
- identification
- event log
- image
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3604—Software analysis for verifying properties of programs
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The application is suitable for the communications field, provides a kind of processing method of event log, device and terminal device, including:Corresponding event log information is obtained according to preset event identifier, the event log information includes temporal information and interface identification;Obtain image corresponding with the interface identification;By the temporal information and described image corresponding display on a timeline.The efficiency and accuracy rate of event log analysis can be improved by the above method.
Description
Technical field
The application belongs to a kind of communications field more particularly to processing method of event log, device and terminal device.
Background technology
In the development process of Android (Android) system, developer usually requires largely to analyze event log
(event log) carrys out the defect (bug) of analysis system.Event log are one kind in the log system in android system,
The establishment of the calling, application process of the life cycle of Activity in this daily record essential record system and destruction etc., due to
Event log are recorded according to its specific format, therefore, only for the service (Activity of administration interface
Manager Service, AMS) known to developer the row of system at that time could be more accurately restored from event log
For, but for being unfamiliar with the developer of AMS, possibly can not the problematic time institute of accurate reproduction tool in event log
Corresponding system action to reduce working efficiency, or even can cause analysis result inaccurate.
Invention content
In view of this, the embodiment of the present application provides a kind of processing method of event log, device and terminal device, with solution
Never it is familiar with the developer of the AMS low problem of working efficiency when analyzing event log.
The first aspect of the embodiment of the present application provides a kind of processing method of event log, including:
Corresponding event log information is obtained according to preset event identifier, the event log information includes temporal information
And interface identification;
Obtain image corresponding with the interface identification;
By the temporal information and described image corresponding display on a timeline.
The second aspect of the embodiment of the present application provides a kind of processing unit of event log, including:
Event log information acquiring unit, for obtaining corresponding event log information, institute according to preset event identifier
It includes temporal information and interface identification to state event log information;
Image acquisition unit, for obtaining image corresponding with the interface identification;
Time shaft display unit is used for the temporal information and described image corresponding display on a timeline.
The third aspect of the embodiment of the present application provides a kind of terminal device, including memory, processor and is stored in
In the memory and the computer program that can run on the processor, when the processor executes the computer program
The step of realizing the processing method such as the event log.
The fourth aspect of the embodiment of the present application provides a kind of computer readable storage medium, the computer-readable storage
Media storage has computer program, and the processing method such as the event log is realized when the computer program is executed by processor
The step of.
Existing advantageous effect is the embodiment of the present application compared with prior art:
Due to by temporal information image corresponding with the interface identification on a timeline it is corresponding display, open
Even if hair personnel can analyze system if being unfamiliar with AMS from the visual information shown on time shaft and be deposited in which temporal information
In bug, to improve the efficiency and accuracy rate of analysis.
Description of the drawings
It in order to more clearly explain the technical solutions in the embodiments of the present application, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only some of the application
Embodiment for those of ordinary skill in the art without having to pay creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is a kind of flow diagram of the processing method of event log provided by the embodiments of the present application;
Fig. 2 is a kind of schematic diagram showing image and temporal information in time shaft provided by the embodiments of the present application;
Fig. 3 is a kind of structural schematic diagram of the processing unit of event log provided by the embodiments of the present application;
Fig. 4 is the schematic diagram of terminal device provided by the embodiments of the present application.
Specific implementation mode
In being described below, for illustration and not for limitation, it is proposed that such as tool of particular system structure, technology etc
Body details, so as to provide a thorough understanding of the present application embodiment.However, it will be clear to one skilled in the art that there is no these specific
The application can also be realized in the other embodiments of details.In other situations, it omits to well-known system, device, electricity
The detailed description of road and method, so as not to obscure the description of the present application with unnecessary details.
In order to illustrate technical solution described herein, illustrated below by specific embodiment.
It should be appreciated that ought use in this specification and in the appended claims, the instruction of term " comprising " is described special
Sign, entirety, step, operation, the presence of element and/or component, but be not precluded one or more of the other feature, entirety, step,
Operation, element, component and/or its presence or addition gathered.
It is also understood that the term used in this present specification is merely for the sake of the mesh for describing specific embodiment
And be not intended to limit the application.As present specification and it is used in the attached claims, unless on
Other situations are hereafter clearly indicated, otherwise " one " of singulative, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in present specification and the appended claims is
Refer to any combinations and all possible combinations of one or more of associated item listed, and includes these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt
Be construed to " when ... " or " once " or " in response to determination " or " in response to detecting ".Similarly, phrase " if it is determined that " or
" if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true
It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In the specific implementation, the mobile terminal described in the embodiment of the present application is including but not limited to such as with the sensitive table of touch
Mobile phone, laptop computer or the tablet computer in face (for example, touch-screen display and/or touch tablet) etc it is other
Portable device.It is to be further understood that in certain embodiments, above equipment is not portable communication device, but is had
The desktop computer of touch sensitive surface (for example, touch-screen display and/or touch tablet).
In following discussion, the mobile terminal including display and touch sensitive surface is described.However, should manage
Solution, mobile terminal may include that one or more of the other physical User of such as physical keyboard, mouse and/or control-rod connects
Jaws equipment.
Mobile terminal supports various application programs, such as one of the following or multiple:Drawing application program, demonstration application
Program, word-processing application, website establishment application program, disk imprinting application program, spreadsheet applications, game are answered
With program, telephony application, videoconference application, email application, instant messaging applications, forging
Refining supports application program, photo management application program, digital camera application program, digital camera application program, web-browsing to answer
With program, digital music player application and/or video frequency player application program.
The various application programs that can be executed on mobile terminals can use at least one of such as touch sensitive surface
Public physical user-interface device.It can be adjusted among applications and/or in corresponding application programs and/or change touch is quick
Feel the corresponding information shown in the one or more functions and terminal on surface.In this way, terminal public physical structure (for example,
Touch sensitive surface) it can support the various application programs with intuitive and transparent user interface for a user.
In addition, in the description of the present application, term " first ", " second ", " third " etc. are only used for distinguishing description, and cannot
It is interpreted as indicating or implying relative importance.
Embodiment one:
Fig. 1 shows a kind of flow diagram of the processing method of event log provided by the embodiments of the present application, is described in detail such as
Under:
Step S101 obtains corresponding event log information, the event log information packet according to preset event identifier
Include temporal information and interface identification;
In this step, preset event identifier can be the sentence or phrase corresponding to the event in event log.Example
Such as, it is assumed that preset event identifier includes am_set_resumed_activity, then obtains the am_set_resumed_
The corresponding event log informations of activity.Wherein, interface identification is mainly the title of interface (activity).
In this step, it can be filtered out pair according to preset event identifier in the event log (event log) of generation
The event log information answered.Also the corresponding order of the preset event identifier can be sent out to activity, then is obtained corresponding
Event log information.
Step S102 obtains image corresponding with the interface identification;
In the step, the image of acquisition includes following at least one:Interface sectional drawing, preset all black picture, sign flag
(such as exclamation "!") etc..
Optionally, in order to the corresponding image of quick obtaining interface identification, then before the step S102, including:
Prestore image corresponding with the interface identification.
For example, in advance by the corresponding storage of interface identification and interface sectional drawing, preset all black picture, so as to it is follow-up as needed
Obtain corresponding image.
Corresponding, the step S102 is specially:
Image corresponding with the interface identification is obtained from pre-stored image.
Step S103, by the temporal information and described image corresponding display on a timeline.
In this step, when determining some activity when some temporal information is run, believe in the time of time shaft
The corresponding images of the activity are shown on breath.Specifically, it is assumed that obtain 4 temporal informations and its corresponding 4 image, then
By 4 temporal informations:10:01、10:02、10:04、10:07 sorts according to sequencing, then is shown under corresponding temporal information
Show its corresponding image, it is specific as shown in Figure 2.In the time shaft of Fig. 2,10:01 point of corresponding image is application interface 1, is used
The image (1 corresponding image of application interface) that family is shown by time shaft can quickly determine that application interface 1 is corresponding and apply
10:01 point in operating status.
In the embodiment of the present application, corresponding event log information, the event log are obtained according to preset event identifier
Information includes temporal information and interface identification, obtains image corresponding with the interface identification, by the temporal information with it is described
Image corresponding display on a timeline.Since temporal information image corresponding with the interface identification is right on a timeline
It should show, therefore, exist even if developer can analyze system if being unfamiliar with AMS from the visual information shown on time shaft
There are bug for which temporal information, to improve the efficiency and accuracy rate of analysis.
Optionally, due to the Limited information that time shaft can be shown, preset event identifier can be that user more pay close attention to
Several events, alternatively, counted in its preset time period by terminal device occur bug at most before several events, then by this
The mark of several events is as preset event identifier.In the embodiment of the present application, it is assumed that preset event identifier includes that application is extensive
Multiple instruction sends out mark (am_set_resumed_activity) and response application restores command identification (am_on_resume_
Called), at this point, the step S101 includes:
A1, according to application recovery instruction send out identification record application recovery instruction send out time and the application recovery
Instruction sends out the interface identification that mark carries;
A2, the response time that the corresponding application of the interface identification responds the application recovery instruction is obtained.
Specifically, AMS, which is sent out, allows application recovery (resume) to instruct (am_set_resumed_activity), alternatively,
When reading am_set_resumed_activity in event log, record interface identification such as (activity names) and application
That restores instruction sends out the time, then reads am_on_resume_called events, obtains the response that application end executes onResume
Time.
Corresponding, the step S102 is specifically included:
If the response time is less than preset duration threshold value with the difference for sending out the time, obtain and the interface identification
Corresponding interface sectional drawing, temporal information of the response time as time shaft, if the response time with described send out the time
Difference be greater than or equal to preset duration threshold value, corresponding with interface identification all black picture is obtained, when according to described sending out
Between the temporal information of time shaft is determined with the preset duration threshold value.
Wherein, preset duration threshold value can be configured according to the tolerance duration of terminal device system itself, for example, pacifying
In tall and erect system, which may be configured as 5 seconds, it is of course also possible to be set as other threshold values, be not construed as limiting herein.
Wherein, it sends out the time according to described and determines that the temporal information of time shaft is specifically wrapped with the preset duration threshold value
It includes:Time and preset duration threshold value and as time shaft temporal information will be sent out.
In above-mentioned steps, if the response time is greater than or equal to preset duration threshold value with the difference for sending out the time, show
There are bug by the corresponding activity of interface identification, at this point, an all black picture is obtained, so that developer is aobvious according to time shaft
The all black picture shown intuitively analyzes the temporal information corresponding to it, and there are bug.
Optionally, since all black picture does not include interface identification, it can be more clearly for the ease of developer
There is the specific interface of bug in analysis, then the step S103 is specifically included:By the temporal information respectively with all black picture
And the interface identification corresponding display on a timeline.For example, also showing interface identification in the temporal information of time shaft.
Optionally, since all black picture does not include interface identification, it can be more clearly for the ease of developer
There is the specific interface of bug in analysis, if then the response time is greater than or equal to preset duration with the difference for sending out the time
Threshold value obtains corresponding with interface identification all black picture, and the time is sent out and the preset duration threshold value is true according to described
The fixed all black picture time shaft temporal information, and, interface corresponding with interface identification sectional drawing is obtained, according to institute
State the response time determine the interface sectional drawing time shaft temporal information.
Optionally, before the step A2, including:
Judge whether the corresponding application of the interface identification responds the application recovery instruction, so as to described in not responding to
When application recovery instructs, according to application recovery instruction send out the time and preset duration threshold value determine time shaft when
Between information, it is accordingly, described to obtain corresponding with interface identification image and specifically include:It obtains corresponding with the interface identification
All black picture.
Wherein, according to the application recovery instruction send out the time and preset duration threshold value determines the time of time shaft
Information specifically includes:Time and preset duration threshold value and as time shaft temporal information will be sent out.
Certainly, if judging, the corresponding application of interface identification responds the application recovery instruction, thens follow the steps A2.
Optionally, preset event identifier includes screen identification (screen_toggled), at this point, the step S101,
Including:
The corresponding value of the screen identification and interface identification are obtained according to screen identification, record obtains the screen identification
The time of corresponding value.Since screen only has 2 kinds of states, it is bright screen respectively or goes out screen, therefore, the corresponding value of screen identification can
It is set as 0 and 1, for example, indicating that current screen is in screen state of going out using " 0 ", indicates that current screen is in bright screen shape using " 1 "
State.In this step, the time of the corresponding value of the acquisition screen identification of record will be as the temporal information on time shaft.
Accordingly, the step S102 is specifically included:
Judge whether screen is in black state according to the corresponding value of the screen identification, if being in black state, obtains
All black picture corresponding with the interface identification;If being in bright screen state, the figure of screen locking corresponding with the interface identification is obtained
Picture.
Optionally, since screen is in blank screen and the corresponding application of interface identification does not respond to application recovery and instructs both
Situation is all to obtain all black picture, and therefore, it is that any situation is drawn quickly to distinguish bug on a timeline for the ease of developer
It rises, then when in black state, obtains all black picture corresponding with the interface identification and the interface identification, it is corresponding
Ground, step S103 are specifically included:The temporal information is right on a timeline with the described completely black and described interface identification respectively
It should show.For example, also showing interface identification in the temporal information of time shaft.
Optionally, preset event identifier includes process collapse mark (such as am_crash and am_proc_died), due to
If this kind of mark indicates not accurate enough with interface sectional drawing or all black picture merely, therefore, include in preset event identifier
When process collapse mark (such as am_crash and am_proc_died), the image that the step S102 is obtained is interface identification pair
Answer sign flag (such as exclamation "!"), in this way, on a timeline will display sign flag (such as exclamation "!") and temporal information.When
So, it in order to enable display result is more intuitive, then display interface can also identify on a timeline.
Embodiment two:
Corresponding with the processing method of a kind of event log that embodiment one provides, the embodiment of the present application provides a kind of event
The structural schematic diagram of the processing unit of daily record shown in specific Fig. 3, for convenience of description, illustrates only and the embodiment of the present application phase
The department of pass.
The processing unit of the event log includes:Event log information acquiring unit 31, image acquisition unit 32, time shaft
Display unit 33.Wherein:
Event log information acquiring unit 31, for obtaining corresponding event log information according to preset event identifier,
The event log information includes temporal information and interface identification;
Wherein, preset event identifier can be the sentence or phrase corresponding to the event in event log.
Wherein, interface identification is mainly the title of interface (activity).
The event log information acquiring unit 31 can be in the event log (event log) of generation according to preset event
Mark filters out corresponding event log information.Also the corresponding order of the preset event identifier can be sent out to activity,
Corresponding event log information is obtained again.
Image acquisition unit 32, for obtaining image corresponding with the interface identification;
Wherein, the image of acquisition includes following at least one:Interface sectional drawing, preset all black picture, sign flag (are such as sighed
Number "!") etc..
Optionally, in order to the corresponding image of quick obtaining interface identification, then the processing unit packet of the event log
It includes:
The pre- memory cell of image, for prestoring image corresponding with the interface identification;
Corresponding, described image acquiring unit 32 is specifically used for obtaining and the interface identification from pre-stored image
Corresponding image.
Time shaft display unit 33 is used for the temporal information and described image corresponding display on a timeline.
In the embodiment of the present application, since temporal information image corresponding with the interface identification is right on a timeline
It should show, therefore, exist even if developer can analyze system if being unfamiliar with AMS from the visual information shown on time shaft
There are bug for which temporal information, to improve the efficiency and accuracy rate of analysis.
Optionally, due to the Limited information that time shaft can be shown, preset event identifier can be that user more pay close attention to
Several events, alternatively, counted in its preset time period by terminal device occur bug at most before several events, then by this
The mark of several events is as preset event identifier.Assuming that preset event identifier, which includes application recovery instruction, sends out mark
(am_set_resumed_activity) and response application restores command identification (am_on_resume_called), at this point, institute
Stating event log information acquiring unit 31 includes:
Time recording module is sent out, for sending out when sending out of identification record application recovery instruction according to application recovery instruction
Between and the application recovery instruction send out mark carry interface identification;
Response time acquisition module responds the application recovery instruction for obtaining the corresponding application of the interface identification
Response time;
Corresponding, described image acquiring unit 32 is specifically used for, if the response time and the difference for sending out the time are small
In preset duration threshold value, obtain interface corresponding with interface identification sectional drawing, the response time as time shaft when
Between information obtained and the boundary if the response time and the difference for sending out the time are greater than or equal to preset duration threshold value
Face identifies corresponding all black picture, sends out the time according to described and determines that the time of time shaft believes with the preset duration threshold value
Breath.
Wherein, preset duration threshold value can be configured according to the tolerance duration of terminal device system itself, for example, pacifying
In tall and erect system, which may be configured as 5 seconds, it is of course also possible to be set as other threshold values, be not construed as limiting herein.
Wherein, it sends out the time according to described and determines that the temporal information of time shaft is specifically wrapped with the preset duration threshold value
It includes:Time and preset duration threshold value and as time shaft temporal information will be sent out.
Optionally, since all black picture does not include interface identification, it can be more clearly for the ease of developer
There is the specific interface of bug in analysis, then the time shaft display unit 33 is specifically used for:By the temporal information respectively with it is described
All black picture and the interface identification corresponding display on a timeline.For example, also showing boundary in the temporal information of time shaft
Face identifies.
Optionally, since all black picture does not include interface identification, it can be more clearly for the ease of developer
There is the specific interface of bug in analysis, then described image acquiring unit 32 is specifically used for, if the response time is with described send out
Between difference be less than preset duration threshold value, obtain interface corresponding with interface identification sectional drawing, the response time as when
The temporal information of countershaft;If the response time is greater than or equal to preset duration threshold value with the difference for sending out the time, obtain
All black picture corresponding with the interface identification, according to it is described send out the time determine with the preset duration threshold value it is described completely black
Image time shaft temporal information, and, obtain interface corresponding with interface identification sectional drawing, according to the response time
Determine the interface sectional drawing time shaft temporal information.
Optionally, the processing unit of the event log, including:
Whether judging unit is responded, referred to for judging whether the corresponding application of the interface identification responds the application recovery
It enables, so as to when not responding to application recovery instruction, time and preset is sent out according to application recovery instruction
Duration threshold value determines the temporal information of time shaft, and accordingly, described image acquiring unit 32 is specifically used for:It obtains and the interface
Identify corresponding all black picture.
Wherein, according to the application recovery instruction send out the time and preset duration threshold value determines the time of time shaft
Information specifically includes:Time and preset duration threshold value and as time shaft temporal information will be sent out.
Optionally, preset event identifier includes screen identification, at this point, the event log information acquiring unit 31 is wrapped
It includes:
The corresponding value of the screen identification and interface identification are obtained according to screen identification, record obtains the screen identification
The time of corresponding value;
Accordingly, described image acquiring unit 32 is specifically used for:
Judge whether screen is in black state according to the corresponding value of the screen identification, if being in black state, obtains
All black picture corresponding with the interface identification;If being in bright screen state, the figure of screen locking corresponding with the interface identification is obtained
Picture.
Optionally, since screen is in blank screen and the corresponding application of interface identification does not respond to application recovery and instructs both
Situation is all to obtain all black picture, and therefore, it is that any situation is drawn quickly to distinguish bug on a timeline for the ease of developer
It rises, then when in black state, described image acquiring unit 32 is specifically used for obtaining corresponding with the interface identification complete
Picture black and the interface identification, accordingly, the time shaft display unit 33 are specifically used for:The temporal information is distinguished
With the corresponding display on a timeline of the described completely black and described interface identification.For example, being also shown in the temporal information of time shaft
Interface identification.
Optionally, preset event identifier includes process collapse mark (such as am_crash and am_proc_died), due to
If this kind of mark indicates not accurate enough with interface sectional drawing or all black picture merely, therefore, include in preset event identifier
When process collapse mark (such as am_crash and am_proc_died), the image that described image acquiring unit 32 obtains is interface
Identify corresponding sign flag (such as exclamation "!"), in this way, on a timeline will display sign flag (such as exclamation "!") and the time
Information.Certainly, it in order to enable display result is more intuitive, then display interface can also identify on a timeline.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process
Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present application constitutes any limit
It is fixed.
Embodiment three:
Fig. 4 is the schematic diagram for the terminal device that one embodiment of the application provides.As shown in figure 4, the terminal of the embodiment is set
Standby 4 include:Processor 40, memory 41 and it is stored in the meter that can be run in the memory 41 and on the processor 40
Calculation machine program 42.The processor 40 is realized when executing the computer program 42 in above-mentioned each image processing method embodiment
The step of, such as step S101 to S103 shown in FIG. 1.Alternatively, reality when the processor 40 executes the computer program 42
Show the function of each module/unit in above-mentioned each device embodiment, such as the function of unit 31 to 33 shown in Fig. 3.
Illustratively, the computer program 42 can be divided into one or more module/units, it is one or
Multiple module/units are stored in the memory 41, and are executed by the processor 40, to complete the application.Described one
A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for
Implementation procedure of the computer program 42 in the terminal device 4 is described.For example, the computer program 42 can be divided
It is cut into event log information acquiring unit 31, image acquisition unit 32, time shaft display unit 33, each unit concrete function is such as
Under:
Event log information acquiring unit 31, for obtaining corresponding event log information according to preset event identifier,
The event log information includes temporal information and interface identification;
Image acquisition unit 32, for obtaining image corresponding with the interface identification;
Time shaft display unit 33 is used for the temporal information and described image corresponding display on a timeline.
The terminal device 4 can be that the calculating such as desktop PC, notebook, palm PC and cloud server are set
It is standby.The terminal device may include, but be not limited only to, processor 40, memory 41.It will be understood by those skilled in the art that Fig. 4
The only example of terminal device 4 does not constitute the restriction to terminal device 4, may include than illustrating more or fewer portions
Part either combines certain components or different components, such as the terminal device can also include input-output equipment, net
Network access device, bus etc..
Alleged processor 40 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor
Deng.
The memory 41 can be the internal storage unit of the terminal device 4, such as the hard disk of terminal device 4 or interior
It deposits.The memory 41 can also be to be equipped on the External memory equipment of the terminal device 4, such as the terminal device 4
Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge
Deposit card (Flash Card) etc..Further, the memory 41 can also both include the storage inside list of the terminal device 4
Member also includes External memory equipment.The memory 41 is for storing needed for the computer program and the terminal device
Other programs and data.The memory 41 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each work(
Can unit, module division progress for example, in practical application, can be as needed and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of described device are divided into different functional units or module, more than completion
The all or part of function of description.Each functional unit, module in embodiment can be integrated in a processing unit, also may be used
It, can also be above-mentioned integrated during two or more units are integrated in one unit to be that each unit physically exists alone
The form that hardware had both may be used in unit is realized, can also be realized in the form of SFU software functional unit.In addition, each function list
Member, the specific name of module are also only to facilitate mutually distinguish, the protection domain being not intended to limit this application.Above system
The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment
The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may realize that lists described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, depends on the specific application and design constraint of technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
Scope of the present application.
In embodiment provided herein, it should be understood that disclosed device/terminal device and method, it can be with
It realizes by another way.For example, device described above/terminal device embodiment is only schematical, for example, institute
The division of module or unit is stated, only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as
Multiple units or component can be combined or can be integrated into another system, or some features can be ignored or not executed.Separately
A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be by some interfaces, device
Or INDIRECT COUPLING or the communication connection of unit, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple
In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme
's.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, it can also
It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list
The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or
In use, can be stored in a computer read/write memory medium.Based on this understanding, the application realizes above-mentioned implementation
All or part of flow in example method, can also instruct relevant hardware to complete, the meter by computer program
Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on
The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation
Code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium
May include:Any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic of the computer program code can be carried
Dish, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM,
Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described
The content that computer-readable medium includes can carry out increasing appropriate according to legislation in jurisdiction and the requirement of patent practice
Subtract, such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium does not include electric carrier signal and electricity
Believe signal.
Embodiment described above is only to illustrate the technical solution of the application, rather than its limitations;Although with reference to aforementioned reality
Example is applied the application is described in detail, it will be understood by those of ordinary skill in the art that:It still can be to aforementioned each
Technical solution recorded in embodiment is modified or equivalent replacement of some of the technical features;And these are changed
Or replace, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution should all
Within the protection domain of the application.
Claims (10)
1. a kind of processing method of event log, which is characterized in that including:
Corresponding event log information is obtained according to preset event identifier, the event log information includes temporal information and boundary
Face identifies;
Obtain image corresponding with the interface identification;
By the temporal information and described image corresponding display on a timeline.
2. the processing method of event log as described in claim 1, which is characterized in that in the acquisition and the interface identification
Before corresponding image, including:
Prestore image corresponding with the interface identification;
It is corresponding, it is described to obtain corresponding with interface identification image and be specially:
Image corresponding with the interface identification is obtained from pre-stored image.
3. the processing method of event log as claimed in claim 1 or 2, which is characterized in that preset event identifier includes answering
Mark and response application recovery command identification are sent out with instruction is restored, at this point, described obtained according to preset event identifier corresponds to
Event log information, including:
According to application recovery instruction send out identification record application recovery instruction send out the time and the application recovery instruction hair
Go out the interface identification that mark carries;
Obtain the response time that the corresponding application of the interface identification responds the application recovery instruction;
It is corresponding, it is described to obtain corresponding with interface identification image and specifically include:
If the response time is less than preset duration threshold value with the difference for sending out the time, obtain corresponding with the interface identification
Interface sectional drawing, temporal information of the response time as time shaft, if the response time and the difference for sending out the time
More than or equal to preset duration threshold value, obtain all black picture corresponding with the interface identification, according to it is described send out the time and
The preset duration threshold value determines the temporal information of time shaft.
4. the processing method of event log as claimed in claim 3, which is characterized in that obtain the interface identification pair described
Before the application answered responds the response time of the application recovery instruction, including:
Judge whether the corresponding application of the interface identification responds the application recovery instruction, not respond to the application
When restoring instruction, according to application recovery instruction send out the time and preset duration threshold value determines that the time of time shaft believes
Breath, it is accordingly, described to obtain corresponding with interface identification image and specifically include:It obtains corresponding with the interface identification complete
Picture black.
5. the processing method of event log as described in any one of claims 1 to 3, which is characterized in that preset event identifier
Including screen identification, at this point, described obtain corresponding event log information according to preset event identifier, including:
The corresponding value of the screen identification and interface identification are obtained according to screen identification, record obtains the screen identification and corresponds to
Value time;
Accordingly, acquisition image corresponding with the interface identification specifically includes:
Judge whether screen is in black state according to the corresponding value of the screen identification, if being in black state, acquisition and institute
State the corresponding all black picture of interface identification;If being in bright screen state, the image of screen locking corresponding with the interface identification is obtained.
6. a kind of processing unit of event log, which is characterized in that including:
Event log information acquiring unit, for obtaining corresponding event log information, the thing according to preset event identifier
Part log information includes temporal information and interface identification;
Image acquisition unit, for obtaining image corresponding with the interface identification;
Time shaft display unit is used for the temporal information and described image corresponding display on a timeline.
7. the processing unit of event log as claimed in claim 6, which is characterized in that the processing unit packet of the event log
It includes:
The pre- memory cell of image, for prestoring image corresponding with the interface identification;
Corresponding, described image acquiring unit is specifically used for obtaining from pre-stored image corresponding with the interface identification
Image.
8. the processing unit of event log as claimed in claims 6 or 7, which is characterized in that preset event identifier includes answering
Mark and response application recovery command identification are sent out with instruction is restored, at this point, the event log information acquiring unit includes:
Send out time recording module, for according to application recovery instruction send out identification record application recovery instruction send out the time with
And the application recovery instruction sends out the interface identification that mark carries;
Response time acquisition module responds the response of the application recovery instruction for obtaining the corresponding application of the interface identification
Time;
Corresponding, described image acquiring unit is specifically used for, and is preset if the response time is less than with the difference for sending out the time
Duration threshold value, obtain interface corresponding with interface identification sectional drawing, temporal information of the response time as time shaft,
If the response time is greater than or equal to preset duration threshold value with the difference for sending out the time, obtain and the interface identification pair
The all black picture answered determines the temporal information of time shaft according to time and the preset duration threshold value of sending out.
9. a kind of terminal device, including memory, processor and it is stored in the memory and can be on the processor
The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 5 when executing the computer program
The step of any one the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, feature to exist
In when the computer program is executed by processor the step of any one of such as claim 1 to 5 of realization the method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810319344.7A CN108520063B (en) | 2018-04-11 | 2018-04-11 | Event log processing method and device and terminal equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810319344.7A CN108520063B (en) | 2018-04-11 | 2018-04-11 | Event log processing method and device and terminal equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108520063A true CN108520063A (en) | 2018-09-11 |
CN108520063B CN108520063B (en) | 2020-12-25 |
Family
ID=63432012
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810319344.7A Expired - Fee Related CN108520063B (en) | 2018-04-11 | 2018-04-11 | Event log processing method and device and terminal equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108520063B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109858548A (en) * | 2019-01-29 | 2019-06-07 | Oppo广东移动通信有限公司 | The judgment method and device of abnormal power consumption, storage medium, communication terminal |
CN109999495A (en) * | 2019-03-28 | 2019-07-12 | 网易(杭州)网络有限公司 | The processing method and system of artificial intelligence AI location mode information |
CN112699705A (en) * | 2019-10-22 | 2021-04-23 | 杭州海康威视数字技术股份有限公司 | Information acquisition method, fault positioning method and device and electronic equipment |
CN113867846A (en) * | 2021-10-25 | 2021-12-31 | 维沃移动通信有限公司 | Application program control method and device |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040194114A1 (en) * | 2003-03-24 | 2004-09-30 | American Megatrends, Inc. | Method and system for managing the contents of an event log stored within a computer |
CN103902643A (en) * | 2012-12-27 | 2014-07-02 | 横河电机株式会社 | Event analysis apparatus, storage medium and method for analyzing events |
CN105260082A (en) * | 2015-10-16 | 2016-01-20 | 华为技术有限公司 | Display method for test data and development terminal |
CN105740144A (en) * | 2016-01-27 | 2016-07-06 | 浪潮(北京)电子信息产业有限公司 | Automated testing method and system for Android mobile Terminal |
CN105824958A (en) * | 2016-03-31 | 2016-08-03 | 广州华多网络科技有限公司 | Method, device and system for inquiring log |
CN105912731A (en) * | 2016-05-30 | 2016-08-31 | 北京网智天元科技股份有限公司 | Information showing method and device based on time axis |
CN107102795A (en) * | 2017-05-31 | 2017-08-29 | 努比亚技术有限公司 | A kind of log recording method, mobile terminal and computer-readable recording medium |
-
2018
- 2018-04-11 CN CN201810319344.7A patent/CN108520063B/en not_active Expired - Fee Related
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040194114A1 (en) * | 2003-03-24 | 2004-09-30 | American Megatrends, Inc. | Method and system for managing the contents of an event log stored within a computer |
CN103902643A (en) * | 2012-12-27 | 2014-07-02 | 横河电机株式会社 | Event analysis apparatus, storage medium and method for analyzing events |
CN105260082A (en) * | 2015-10-16 | 2016-01-20 | 华为技术有限公司 | Display method for test data and development terminal |
CN105740144A (en) * | 2016-01-27 | 2016-07-06 | 浪潮(北京)电子信息产业有限公司 | Automated testing method and system for Android mobile Terminal |
CN105824958A (en) * | 2016-03-31 | 2016-08-03 | 广州华多网络科技有限公司 | Method, device and system for inquiring log |
CN105912731A (en) * | 2016-05-30 | 2016-08-31 | 北京网智天元科技股份有限公司 | Information showing method and device based on time axis |
CN107102795A (en) * | 2017-05-31 | 2017-08-29 | 努比亚技术有限公司 | A kind of log recording method, mobile terminal and computer-readable recording medium |
Non-Patent Citations (1)
Title |
---|
贾若雨等: "面向在线交易日志的用户购买行为可视化分析", 《软件学报》 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109858548A (en) * | 2019-01-29 | 2019-06-07 | Oppo广东移动通信有限公司 | The judgment method and device of abnormal power consumption, storage medium, communication terminal |
CN109858548B (en) * | 2019-01-29 | 2023-04-18 | Oppo广东移动通信有限公司 | Method and device for judging abnormal power consumption, storage medium and communication terminal |
CN109999495A (en) * | 2019-03-28 | 2019-07-12 | 网易(杭州)网络有限公司 | The processing method and system of artificial intelligence AI location mode information |
CN109999495B (en) * | 2019-03-28 | 2023-02-28 | 网易(杭州)网络有限公司 | Method and system for processing artificial intelligence AI unit state information |
CN112699705A (en) * | 2019-10-22 | 2021-04-23 | 杭州海康威视数字技术股份有限公司 | Information acquisition method, fault positioning method and device and electronic equipment |
CN113867846A (en) * | 2021-10-25 | 2021-12-31 | 维沃移动通信有限公司 | Application program control method and device |
Also Published As
Publication number | Publication date |
---|---|
CN108520063B (en) | 2020-12-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102197362B (en) | Surfacing and management of window-specific controls | |
CN108520063A (en) | Processing method, device and the terminal device of event log | |
US20150334118A1 (en) | Method and apparatus for clearing notification icon, and storage medium | |
CN109471626B (en) | Page logic structure, page generation method, page data processing method and device | |
CN106445292B (en) | Method and system for managing application programs in different body modes | |
CN108804299A (en) | Application exception processing method and processing device | |
WO2021208512A1 (en) | Method and apparatus for acquiring control information of user interface, terminal and storage medium | |
CN110427232A (en) | Page management method, device, computer equipment and storage medium | |
CN108345483A (en) | A kind of reminding method of notification message, terminal and computer readable storage medium | |
CN107193598A (en) | Application starting method, mobile terminal and computer readable storage medium | |
CN103902258A (en) | Method and device for displaying self-defined menu in webpage | |
CN107506494B (en) | Document handling method, mobile terminal and computer readable storage medium | |
CN112596846A (en) | Method and device for determining interface display content, terminal equipment and storage medium | |
CN108984339A (en) | Data reconstruction method and Related product | |
CN109873980A (en) | Video monitoring method, device and terminal device | |
CN107272989B (en) | Using starting method, apparatus and terminal device | |
CN111198830B (en) | Identification method and device of mobile storage equipment, electronic equipment and storage medium | |
CN108366298A (en) | Video broadcasting method, mobile terminal and computer readable storage medium | |
CN108762983A (en) | Multi-medium data restoration methods and device | |
CN107679222A (en) | Image processing method, mobile terminal and computer-readable recording medium | |
CN112929254A (en) | Message processing method and device and electronic equipment | |
CN109544587A (en) | A kind of FIG pull handle method, apparatus and terminal device | |
CN106484523B (en) | A kind of managing hardware device method and device thereof | |
CN108804258A (en) | Data reconstruction method, device, mobile terminal and storage medium | |
CN108427620A (en) | Information processing method, mobile terminal and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20201225 |