CN108063693B - Information uploading method and terminal equipment - Google Patents

Information uploading method and terminal equipment Download PDF

Info

Publication number
CN108063693B
CN108063693B CN201610984868.9A CN201610984868A CN108063693B CN 108063693 B CN108063693 B CN 108063693B CN 201610984868 A CN201610984868 A CN 201610984868A CN 108063693 B CN108063693 B CN 108063693B
Authority
CN
China
Prior art keywords
state information
running state
operation event
target
target application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610984868.9A
Other languages
Chinese (zh)
Other versions
CN108063693A (en
Inventor
王佳
姬鹏
李劲秋
朱志敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610984868.9A priority Critical patent/CN108063693B/en
Publication of CN108063693A publication Critical patent/CN108063693A/en
Application granted granted Critical
Publication of CN108063693B publication Critical patent/CN108063693B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/06Generation of reports
    • H04L43/065Generation of reports related to network devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3055Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Abstract

The invention discloses an information uploading method and terminal equipment, wherein the method comprises the following steps: running the target application to obtain at least one piece of running state information corresponding to at least one operation event; the running state information at least comprises first-class running state information and second-class running state information, and the first-class running state information represents a normal running state of the target application in a corresponding operation event; the second type of running state information represents an abnormal running state of the target application in a corresponding operation event; and at least part of the running state information in the at least one piece of running state information corresponding to the at least one operation event of the target application is sent to a server side.

Description

Information uploading method and terminal equipment
Technical Field
The present invention relates to information processing technologies in the field of information processing, and in particular, to an information uploading method and a terminal device.
Background
Compared with a web application, in a client application (PC, android, ios), log output is generally at a client, and when a general user feeds back a problem, a developer generally needs log information of the client to check the cause of the problem, and because the amount of the log information of the client is large, it is not practical to upload all log information to a server. At this time, if the user feeds back the problem, the developer generally needs the user to cooperate to send the related log information to the developer to restore the current scene.
The user is matched with the operation of uploading the related logs, the matching operation difficulty is different due to different understanding depths of the related knowledge of the computer of each user, meanwhile, the matching difficulty is increased for part of users due to user time, characters and other reasons, and certain cost is brought to problem site restoration.
Disclosure of Invention
The embodiment of the invention provides an information uploading method and terminal equipment, which can at least solve the problems in the prior art.
The embodiment of the invention provides an information uploading method, which is applied to terminal equipment and comprises the following steps:
running the target application to obtain at least one piece of running state information corresponding to at least one operation event; the running state information at least comprises first-class running state information and second-class running state information, and the first-class running state information represents a normal running state of the target application in a corresponding operation event; the second type of running state information represents an abnormal running state of the target application in a corresponding operation event;
and at least part of running state information in the at least one piece of running state information corresponding to the at least one operation event of the target application is sent to a server side, so that the server side analyzes and processes the target application based on the at least part of running state information of the at least one operation event.
The embodiment of the invention provides a terminal device, and the method comprises the following steps:
the application management unit is used for running at least one operation event of the target application to obtain at least one piece of running state information; the running state information at least comprises first-class running state information and second-class running state information, and the first-class running state information represents a normal running state of the target application in a corresponding operation event; the second type of running state information represents an abnormal running state of the target application in a corresponding operation event;
an information reporting unit, configured to send at least part of the running state information of the at least one running state information corresponding to the at least one operation event of the target application to a server side, so that the server side performs analysis processing on the target application based on the at least part of the running state information of the at least one operation event.
According to the information uploading method and the terminal device provided by the embodiment of the invention, when the terminal device side detects at least one piece of running state information of a target application, at least part of the running state information in the at least one piece of running state information is actively reported to the server side. Therefore, the problems that the system side cannot comprehensively master the concerned state information caused by selecting the reported state information by the user, the use embodiment of the user aiming at the target application is influenced and the like are solved.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of a terminal device in an embodiment of the present invention;
fig. 2 is a schematic view of a scenario in which a terminal device establishes a connection with a network side according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating an information uploading method according to an embodiment of the present invention;
FIG. 4 is a first scenario of the present invention;
FIG. 5 is a diagram illustrating a second scenario of the present invention;
FIG. 6 is a third scenario diagram according to an embodiment of the present invention;
FIG. 7 is a system processing framework diagram according to an embodiment of the present invention;
FIG. 8-1 is a schematic diagram of a first configuration of a terminal device according to an embodiment of the present invention;
fig. 8-2 is a schematic diagram of a second composition structure of the terminal device according to the present invention.
Detailed Description
The invention is described in further detail below with reference to the figures and specific examples.
A terminal device implementing various embodiments of the present invention will now be described with reference to the accompanying drawings. In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in themselves. Thus, "module" and "component" may be used in a mixture.
The terminal device may be implemented in various forms. For example, the terminal described in the present invention may include terminal devices such as a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a navigation device, and the like, and fixed terminals such as a digital TV, a desktop computer, and the like. In the following, it is assumed that the terminal is a terminal device. However, it will be understood by those skilled in the art that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal in addition to elements particularly used for moving purposes.
Fig. 1 is a schematic hardware structure of a terminal device implementing various embodiments of the present invention.
The terminal device 100 may include a communication unit 110, a user input unit 130, an output unit 150, a memory 160, an interface unit 170, a controller 180, and a power supply unit 190, etc. Fig. 1 shows a terminal device having various components, but it is to be understood that not all of the illustrated components are required to be implemented. More or fewer components may alternatively be implemented. The elements of the terminal device will be described in detail below.
The communication unit 110 typically includes one or more components that allow radio communication between the terminal device 100 and a wireless communication system or network.
The user input unit 130 may generate key input data to control various operations of the terminal device according to a command input by a user. The user input unit 130 allows a user to input various types of information, and may include a keyboard, dome sheet, touch pad (e.g., a touch-sensitive member that detects changes in resistance, pressure, capacitance, and the like due to being touched), scroll wheel, joystick, and the like. In particular, when the touch pad is superimposed on the display unit 151 in the form of a layer, a touch screen may be formed.
The interface unit 170 serves as an interface through which at least one external device is connected to the terminal apparatus 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The identification module may store various information for authenticating a user using the terminal apparatus 100 and may include a User Identity Module (UIM), a Subscriber Identity Module (SIM), a Universal Subscriber Identity Module (USIM), and the like. In addition, a device having an identification module (hereinafter referred to as "identification device") may take the form of a smart card, and thus, the identification device may be connected with the terminal apparatus 100 via a port or other connection means. The interface unit 170 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the terminal apparatus 100 or may be used to transmit data between the terminal apparatus and the external device.
In addition, when the terminal device 100 is connected with an external cradle, the interface unit 170 may serve as a path through which power is supplied from the cradle to the terminal device 100 or may serve as a path through which various command signals input from the cradle are transmitted to the terminal device. Various command signals or power input from the cradle may be used as signals for identifying whether the terminal device is accurately mounted on the cradle. The output unit 150 is configured to provide output signals (e.g., audio signals, video signals, alarm signals, vibration signals, etc.) in a visual, audio, and/or tactile manner. The output unit 150 may include a display unit 151 and the like.
The memory 160 may store software programs and the like for processing and controlling operations performed by the controller 180, or may temporarily store data (e.g., a phonebook, messages, still images, videos, and the like) that has been or will be output. Also, the memory 160 may store data regarding various ways of vibration and audio signals output when a touch is applied to the touch screen.
The memory 160 may include at least one type of storage medium including a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. Also, the terminal device 100 may cooperate with a network storage that performs a storage function of the memory 160 through a network connection.
The controller 180 generally controls the overall operation of the terminal device. For example, the controller 180 performs control and processing related to voice calls, data communications, video calls, and the like. In addition, the controller 180 may include a multimedia module 181 for reproducing (or playing back) multimedia data, and the multimedia module 181 may be constructed within the controller 180 or may be constructed separately from the controller 180. The controller 180 may perform a pattern recognition process to recognize a handwriting input or a picture drawing input performed on the touch screen as a character or an image.
The power supply unit 190 receives external power or internal power and provides appropriate power required to operate various elements and components under the control of the controller 180.
The various embodiments described herein may be implemented in a computer-readable medium using, for example, computer software, hardware, or any combination thereof. For a hardware implementation, the embodiments described herein may be implemented using at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a processor, a controller, a microcontroller, a microprocessor, an electronic unit designed to perform the functions described herein, and in some cases, such embodiments may be implemented in the controller 180. For a software implementation, the implementation such as a process or a function may be implemented with a separate software module that allows performing at least one function or operation. The software codes may be implemented by software applications (or programs) written in any suitable programming language, which may be stored in the memory 160 and executed by the controller 180.
Further, based on the hardware structure of the terminal device, the terminal device provided in this embodiment can also access to the server side through a mobile communication network or other networks to obtain a corresponding server, and a connection relationship diagram of the terminal device may refer to fig. 2, which includes: the system comprises a server 11 and terminal devices 21-24, wherein the terminal devices 21-24 perform information interaction with the server through a wired network or a wireless network, and the terminal devices 21-24 are used for representing several corresponding implementation types, which can include types of mobile phones, desktop computers, PCs, all-in-one machines and the like.
Based on the above hardware structure of the terminal device and the system result, the following embodiments of the present invention are proposed.
The first embodiment,
An embodiment of the present invention provides an information uploading method, as shown in fig. 3, including:
step 301: running the target application to obtain at least one piece of running state information corresponding to at least one operation event; the running state information at least comprises first-class running state information and second-class running state information, and the first-class running state information represents a normal running state of the target application in a corresponding operation event; the second type of running state information represents an abnormal running state of the target application in a corresponding operation event;
step 302: and at least part of running state information in the at least one piece of running state information corresponding to the at least one operation event of the target application is sent to a server side, so that the server side analyzes and processes the target application based on the at least part of running state information of the at least one operation event.
Here, the terminal device may be any device capable of providing a processing function for an application, for example, a smart phone, a tablet computer, or a desktop computer, which is not exhaustive in this embodiment.
The target application may be any one of a plurality of secure applications in the terminal device, may be an application capable of interacting with the network side, and may be an application incapable of interacting with the network side.
At least one operation event of the target application may be a plurality of operation events corresponding to the target application in a process from the start to the normal operation and the shutdown, for example, as shown in fig. 4, a user starts an application a, and a terminal device performs a start operation event; then, the user may enter an operation of executing a login process, for example, the user logs in the application a with the account a shown in the figure, and at this time, a corresponding login operation event occurs; after the user logs in the application a with the account a, an interactive operation event may be entered, and at this time, different operation events may be entered for different operations, for example, a game process, an instant messaging interaction, and the like.
Further, the at least one operation state information of the at least one operation event may include: when each operation event of the target application is executed, a log can be generated in the system, and the log is used for recording the normal operation state information or abnormal operation state information of the corresponding operation event.
After at least one piece of running state information is obtained by running at least one operation event of the target application, the running state information is stored in a cache corresponding to the target application; specifically, one piece of running state information can be stored in the cache every time the running state information is detected; the cache may correspond to a saving path, where the saving path may be a default path related to the target application, or may be set by a user according to an actual situation, for example, the saving path may be set to folder 1 in an SD card, and this is not exhaustive.
Further, the terminal device may be further configured to classify at least one piece of operation state information, for example, the second type of operation state information (i.e., abnormal log information) may be obtained according to the keyword, and the rest is the first type of operation state information. Specifically, the keyword may be some information set according to actual conditions, for example, when information such as "error" occurs in the running state information, it may be determined that the running state information is the second type of running state information (i.e., abnormal log information). For example, referring to fig. 5, when an application a is running, assuming that one process is an operation event for starting the application a, at this time, three logs can be generated, which are log 1, log 2 and log 3 in the figure; if the word "error" exists in the log 3, the log 3 can be used as the second type of running state information, i.e., an abnormal log.
Correspondingly, after obtaining at least one piece of operation state information, at least a part of the operation state information in the at least one piece of operation state information may be sent to the server side, and the method may include a plurality of processing manners, as follows:
the first treatment method,
Based on the configuration information sent by the server, selecting part of the operation state information from the plurality of operation state information and sending the selected operation state information to the server, specifically:
for example, as shown in fig. 6, configuration information sent by the server side is received, where the configuration information includes at least one of the following: at least one target operation event, a preset time period and a running system.
The at least one target operation event may be issued to the terminal device for some processes currently concerned by the server side.
The server side determines which operation events are currently concerned by management personnel, for example, the operation events can be some processes with more error reporting of users, and if the users report login problems frequently, the logged-in operation events can be used as a target operation event; or, if a modified version appears according to the current target application, the operation event corresponding to the modified part is considered for the revised latest version, and then the operation event corresponding to the modified part is taken as a target operation event.
The preset time period can be set according to actual conditions, for example, collection can be performed for relatively dense operation time, for example, when the target application is a network game, relatively dense user interaction behaviors may occur between 8-10PM at night, and the preset time period can be set to 8-10PM within 1 month; or, the new version of the target application is just released, and then the 1 month being released may be concerned about the relevant use condition, and the 1 month is taken as the preset time period for log reporting.
In addition, the configuration information may further include some other information to enable the server to perform detection in combination with more situations, for example, the information may include a user account when logging in the target application, a current operating system of the terminal device (which may include systems such as android, IOS, Windows, and the like), version information, an upload path, and the like.
In this scenario, the sending at least part of the running state information in the at least one piece of running state information to the server side includes:
based on the configuration information, sending at least one piece of running state information corresponding to the at least one target operation event to the server side;
and/or the presence of a gas in the gas,
and sending at least one piece of running state information of which the generating moment is in the preset time period to the server side based on the configuration information.
That is, regardless of whether the terminal device detects the second type of operation state information, the log information is sent to the server side as long as the log information is directed to the target operation event or the operation state information within a preset time period; accordingly, the server side can comprehensively analyze whether the target operation event has a problem according to the received operation conditions sent by the plurality of terminal devices.
It can be understood that the two conditions of reporting the target operation event and the running state information within the preset time period may be used in combination, for example, the two conditions may be part of the running state information of the target operation event within the preset time period.
The second treatment method,
The server side issues the configuration information, parameters such as a target operation event, a preset time period and the like can be limited in the configuration information, but when the terminal device reports the running state information, some screening can be performed first, and only the second type of running state information is reported, which is specifically as follows:
based on the configuration information, sending at least one piece of second-class running state information corresponding to the at least one target operation event to the server side;
and/or the presence of a gas in the gas,
and sending at least one piece of second-class running state information of which the generating time is in the preset time period to the server side based on the configuration information.
The specific acquisition of the configuration information and the parameters thereof are the same as those in the first processing scenario, and are not described herein again.
The difference from the first processing method is that in this scenario, when some running state information is reported, screening is performed at first, and only the state information of the abnormal part is reported.
It should be understood that, when the operation status information is sent to the server side in the above two processing manners, operations such as packing and compressing the operation status information may be performed first, and finally, the information obtained after compression is sent to the server side.
The third treatment method,
The terminal device may actively report the second type of operation state information in the detected operation state information to the server side, so that the server side performs the correlation analysis, which is specifically as follows:
the sending at least part of the running state information in the at least one piece of running state information to the server side includes:
executing the operation event and sending second type operation state information in at least one piece of operation state information to the server side; that is, as long as when any one operation event is processed, once the second type running state information is detected, the second type running state information is directly reported to the server;
alternatively, the first and second electrodes may be,
when the operation event is finished, compressing second type operation state information in at least one piece of operation state information corresponding to the operation event, and sending the compressed second type operation state information to the server side; that is, when any one operation event is processed, reporting all the second-type running state information obtained in the operation event to the server;
alternatively, the first and second electrodes may be,
after the target application is closed and before the cache information corresponding to the target application is deleted, compressing second-class running state information in at least one piece of running state information corresponding to at least one operation event in the target application, and sending the compressed second-class running state information to the server side; that is, after the processing target application finishes the operation, all the second-class running state information obtained from all the operation events of the target application is reported to the server.
The processing mode is particularly suitable for the scene that the configuration information sent by the server side is not received. That is, in the present processing method, the second type operation state information (abnormality log) is reported as long as the abnormality log is detected, without being limited to the instruction of the server.
Further, reporting the second type of operation status information may at least include: identification information of the target application, operation events, generation time and specific running state information. Besides some of the above parameters, the second type of running state information may further include information such as a user account number, a version number of a target application, and the like, which is not exhaustive here.
The fourth treatment method,
The first processing manner and the third processing manner may be used in a combined manner, or the second processing manner and the third processing manner may be used in a combined manner, specifically:
after receiving the configuration information, processing the target operation event by adopting a first processing mode or a second processing mode; in addition to the target operation event, a third processing manner is adopted for processing.
Based on the fourth processing mode, the following is specifically described with reference to fig. 7: the method is divided into two scenes, one is an event monitoring scene, and the other is an active uploading scene:
an event monitoring scene: the event monitoring scenario generally refers to that after a user feeds back a problem to a developer, the developer issues configuration in a background configuration log, for example, a user ID is specified, a time point when the problem fed back by the user occurs, and version and environment information of a client. The log Agent is equivalent to a daemon process, and when a user performs some specific operations, the user can pull related log uploading information from the server to check whether the related log needs to be pulled. After the developer configures the relevant information, when the user triggers the relevant event, the log Agent pulls the log uploading task information, analyzes the time interval of the log uploading task and the like, reads the logs in the relevant interval in the local log file, packs the logs, compresses the logs and uploads the logs to the server.
Actively uploading scenes: the event monitoring scene is generally that after the user feeds back information, the developer configures related issued tasks to trigger uploading, and for the log of the abnormal scene, the user may damage the information of the first site due to the principles of clearing the local cache and the like. Therefore, for the logs in the abnormal scenes, the log uploading task is not pulled, but the logs are directly packaged, compressed and uploaded to the server.
The configuration information is based on a DB in which a task list configured by a developer is stored, and access speed is increased by means of a cache (e.g., memcache), and a table structure may be adopted.
Therefore, by adopting the scheme, when the terminal equipment side detects at least one piece of running state information of the target application, at least part of the running state information in the at least one piece of running state information can be actively reported to the server side. Therefore, the problems that the system side cannot comprehensively master the concerned state information caused by selecting the reported state information by the user, the use embodiment of the user aiming at the target application is influenced and the like are solved.
Example II,
The present embodiment provides a terminal device, as shown in fig. 8-1, including:
the application management unit 81 is configured to run a target application to obtain at least one piece of running state information corresponding to at least one operation event; the running state information at least comprises first-class running state information and second-class running state information, and the first-class running state information represents a normal running state of the target application in a corresponding operation event; the second type of running state information represents an abnormal running state of the target application in a corresponding operation event;
an information reporting unit 82, configured to send at least part of the running state information of the at least one running state information corresponding to the at least one operation event of the target application to a server side, so that the server side performs analysis processing on the target application based on the at least part of the running state information of the at least one operation event.
Here, the terminal device may be any device capable of providing a processing function for an application, for example, a smart phone, a tablet computer, or a desktop computer, which is not exhaustive in this embodiment.
The target application may be any one of a plurality of secure applications in the terminal device, may be an application capable of interacting with the network side, and may be an application incapable of interacting with the network side.
At least one operation event of the target application may be a plurality of operation events corresponding to the target application in a process from the start to the normal operation and the shutdown, for example, as shown in fig. 4, a user starts an application a, and a terminal device performs a start operation event; then, the user may enter an operation of executing a login process, for example, the user logs in the application a with the account a shown in the figure, and at this time, a corresponding login operation event occurs; after the user logs in the application a with the account a, an interactive operation event may be entered, and at this time, different operation events may be entered for different operations, for example, a game process, an instant messaging interaction, and the like.
Further, the at least one operation state information of the at least one operation event may include: when each operation event of the target application is executed, a log can be generated in the system, and the log is used for recording the normal operation state information or abnormal operation state information of the corresponding operation event.
After at least one piece of running state information is obtained by running at least one operation event of the target application, the running state information is stored in a cache corresponding to the target application; specifically, one piece of running state information can be stored in the cache every time the running state information is detected; the cache may correspond to a saving path, where the saving path may be a default path related to the target application, or may be set by a user according to an actual situation, for example, the saving path may be set to folder 1 in an SD card, and this is not exhaustive.
Further, the terminal device may be further configured to classify at least one piece of operation state information, for example, the second type of operation state information (i.e., abnormal log information) may be obtained according to the keyword, and the rest is the first type of operation state information. Specifically, the keyword may be some information set according to actual conditions, for example, when information such as "error" occurs in the running state information, it may be determined that the running state information is the second type of running state information (i.e., abnormal log information). For example, referring to fig. 5, when an application a is running, assuming that one process is an operation event for starting the application a, at this time, three logs can be generated, which are log 1, log 2 and log 3 in the figure; if the word "error" exists in the log 3, the log 3 can be used as the second type of running state information, i.e., an abnormal log.
Correspondingly, after obtaining at least one piece of operation state information, at least a part of the operation state information in the at least one piece of operation state information may be sent to the server side, and the method may include a plurality of processing manners, as follows:
the first treatment method,
Based on the configuration information sent by the server, selecting part of the operation state information from the plurality of operation state information and sending the selected operation state information to the server, specifically:
for example, as shown in fig. 8-2, the terminal device further includes: an information receiving unit 83, configured to receive configuration information sent by the server side, where the configuration information includes at least one of the following: at least one target operational event, a preset time period.
The at least one target operation event may be issued to the terminal device for some processes currently concerned by the server side.
The server side determines which operation events are currently concerned by management personnel, for example, the operation events can be some processes with more error reporting of users, and if the users report login problems frequently, the logged-in operation events can be used as a target operation event; or, if a modified version appears according to the current target application, the operation event corresponding to the modified part is considered for the revised latest version, and then the operation event corresponding to the modified part is taken as a target operation event.
The preset time period can be set according to actual conditions, for example, collection can be performed for relatively dense operation time, for example, when the target application is a network game, relatively dense user interaction behaviors may occur between 8-10PM at night, and the preset time period can be set to 8-10PM within 1 month; or, the new version of the target application is just released, and then the 1 month being released may be concerned about the relevant use condition, and the 1 month is taken as the preset time period for log reporting.
In addition, the configuration information may further include some other information to enable the server to perform detection in combination with more situations, for example, the information may include a user account when logging in the target application, a current operating system of the terminal device (which may include systems such as android, IOS, Windows, and the like), version information, an upload path, and the like.
In this scenario, the sending at least part of the running state information in the at least one piece of running state information to the server side includes:
the information reporting unit is configured to send at least one piece of running state information corresponding to the at least one target operation event to the server side based on the configuration information;
and/or the presence of a gas in the gas,
and the information reporting unit is used for sending at least one piece of running state information of which the generating moment is within the preset time period to the server side based on the configuration information.
That is, regardless of whether the terminal device detects the second type of operation state information, the log information is sent to the server side as long as the log information is directed to the target operation event or the operation state information within a preset time period; accordingly, the server side can comprehensively analyze whether the target operation event has a problem according to the received operation conditions sent by the plurality of terminal devices.
It can be understood that the two conditions of reporting the target operation event and the running state information within the preset time period may be used in combination, for example, the two conditions may be part of the running state information of the target operation event within the preset time period.
The second treatment method,
The server side issues the configuration information, parameters such as a target operation event, a preset time period and the like can be limited in the configuration information, but when the terminal device reports the running state information, some screening can be performed first, and only the second type of running state information is reported, which is specifically as follows:
the information reporting unit is configured to send, based on the configuration information, at least one piece of second-class running state information corresponding to the at least one target operation event to the server side;
and/or the presence of a gas in the gas,
and the information reporting unit is used for sending at least one piece of second-type running state information of which the generating time is within the preset time period to the server side based on the configuration information.
The specific acquisition of the configuration information and the parameters thereof are the same as those in the first processing scenario, and are not described herein again.
The difference from the first processing method is that in this scenario, when some running state information is reported, screening is performed at first, and only the state information of the abnormal part is reported.
It should be understood that, when the operation status information is sent to the server side in the above two processing manners, operations such as packing and compressing the operation status information may be performed first, and finally, the information obtained after compression is sent to the server side.
The third treatment method,
The terminal device may actively report the second type of operation state information in the detected operation state information to the server side, so that the server side performs the correlation analysis, which is specifically as follows:
the sending at least part of the running state information in the at least one piece of running state information to the server side includes:
the information reporting unit is configured to execute the operation event and send the second type of operation state information in at least one piece of operation state information to the server side; that is, as long as when any one operation event is processed, once the second type running state information is detected, the second type running state information is directly reported to the server;
alternatively, the first and second electrodes may be,
the information reporting unit is configured to, when the operation event is ended, compress second-type running state information in at least one piece of running state information corresponding to the operation event, and send the compressed second-type running state information to the server side; that is, when any one operation event is processed, reporting all the second-type running state information obtained in the operation event to the server;
alternatively, the first and second electrodes may be,
the information reporting unit is configured to compress second-type running state information in at least one piece of running state information corresponding to at least one operation event in the target application after the target application is closed and before the cache information corresponding to the target application is deleted, and send the compressed second-type running state information to the server side; that is, after the processing target application finishes the operation, all the second-class running state information obtained from all the operation events of the target application is reported to the server.
The processing mode is particularly suitable for the scene that the configuration information sent by the server side is not received. That is, in the present processing method, the second type operation state information (abnormality log) is reported as long as the abnormality log is detected, without being limited to the instruction of the server.
Further, reporting the second type of operation status information may at least include: identification information of the target application, operation events, generation time and specific running state information. Besides some of the above parameters, the second type of running state information may further include information such as a user account number, a version number of a target application, and the like, which is not exhaustive here.
The fourth treatment method,
The first processing manner and the third processing manner may be used in a combined manner, or the second processing manner and the third processing manner may be used in a combined manner, specifically:
after receiving the configuration information, processing the target operation event by adopting a first processing mode or a second processing mode; in addition to the target operation event, a third processing manner is adopted for processing.
Based on the fourth processing mode, the following is specifically described with reference to fig. 8: the method is divided into two scenes, one is an event monitoring scene, and the other is an active uploading scene:
an event monitoring scene: the event monitoring scenario generally refers to that after a user feeds back a problem to a developer, the developer issues configuration in a background configuration log, for example, a user ID is specified, a time point when the problem fed back by the user occurs, and version and environment information of a client. The log Agent is equivalent to a daemon process, and when a user performs some specific operations, the user can pull related log uploading information from the server to check whether the related log needs to be pulled. After the developer configures the relevant information, when the user triggers the relevant event, the log Agent pulls the log uploading task information, analyzes the time interval of the log uploading task and the like, reads the logs in the relevant interval in the local log file, packs the logs, compresses the logs and uploads the logs to the server.
Actively uploading scenes: the event monitoring scene is generally that after the user feeds back information, the developer configures related issued tasks to trigger uploading, and for the log of the abnormal scene, the user may damage the information of the first site due to the principles of clearing the local cache and the like. Therefore, for the logs in the abnormal scenes, the log uploading task is not pulled, but the logs are directly packaged, compressed and uploaded to the server.
The configuration information is based on a DB in which a task list configured by a developer is stored, and access speed is increased by means of a cache (e.g., memcache), and a table structure may be adopted.
Therefore, by adopting the scheme, when the terminal equipment side detects at least one piece of running state information of the target application, at least part of the running state information in the at least one piece of running state information can be actively reported to the server side. Therefore, the problems that the system side cannot comprehensively master the concerned state information caused by selecting the reported state information by the user, the use embodiment of the user aiming at the target application is influenced and the like are solved.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (5)

1. An information uploading method is applied to terminal equipment, and is characterized by comprising the following steps:
receiving configuration information sent by a server side, wherein the configuration information comprises at least one target operation event and a preset time period, and the target operation event is a login operation event or an operation event of a modified part aiming at a revised target application;
running the target application to obtain at least one piece of running state information corresponding to at least one operation event; the running state information at least comprises first-class running state information and second-class running state information, and the first-class running state information represents a normal running state of the target application in a corresponding operation event; the second type of running state information represents an abnormal running state of the target application in a corresponding operation event;
for the target operation event, sending second type operation state information, which corresponds to the target operation event and has generation time within the preset time period, in the at least one piece of operation state information corresponding to the at least one operation event of the target application to a server side based on the configuration information, so that the server side performs exception analysis on the target operation event based on the second type operation state information, which corresponds to the target operation event and has generation time within the preset time period;
for other operation events of the at least one operation event different from the target operation event, performing the following processing:
when the execution of the other operation events is finished, compressing second type operation state information in at least one piece of operation state information corresponding to the other operation events, and sending the compressed second type operation state information to the server side, so that the server side performs exception analysis on the other operation events on the basis of the received second type operation state information in the at least one piece of operation state information corresponding to the other operation events;
or after the target application is closed and before the cache information corresponding to the target application is deleted, compressing second-class running state information in at least one piece of running state information corresponding to at least one operation event of the target application, and sending the compressed second-class running state information to the server side, so that the server side performs exception analysis on other operation events based on the received second-class running state information in the at least one piece of running state information corresponding to the at least one operation event of the target application;
wherein the second type of operating state information includes at least one of: identification information of the target application, the version number of the target application, an operation event, generation time and specific running state information.
2. The method according to claim 1, wherein the sending, to the server side, a second type of running state information, which corresponds to the target operation event and whose generation time is within the preset time period, of the at least one piece of running state information corresponding to the at least one operation event of the target application based on the configuration information, for the target operation event comprises:
in the process of executing the target operation event, based on the configuration information, sending second-class running state information which corresponds to the target operation event and is generated within the preset time period to the server side;
alternatively, the first and second electrodes may be,
when the target operation event is finished, compressing second type running state information which corresponds to the target operation event and is generated within the preset time period based on the configuration information, and sending the compressed second type running state information to the server side;
alternatively, the first and second electrodes may be,
and after the target application is closed and before the cache information corresponding to the target application is deleted, compressing second-class running state information which corresponds to the target operation event and is generated within the preset time period at the moment based on the configuration information, and sending the compressed second-class running state information to the server side.
3. A terminal device, characterized in that the terminal device comprises:
the application management unit is used for receiving configuration information sent by a server side, wherein the configuration information comprises at least one target operation event and a preset time period, and the target operation event is a login operation event or an operation event aiming at a modified part of a revised target application; running the target application to obtain at least one piece of running state information corresponding to at least one operation event; the running state information at least comprises first-class running state information and second-class running state information, and the first-class running state information represents a normal running state of the target application in a corresponding operation event; the second type of running state information represents an abnormal running state of the target application in a corresponding operation event;
an information reporting unit, configured to send, based on the configuration information, second type running state information, which corresponds to the target operation event and has a generation time within the preset time period, of the at least one piece of running state information corresponding to the at least one operation event of the target application to a server side, so that the server side performs exception analysis on the target operation event based on the second type running state information, which corresponds to the target operation event and has a generation time within the preset time period;
for other operation events of the at least one operation event different from the target operation event, performing the following processing:
when the execution of the other operation events is finished, compressing second type operation state information in at least one piece of operation state information corresponding to the other operation events, and sending the compressed second type operation state information to the server side, so that the server side performs exception analysis on the other operation events on the basis of the received second type operation state information in the at least one piece of operation state information corresponding to the other operation events;
or after the target application is closed and before the cache information corresponding to the target application is deleted, compressing second-class running state information in at least one piece of running state information corresponding to at least one operation event of the target application, and sending the compressed second-class running state information to the server side, so that the server side performs exception analysis on other operation events based on the received second-class running state information in the at least one piece of running state information corresponding to the at least one operation event of the target application;
wherein the second type of operating state information includes at least one of: identification information of the target application, the version number of the target application, an operation event, generation time and specific running state information.
4. The terminal device according to claim 3, wherein the information reporting unit is configured to, in executing the target operation event, send, to the server side, second type of running state information that corresponds to the target operation event and is generated at the time within the preset time period based on the configuration information;
alternatively, the first and second electrodes may be,
when the target operation event is finished, compressing second type running state information which corresponds to the target operation event and is generated within the preset time period based on the configuration information, and sending the compressed second type running state information to the server side;
alternatively, the first and second electrodes may be,
and after the target application is closed and before the cache information corresponding to the target application is deleted, compressing second-class running state information which corresponds to the target operation event and is generated within the preset time period at the moment based on the configuration information, and sending the compressed second-class running state information to the server side.
5. A storage medium storing a computer program for implementing the information uploading method according to any one of claims 1 to 2 when executed by a computer device.
CN201610984868.9A 2016-11-09 2016-11-09 Information uploading method and terminal equipment Active CN108063693B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610984868.9A CN108063693B (en) 2016-11-09 2016-11-09 Information uploading method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610984868.9A CN108063693B (en) 2016-11-09 2016-11-09 Information uploading method and terminal equipment

Publications (2)

Publication Number Publication Date
CN108063693A CN108063693A (en) 2018-05-22
CN108063693B true CN108063693B (en) 2021-09-07

Family

ID=62137966

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610984868.9A Active CN108063693B (en) 2016-11-09 2016-11-09 Information uploading method and terminal equipment

Country Status (1)

Country Link
CN (1) CN108063693B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108848134A (en) * 2018-05-29 2018-11-20 郑州云海信息技术有限公司 A kind of server monitoring information collecting method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103425541A (en) * 2012-05-25 2013-12-04 鸿富锦精密工业(深圳)有限公司 Electronic device, system and method for exception handling mechanism detection
CN103955544A (en) * 2014-05-21 2014-07-30 北京奇艺世纪科技有限公司 File uploading method and file uploading system
CN104598369A (en) * 2014-12-23 2015-05-06 北京畅游天下网络技术有限公司 Method and device for monitoring software in mobile device
CN105446878A (en) * 2015-11-09 2016-03-30 上海爱数信息技术股份有限公司 Continuous program automated testing method
CN105468506A (en) * 2014-09-02 2016-04-06 腾讯科技(深圳)有限公司 Application management method, device and terminal
CN105871574A (en) * 2015-01-21 2016-08-17 中国移动通信集团浙江有限公司 Method, device and system for monitoring log based on software development kit

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10148708B2 (en) * 2014-11-26 2018-12-04 Ricoh Company, Ltd. Electronic information terminal, image processing apparatus, and information processing method
CN105404576A (en) * 2015-12-02 2016-03-16 小米科技有限责任公司 Anomaly information acquisition method and apparatus

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103425541A (en) * 2012-05-25 2013-12-04 鸿富锦精密工业(深圳)有限公司 Electronic device, system and method for exception handling mechanism detection
CN103955544A (en) * 2014-05-21 2014-07-30 北京奇艺世纪科技有限公司 File uploading method and file uploading system
CN105468506A (en) * 2014-09-02 2016-04-06 腾讯科技(深圳)有限公司 Application management method, device and terminal
CN104598369A (en) * 2014-12-23 2015-05-06 北京畅游天下网络技术有限公司 Method and device for monitoring software in mobile device
CN105871574A (en) * 2015-01-21 2016-08-17 中国移动通信集团浙江有限公司 Method, device and system for monitoring log based on software development kit
CN105446878A (en) * 2015-11-09 2016-03-30 上海爱数信息技术股份有限公司 Continuous program automated testing method

Also Published As

Publication number Publication date
CN108063693A (en) 2018-05-22

Similar Documents

Publication Publication Date Title
CN110716895B (en) Target data archiving method, device, computer equipment and medium
CN106708734B (en) Software anomaly detection method and device
CN104268055B (en) The monitoring method and device of a kind of program exception
CN111064590B (en) Abnormal state repairing method and device and readable storage medium
CN108153647B (en) Log processing method and device, terminal equipment and storage medium
CN107948744B (en) Interface detection method, interface detection device, and computer-readable storage medium
CN106506820B (en) Backup method and device for mobile terminal data
CN103400076A (en) Method, device and system for detecting malicious software on mobile terminal
CN108572908B (en) Information feedback method and device
CN108090345B (en) Linux system external command execution method and device
CN111475359B (en) System testing method, device and storage medium under multi-message interaction scene
CN106203092B (en) Method and device for intercepting shutdown of malicious program and electronic equipment
CN110855833A (en) Terminal retrieving method and device, terminal and storage medium
CN112799925A (en) Data acquisition method and device, electronic equipment and readable storage medium
CN105631970A (en) One-button type information sharing method and system based on automobile data recorder
CN105117650A (en) Method and apparatus for protecting system security of mobile terminal
CN107766222B (en) Black screen detection method, mobile terminal and computer readable storage medium
CN112380552A (en) Data processing method and device, storage medium and computer equipment
CN114157584A (en) Cloud mobile phone monitoring method and device, electronic equipment and storage medium
CN108063693B (en) Information uploading method and terminal equipment
CN108418890B (en) Face special effect resource generation method, device and system and readable storage medium
CN113609107A (en) Database management method and device, electronic equipment and storage medium
CN111930565B (en) Process fault self-healing method, device and equipment for components in distributed management system
CN111159738B (en) Authority configuration method, application login method and device
CN107168648B (en) File storage method and device and terminal

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