CN108255674A - Method and device for collecting process logs of multi-process browser and mobile terminal - Google Patents
Method and device for collecting process logs of multi-process browser and mobile terminal Download PDFInfo
- Publication number
- CN108255674A CN108255674A CN201711496256.6A CN201711496256A CN108255674A CN 108255674 A CN108255674 A CN 108255674A CN 201711496256 A CN201711496256 A CN 201711496256A CN 108255674 A CN108255674 A CN 108255674A
- Authority
- CN
- China
- Prior art keywords
- browser
- mutual exclusion
- shared drive
- log
- exclusion lock
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 492
- 230000015654 memory Effects 0.000 claims abstract description 133
- 230000007717 exclusion Effects 0.000 claims abstract description 31
- 238000010586 diagram Methods 0.000 description 10
- 230000006870 function Effects 0.000 description 10
- 230000002093 peripheral effect Effects 0.000 description 10
- 238000004891 communication Methods 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 7
- 238000001514 detection method Methods 0.000 description 5
- 230000001133 acceleration Effects 0.000 description 4
- 238000004458 analytical method Methods 0.000 description 3
- 230000005484 gravity Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- VYZAMTAEIAYCRO-UHFFFAOYSA-N Chromium Chemical compound [Cr] VYZAMTAEIAYCRO-UHFFFAOYSA-N 0.000 description 2
- 238000003491 array Methods 0.000 description 2
- 229910052804 chromium Inorganic materials 0.000 description 2
- 239000011651 chromium Substances 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 229910000838 Al alloy Inorganic materials 0.000 description 1
- 229910000851 Alloy steel Inorganic materials 0.000 description 1
- 244000035744 Hura crepitans Species 0.000 description 1
- FBOZXECLQNJBKD-ZDUSSCGKSA-N L-methotrexate Chemical compound C=1N=C2N=C(N)N=C(N)C2=NC=1CN(C)C1=CC=C(C(=O)N[C@@H](CCC(O)=O)C(O)=O)C=C1 FBOZXECLQNJBKD-ZDUSSCGKSA-N 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 229910052751 metal Inorganic materials 0.000 description 1
- 239000002184 metal Substances 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000003825 pressing Methods 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 239000010959 steel Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/52—Program synchronisation; Mutual exclusion, e.g. by means of semaphores
- G06F9/526—Mutual exclusion algorithms
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3065—Monitoring arrangements determined by the means or processing involved in reporting the monitored data
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3466—Performance evaluation by tracing or monitoring
- G06F11/3476—Data logging
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/544—Buffers; Shared memory; Pipes
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Quality & Reliability (AREA)
- Computer Hardware Design (AREA)
- Debugging And Monitoring (AREA)
Abstract
Description
技术领域technical field
本申请涉及浏览器技术领域,更具体地,涉及一种多进程浏览器进程日志收集方法、装置以及移动终端。The present application relates to the technical field of browsers, and more specifically, to a method, device and mobile terminal for collecting multi-process browser process logs.
背景技术Background technique
移动终端,例如手机,已经成为人们日常生活中最常用的消费型电子产品之一,使用移动终端的浏览器进行网页浏览,已经变成了大多数人的基本需求。浏览器产品发布后必然需要收集相关的进程日志并上传到服务器,用于进行错误分析或者崩溃分析,但是对于多进程浏览器,进程日志收集困难且容易影响浏览器的正常运行。A mobile terminal, such as a mobile phone, has become one of the most commonly used consumer electronic products in people's daily life, and web browsing using a browser of the mobile terminal has become a basic requirement of most people. After the browser product is released, it is necessary to collect relevant process logs and upload them to the server for error analysis or crash analysis. However, for multi-process browsers, it is difficult to collect process logs and it is easy to affect the normal operation of the browser.
发明内容Contents of the invention
鉴于上述问题,本申请提出了一种多进程浏览器进程日志收集方法、装置以及移动终端,以解决多进程浏览器进程日志收集困难和影响浏览器正常运行的问题。In view of the above problems, the present application proposes a multi-process browser process log collection method, device and mobile terminal to solve the problems of difficulty in collecting multi-process browser process logs and affecting normal operation of the browser.
第一方面,本申请实施例提供了一种多进程浏览器进程日志收集方法,所述方法包括:浏览器的第一进程创建共享内存和互斥锁;所述第一进程将所述共享内存的文件描述符和所述互斥锁发送至所述浏览器的至少一个第二进程;所述第一进程或所述至少一个第二进程中的目标第二进程获取所述互斥锁并加锁,将进程日志写入所述文件描述符所指向的所述共享内存;所述第一进程将所述共享内存内的所述进程日志写入日志文件,以通过所述日志文件上传至服务器。In the first aspect, the embodiment of the present application provides a multi-process browser process log collection method, the method comprising: the first process of the browser creates a shared memory and a mutex; The file descriptor and the mutex are sent to at least one second process of the browser; the first process or the target second process in the at least one second process acquires the mutex and adds lock, write the process log into the shared memory pointed to by the file descriptor; the first process writes the process log in the shared memory into a log file, so as to upload to the server through the log file .
第二方面,本申请实施例提供了一种多进程浏览器进程日志收集装置,所述装置包括:创建模块,用于浏览器的第一进程创建共享内存和互斥锁;发送模块,用于所述第一进程将所述共享内存的文件描述符和所述互斥锁发送至所述浏览器的至少一个第二进程;进程日志写入模块,用于所述第一进程或所述至少一个第二进程中的目标第二进程获取所述互斥锁并加锁,将进程日志写入所述文件描述符所指向的所述共享内存;文件写入模块,用于所述第一进程将所述共享内存内的所述进程日志写入日志文件,以通过所述日志文件上传至服务器。In the second aspect, the embodiment of the present application provides a multi-process browser process log collection device, the device includes: a creation module, used for the first process of the browser to create a shared memory and a mutual exclusion lock; a sending module, used for The first process sends the file descriptor of the shared memory and the mutex to at least one second process of the browser; a process log writing module is used for the first process or the at least A target second process in a second process acquires the mutex and locks it, and writes the process log into the shared memory pointed to by the file descriptor; the file writing module is used for the first process Writing the process log in the shared memory into a log file, so as to upload to the server through the log file.
第三方面,本申请实施例提供了一种移动终端,其包括显示器、存储器以及处理器,所述显示器和所述存储器耦接到所述处理器,所述存储器存储指令,当所述指令由所述处理器执行时所述处理器执行上述方法。In a third aspect, an embodiment of the present application provides a mobile terminal, which includes a display, a memory, and a processor, the display and the memory are coupled to the processor, the memory stores instructions, and when the instructions are executed by When the processor executes, the processor executes the above method.
第四方面,本申请实施例提供了一种具有处理器可执行的程序代码的计算机可读取存储介质,所述程序代码使所述处理器执行上述方法。In a fourth aspect, the embodiment of the present application provides a computer-readable storage medium having a program code executable by a processor, and the program code causes the processor to execute the above method.
本申请实施例提供的多进程浏览器进程日志收集方法、装置以及移动终端,首先浏览器的第一进程创建共享内存和互斥锁,第一进程将共享内存的文件描述符和互斥锁发送至浏览器的至少一个第二进程,然后第一进程或至少一个第二进程中的目标第二进程获取该互斥锁并加锁,将进程日志写入文件描述符所指向的共享内存,最后第一进程将共享内存内的进程日志写入日志文件,以通过该日志文件上传至服务器,从而通过互斥锁和多进程共享一块共享内存的方式,以解决多进程浏览器进程日志收集困难和影响浏览器正常运行的问题。In the multi-process browser process log collection method, device, and mobile terminal provided by the embodiment of the present application, first, the first process of the browser creates a shared memory and a mutex, and the first process sends the file descriptor and the mutex of the shared memory to at least one second process of the browser, and then the first process or the target second process in at least one second process acquires and locks the mutex, writes the process log into the shared memory pointed to by the file descriptor, and finally The first process writes the process log in the shared memory into a log file, and uploads it to the server through the log file, so as to solve the difficulty of collecting multi-process browser process logs and the problem of sharing a piece of shared memory by mutual exclusion locks and multiple processes. Problems that affect the normal operation of the browser.
本申请的这些方面或其他方面在以下实施例的描述中会更加简明易懂。These or other aspects of the present application will be more concise and understandable in the description of the following embodiments.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1示出了本申请第一实施例提供的多进程浏览器进程日志收集方法的流程示意图;FIG. 1 shows a schematic flow diagram of a multi-process browser process log collection method provided by the first embodiment of the present application;
图2示出了本申请第二实施例提供的多进程浏览器进程日志收集方法的流程示意图;FIG. 2 shows a schematic flowchart of a method for collecting multi-process browser process logs provided in the second embodiment of the present application;
图3示出了本申请第二实施例提供的多进程浏览器进程日志收集方法的步骤S230的流程示意图;FIG. 3 shows a schematic flowchart of step S230 of the multi-process browser process log collection method provided by the second embodiment of the present application;
图4示出了本申请第二实施例提供的多进程浏览器进程日志收集方法的步骤S250的流程示意图;FIG. 4 shows a schematic flowchart of step S250 of the multi-process browser process log collection method provided by the second embodiment of the present application;
图5示出了本申请第三实施例提供的多进程浏览器进程日志的收集装置的模块框图;FIG. 5 shows a block diagram of a device for collecting multi-process browser process logs provided in the third embodiment of the present application;
图6示出了本申请第四实施例提供的多进程浏览器进程日志的收集装置的模块框图;FIG. 6 shows a block diagram of a device for collecting multi-process browser process logs provided by the fourth embodiment of the present application;
图7示出了本申请实施例提供的一种移动终端的结构框图;FIG. 7 shows a structural block diagram of a mobile terminal provided by an embodiment of the present application;
图8示出了用于执行根据本申请实施例的多进程浏览器进程日志收集方法的移动终端的框图。Fig. 8 shows a block diagram of a mobile terminal for executing the method for collecting multi-process browser process logs according to an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this application.
多进程浏览器(如chromium)产品发布(release)后必然需要收集相关的进程日志(log),并将其上传到服务器用于错误(bug)分析或崩溃(crash)解决,但是chromium浏览器采用多进程构架,包括Browser进程、Render进程以及GPU进程等多个进程,其中,如Render进程因为采用sandbox机制的进程无法进行文件的读写,因此,问题的难点在于多个进程如何写到一块缓存里面去方便上传到服务器。一个较为容易的实施方案,比如采用ipc通信的方式,将Render进程或GPU进程等进程通过ipc通信的方式将进程日志信息发送到Browser进程端,这种方式虽然容易实现但是存在占用I/O进程,当进程日志较多时难免会影响浏览器的正常运行。针对上述问题,发明人经过长时间的研究,并提出了本申请实施例提供的多进程浏览器进程日志收集方法、装置以及移动终端,以解决多进程浏览器进程日志收集困难和影响浏览器正常运行的问题,具体的多进程浏览器进程日志收集方法在后续的实施例中详细的说明。After a multi-process browser (such as chromium) is released (release), it is necessary to collect relevant process logs (log) and upload them to the server for error (bug) analysis or crash (crash) resolution, but the chromium browser uses Multi-process architecture, including multiple processes such as Browser process, Render process, and GPU process. Among them, the Render process cannot read and write files because it uses the sandbox mechanism. Therefore, the difficulty lies in how multiple processes write to a cache Inside to facilitate uploading to the server. A relatively easy implementation scheme, such as using ipc communication, sends the process log information to the Browser process through the Render process or GPU process through ipc communication. Although this method is easy to implement, it still takes up I/O processes , when there are many process logs, it will inevitably affect the normal operation of the browser. In view of the above problems, the inventor has studied for a long time, and proposed the multi-process browser process log collection method, device and mobile terminal provided by the embodiment of the present application, to solve the difficulty of collecting multi-process browser process logs and affecting the normal operation of the browser. As for the running problem, the specific method for collecting process logs of multi-process browsers will be described in detail in subsequent embodiments.
第一实施例first embodiment
请参阅图1,图1示出了本申请第一实施例提供的多进程浏览器进程日志收集方法的流程示意图。所述多进程浏览器进程日志收集方法旨在通过互斥锁和多进程共享一块共享内存的方式,以解决多进程浏览器进程日志收集困难和影响浏览器正常运行的问题。在具体的实施例中,所述多进程浏览器进程日志收集方法应用于如图5所示的多进程浏览器进程日志收集装置200以及配置有所述多进程浏览器进程日志收集装置200的移动终端100(图7)。下面将以移动终端为例,说明本实施例的具体流程,当然,可以理解的,本申请实施例所应用的移动终端可以为智能手机、平板电脑、穿戴式电子终端等,在此不做限定。下面将针对图1所示的流程进行详细的阐述,上述多进程浏览器进程日志收集方法具体可以包括以下步骤:Please refer to FIG. 1 . FIG. 1 shows a schematic flowchart of a method for collecting multi-process browser process logs provided by the first embodiment of the present application. The method for collecting process logs of multi-process browsers aims to solve the problems of difficulty in collecting process logs of multi-process browsers and affecting the normal operation of browsers by means of mutual exclusion locks and sharing of a shared memory by multiple processes. In a specific embodiment, the multi-process browser process log collection method is applied to the multi-process browser process log collection device 200 as shown in Figure 5 and the mobile device configured with the multi-process browser process log collection device 200 Terminal 100 (FIG. 7). The following will take the mobile terminal as an example to illustrate the specific process of this embodiment. Of course, it can be understood that the mobile terminal applied in the embodiment of the present application can be a smart phone, a tablet computer, a wearable electronic terminal, etc., and is not limited here. . The process shown in Figure 1 will be described in detail below. The above-mentioned method for collecting process logs of multi-process browsers may specifically include the following steps:
步骤S110:浏览器的第一进程创建共享内存和互斥锁。Step S110: the first process of the browser creates a shared memory and a mutex.
在本实施例中,所述浏览器为多进程浏览器,所述第一进程为具有文件写入能力的进程,如Browser进程和GPU进程,其中,所述Browser进程为浏览器的主进程,所述GPU进程是系统图形的一种加速机制,用于快速形成图形合成和显示,为一个单独的进程。可以理解的,浏览器在启动时,先启动所述Browser进程,再启动GPU等其他进程,因此,作为一种方式,将Browser进程作为第一进程,一方面可以保证浏览器在启动时的进程日志可以进行写入,另一方面还可以避免在浏览器没有启动GPU进程时,Render进程其他进程日志无法写入的问题。In this embodiment, the browser is a multi-process browser, and the first process is a process with file writing capability, such as a Browser process and a GPU process, wherein the Browser process is the main process of the browser, The GPU process is an acceleration mechanism for system graphics, used to quickly form graphics composition and display, and is a separate process. It can be understood that when the browser starts, it first starts the Browser process, and then starts other processes such as the GPU. Therefore, as a way, the Browser process is used as the first process, on the one hand, it can ensure that the process of the browser when starting Logs can be written, and on the other hand, it can also avoid the problem that other process logs of the Render process cannot be written when the browser does not start the GPU process.
进一步地,所述浏览器的第一进程在初始化时,创建共享内存(sharedMemory)和互斥锁(Metex sharedMemory),其中,所述共享内存用于各进程通过此共享内存写进程日志,所述互斥锁用于用来保证共享数据操作的完整性,每个对象都对应于一个可称为“互斥锁”的标记,这个标记用来保证在任一时刻,只能有一个线程访问该对象。Further, when the first process of the browser is initialized, a shared memory (sharedMemory) and a mutual exclusion lock (Metex sharedMemory) are created, wherein the shared memory is used for each process to write a process log through this shared memory, and the Mutual exclusion locks are used to ensure the integrity of shared data operations. Each object corresponds to a tag that can be called a "mutual exclusion lock". This tag is used to ensure that only one thread can access the object at any time. .
步骤S120:所述第一进程将所述共享内存的文件描述符和所述互斥锁发送至所述浏览器的至少一个第二进程。Step S120: the first process sends the file descriptor of the shared memory and the mutex to at least one second process of the browser.
在本实施例中,将创建所述共享内存和所述互斥锁的进程定义为第一进程,非创建所述共享内存和所述互斥锁的进程定义为第二进程,可以理解的,所述第一进程的数量为一个,所述第二进程的数量至少为一个,如所述第一进程为Browser进程,所述第二进程可以包括Render进程、GPU进程等其他进程。In this embodiment, the process that creates the shared memory and the mutex is defined as the first process, and the process that does not create the shared memory and the mutex is defined as the second process. It can be understood that The number of the first process is one, and the number of the second process is at least one. If the first process is a Browser process, the second process may include other processes such as a Render process and a GPU process.
其中,当第一进程启动后,所述至少一个第二进程仍处于非启动状态,当检测到至少一个第二进程中的任意一个第二进程启动的信息时,第一进程响应所述信息将所述共享内存的文件描述符和所述互斥锁发送至所述第二进程并保存。其中,将所述共享内存的文件描述符发送给第二进程,才能使第二进程将得到的所述共享内存的文件描述符映射到第一进程的地址空间中,进而第二进程才能访问第一进程创建的所述共享内存。Wherein, after the first process is started, the at least one second process is still in a non-started state, and when information that any one of the at least one second process is started is detected, the first process responds to the information and will The file descriptor of the shared memory and the mutex are sent to the second process and saved. Wherein, the file descriptor of the shared memory is sent to the second process, so that the second process can map the obtained file descriptor of the shared memory into the address space of the first process, and then the second process can access the second process. The shared memory created by a process.
作为一种实施方式,所述第一进程通过进程间通信ipc(Inter-ProcessCommunication)将所述共享内存的文件描述符和所述互斥锁发送至所述至少一个第二进程。As an implementation manner, the first process sends the file descriptor of the shared memory and the mutex to the at least one second process through inter-process communication ipc (Inter-Process Communication).
步骤S130:所述第一进程或所述至少一个第二进程中的目标第二进程获取所述互斥锁并加锁,将进程日志写入所述文件描述符所指向的所述共享内存。Step S130: The first process or the target second process in the at least one second process acquires and locks the mutex, and writes a process log into the shared memory pointed to by the file descriptor.
进一步地,当第一进程或任意一个第二进程有进程日志输出时,则申请所述互斥锁,若申请通过,那么获取所述互斥锁并加锁,然后将进程日志写入所述文件描述符所指向的共享内存,其中,所述文件描述符用于所述进程获取所述第一进程的地址空间。具体地,所述第一进程或任意一个第二进程可以理解为浏览器中、保存有所述共享内存的文件描述符和互斥锁的任意进程,当所述任意进程有进程日志要输出时,则申请所述互斥锁,其中,当有多个进程均申请所述互斥锁时,则随机将所述互斥锁分配给其中一个进程进行加锁。可以理解的,当其中一个进程获取所述互斥锁并加锁后,其他进程则无法再获取所述互斥锁,直到所述进程释放所述互斥锁。Further, when the first process or any second process has a process log output, then apply for the mutex, if the application is passed, then obtain the mutex and lock it, and then write the process log into the The shared memory pointed to by the file descriptor, wherein the file descriptor is used by the process to obtain the address space of the first process. Specifically, the first process or any second process can be understood as any process in the browser that saves the file descriptor and mutex of the shared memory. When any process has a process log to output , then apply for the mutex, wherein, when multiple processes all apply for the mutex, randomly assign the mutex to one of the processes for locking. It can be understood that after one of the processes acquires and locks the mutex, other processes cannot acquire the mutex until the process releases the mutex.
在本实施例中,所述共享内存采用环形队列,作为一种方式,当第一进程或第二进程中的任意一个目标进程获取所述互斥锁时,对所述共享内存是否写满进行判断,如果所述共享内存没有写满,则继续沿环形队列将进程日志写入所述共享内存,如果所述共享内存已经写满,则环形覆盖所述共享内存写入所述进程日志,从而避免了共享内存写溢出的问题。In this embodiment, the shared memory adopts a ring queue. As a method, when any target process in the first process or the second process acquires the mutex, check whether the shared memory is full Judgment, if the shared memory is not full, then continue to write the process log into the shared memory along the ring queue, if the shared memory is full, write the process log into the shared memory with ring coverage, thereby Avoid the problem of shared memory write overflow.
步骤S140:所述第一进程将所述共享内存内的所述进程日志写入日志文件,以通过所述日志文件上传至服务器。Step S140: the first process writes the process log in the shared memory into a log file, so as to upload to the server through the log file.
作为一种方式,所述第一进程可以按预设时间间隔将所述共享内存内的进程日志写入日志文件,可以实时将所述共享内存内的进程日志写入所述日志文件,也可以定时将所述共享内存内的进程日志写入所述日志文件等,在本实施例中,不做具体的限定,其中,所述日志文件可以为log.txt。可以理解的,将所述进程日志写入所述日志文件,方便后面将其上传到服务器。在本实施例中,由于采用共享内存进行多进程日志的写入,不占用任何的I/O管道,解决了进程日志写入的效率问题,同时,所有进程共享一块共享内存,保证了进程日志输出的有序性,共享内存采用环形队列,有效避免了共享内存写溢出问题。As a method, the first process may write the process log in the shared memory into a log file at a preset time interval, write the process log in the shared memory into the log file in real time, or Regularly write the process log in the shared memory into the log file, etc., which is not specifically limited in this embodiment, wherein the log file may be log.txt. It can be understood that the process log is written into the log file, which is convenient for uploading it to the server later. In this embodiment, because shared memory is used to write multi-process logs, no I/O pipelines are occupied, and the efficiency problem of process log writing is solved. At the same time, all processes share a shared memory, which ensures that process logs The output is orderly, and the shared memory adopts a circular queue, which effectively avoids the problem of shared memory write overflow.
本申请第一实施例提供的多进程浏览器进程日志收集方法,首先浏览器的第一进程创建共享内存和互斥锁,第一进程将共享内存的文件描述符和互斥锁发送至浏览器的至少一个第二进程,然后第一进程或至少一个第二进程中的目标第二进程获取该互斥锁并加锁,将进程日志写入文件描述符所指向的共享内存,最后第一进程将共享内存内的进程日志写入日志文件,以通过该日志文件上传至服务器,从而通过互斥锁和多进程共享一块共享内存的方式,以解决多进程浏览器进程日志收集困难和影响浏览器正常运行的问题。In the multi-process browser process log collection method provided by the first embodiment of the present application, first, the first process of the browser creates a shared memory and a mutex, and the first process sends the file descriptor and the mutex of the shared memory to the browser At least one second process of the first process or at least one target second process in the second process acquires the mutex and locks it, writes the process log into the shared memory pointed to by the file descriptor, and finally the first process Write the process log in the shared memory to the log file, and upload it to the server through the log file, so as to solve the difficulty of collecting multi-process browser process logs and affect the browser through mutual exclusion lock and multi-process sharing of a shared memory Problems with normal operation.
第二实施例second embodiment
请参阅图2,图2示出了本申请第二实施例提供的多进程浏览器日志收集方法的流程示意图。下面将以移动终端为例,针对图2所示的流程进行详细的阐述,所述多进程浏览器进程日志收集方法具体可以包括以下步骤:Please refer to FIG. 2 , which shows a schematic flowchart of a method for collecting multi-process browser logs provided by the second embodiment of the present application. The mobile terminal will be taken as an example below to elaborate on the process shown in Figure 2. The method for collecting multi-process browser process logs may specifically include the following steps:
步骤S210:浏览器的第一进程创建共享内存和互斥锁。Step S210: the first process of the browser creates a shared memory and a mutex.
步骤S220:所述第一进程通过ipc将所述共享内存的文件描述符和所述互斥锁发送至所述至少一个第二进程。Step S220: the first process sends the file descriptor of the shared memory and the mutex to the at least one second process through ipc.
步骤S230:所述第一进程获取所述互斥锁并加锁,将第一进程日志写入所述共享内存。Step S230: the first process acquires and locks the mutex, and writes the first process log into the shared memory.
作为一种可实施的方式,所述第一进程首先获取所述互斥锁并进行加锁,将第一进程日志写入所述共享内存。可以理解的,在第一进程进行第一进程日志写入的过程中,第二进程无法获取所述互斥锁,也无法对第二进程日志进行写入。As an implementable manner, the first process first acquires and locks the mutex, and writes the first process log into the shared memory. It can be understood that, during the writing process of the first process log by the first process, the second process cannot acquire the mutex and cannot write to the second process log.
请参阅图3,图3示出了本申请第二实施例提供的多进程浏览器进程日志收集方法的步骤S230的流程示意图。下面将针对图3所示的流程进行详细的阐述,所述方法具体可以包括以下步骤:Please refer to FIG. 3 , which shows a schematic flowchart of step S230 of the method for collecting multi-process browser process logs provided by the second embodiment of the present application. The process shown in Figure 3 will be described in detail below, and the method may specifically include the following steps:
步骤S231:所述第一进程开启第一线程。Step S231: the first process starts a first thread.
具体地,所述第一进程启用一个第一进程内的、新的、单独的第一线程,用于进行第一进程日志的写入。Specifically, the first process enables a new, independent first thread in the first process to write the log of the first process.
步骤S232:所述第一线程获取所述互斥锁并加锁,将所述第一进程日志写入所述共享内存。Step S232: the first thread acquires and locks the mutex, and writes the first process log into the shared memory.
进一步地,在所述第一线程中,通过读取所述互斥锁的方式获取所述互斥锁并加锁,将第一进程的第一进程日志写入所述共享内存,同样的,如果所述共享内存已经写满,则环形覆盖所述共享内存。Further, in the first thread, the mutex is acquired and locked by reading the mutex, and the first process log of the first process is written into the shared memory. Similarly, If the shared memory is full, the shared memory is overwritten circularly.
步骤S240:所述第一进程在完成所述第一进程日志的写入后,释放所述互斥锁。Step S240: After the first process finishes writing the first process log, release the mutex.
可以理解的,当所述第一进程通过加锁完成所述第一进程日志的写入后,由于不再需要写入所述第一进程日志,则释放所述互斥锁,以使第二进程有机会获取所述互斥锁。It can be understood that after the first process completes the writing of the first process log by locking, since it is no longer necessary to write the first process log, the mutex is released, so that the second Processes have the opportunity to acquire said mutex.
步骤S250:所述目标第二进程获取所述互斥锁并加锁,将第二进程日志写入所述共享内存。Step S250: the target second process acquires and locks the mutex, and writes the second process log into the shared memory.
进一步地,当所述目标第二进程有第二进程日志输出时,由于第一进程已释放所述互斥锁,则目标第二进程可以申请并获取所述互斥锁并加锁将第二进程日志写入所述共享内存。同样的,在所述目标第二进程进行第二进程日志写入的过程中,第一进程或其他第二进程均无法获取所述互斥锁,也无法进行进程日志的写入。Further, when the target second process has a second process log output, since the first process has released the mutex, the target second process can apply for and acquire the mutex and lock the second process. Process logs are written to said shared memory. Similarly, during the writing process of the second process log by the target second process, neither the first process nor any other second process can acquire the mutex, nor can it write the process log.
请参阅图4,图4示出了本申请第二实施例提供的多进程浏览器进程日志收集方法的步骤S250的流程示意图。下面将针对图4所示的流程进行详细的阐述,所述方法具体可以包括以下步骤:Please refer to FIG. 4 , which shows a schematic flowchart of step S250 of the method for collecting multi-process browser process logs provided by the second embodiment of the present application. The process shown in Figure 4 will be described in detail below, and the method may specifically include the following steps:
步骤S251:所述目标第二进程开启第二线程。Step S251: The target second process starts a second thread.
同样的,所述目标第二进程开启启动一个目标第二进程内的、新的、单独的第二线程,用于进行第二进程日志的写入。Similarly, the target second process starts and starts a new, independent second thread in the target second process for writing the second process log.
步骤S252:所述第二线程获取所述互斥锁并检索,将所述第二进程日志写入所述共享内存。Step S252: the second thread acquires the mutex and retrieves, and writes the second process log into the shared memory.
进一步地,在所述第二线程中,通过读取所述互斥锁的方式获取所述互斥锁并加锁,将第二进程的第二进程日志写入所述共享内存,同样的,如果所述共享内存已经写满,则环形覆盖所述共享内存。Further, in the second thread, the mutex is acquired and locked by reading the mutex, and the second process log of the second process is written into the shared memory. Similarly, If the shared memory is full, the shared memory is overwritten circularly.
需要说明的是,步骤S220-步骤S230和步骤S240-步骤S250之间的先后顺序在本实施例中不做限定,即步骤S220-步骤S230可以设置于步骤S240-步骤S250之前,也可以设置于步骤S240-步骤S250之后。It should be noted that the sequence between step S220-step S230 and step S240-step S250 is not limited in this embodiment, that is, step S220-step S230 can be set before step S240-step S250, or can be set before Step S240-after step S250.
步骤S260:所述目标第二进程在完成所述第二进程日志的写入后,释放所述互斥锁。Step S260: the target second process releases the mutex lock after finishing writing the second process log.
可以理解的,当所述第二进程通过加锁完成所述第二进程日志的写入后,由于不再需要写入所述第二进程日志,则释放所述互斥锁,以使第一进程或其他第二进程有机会获取所述互斥锁。It can be understood that after the second process completes the writing of the second process log by locking, since it is no longer necessary to write the second process log, the mutex is released, so that the first process or other second process has the opportunity to acquire the mutex.
步骤S270:所述第一进程将所述共享内存内的所述进程日志写入日志文件,以通过所述日志文件上传至服务器。Step S270: The first process writes the process log in the shared memory into a log file, so as to upload to the server through the log file.
本申请第二实施例提供的多进程浏览器进程日志收集方法,浏览器的第一进程创建共享内存和互斥锁,通过ipc将共享内存的文件描述符和互斥锁发送至至少一个第二进程,然后第一进程和目标第二进程分别获取互斥锁并完成进程日志的写入,再通过第一进程将共享内存内的进程日志写入日志文件,以通过日志文件上传至服务器,其中,共享内存加互斥锁的方案解决了多进程日志写入的效率问题,并且保证了进程日志上传的有序性,进一步地,通过环形覆盖共享内存进行日志的写入,有效避免了共享内存写溢出的问题。In the multi-process browser process log collection method provided by the second embodiment of the present application, the first process of the browser creates a shared memory and a mutex, and sends the file descriptor and the mutex of the shared memory to at least one second process, and then the first process and the target second process respectively acquire the mutex and complete the writing of the process log, and then write the process log in the shared memory into the log file through the first process, so as to upload it to the server through the log file, wherein , the scheme of shared memory plus mutex solves the efficiency problem of multi-process log writing, and ensures the orderliness of process log upload. Write overflow problem.
第三实施例third embodiment
请参阅图5,图5示出了本申请第三实施例提供的多进程浏览器进程日志收集装置200的模块框图,下面将针对图5所示的模块框图进行阐述,所述多进程浏览器进程日志收集装置200包括:创建模块210、发送模块220、进程日志写入模块230以及文件写入模块240,其中:Please refer to Fig. 5, Fig. 5 has shown the module block diagram of the multi-process browser process log collection device 200 provided by the third embodiment of the present application, the module block diagram shown in Fig. 5 will be explained below, the multi-process browser The process log collection device 200 includes: a creation module 210, a sending module 220, a process log writing module 230 and a file writing module 240, wherein:
创建模块210,用于浏览器的第一进程创建共享内存和互斥锁。The creation module 210 is used for the first process of the browser to create a shared memory and a mutex.
发送模块220,用于所述第一进程将所述共享内存的文件描述符和所述互斥锁发送至所述浏览器的至少一个第二进程。The sending module 220 is used for the first process to send the file descriptor of the shared memory and the mutex to at least one second process of the browser.
进程日志写入模块230,用于所述第一进程或所述至少一个第二进程中的目标第二进程获取所述互斥锁并加锁,将进程日志写入所述文件描述符所指向的所述共享内存。The process log writing module 230 is used for the first process or the target second process in the at least one second process to acquire the mutex and lock it, and write the process log to the file descriptor pointed to of the shared memory.
文件写入模块240,用于所述第一进程将所述共享内存内的所述进程日志写入日志文件,以通过所述日志文件上传至服务器。The file writing module 240 is used for the first process to write the process log in the shared memory into a log file, so as to upload the log file to the server through the log file.
第四实施例Fourth embodiment
请参阅图6,图6示出了本申请第四实施例提供的多进程浏览器进程日志收集装置300的模块框图。下面将针对图6所示的模块框图进行阐述,所述多进程浏览器日志收集装置300包括:创建模块310、发送模块320、进程日志写入模块330以及文件写入模块340,其中:Please refer to FIG. 6 , which shows a block diagram of a multi-process browser process log collection device 300 provided by the fourth embodiment of the present application. The module block diagram shown in Figure 6 will be described below, the multi-process browser log collection device 300 includes: a creation module 310, a sending module 320, a process log writing module 330 and a file writing module 340, wherein:
创建模块310,用于浏览器的第一进程创建共享内存和互斥锁。The creation module 310 is used for the first process of the browser to create a shared memory and a mutex.
发送模块320,用于所述第一进程将所述共享内存的文件描述符和所述互斥锁发送至所述浏览器的至少一个第二进程。进一步地,所述发送模块320包括:发送子模块321,其中:The sending module 320 is used for the first process to send the file descriptor of the shared memory and the mutex to at least one second process of the browser. Further, the sending module 320 includes: a sending submodule 321, wherein:
所述发送子模块321,用于所述第一进程通过ipc将所述共享内存的文件描述符和所述互斥锁发送至所述至少一个第二进程。The sending submodule 321 is used for the first process to send the file descriptor of the shared memory and the mutex to the at least one second process through ipc.
进程日志写入模块330,用于所述第一进程或所述至少一个第二进程中的目标第二进程获取所述互斥锁并加锁,将进程日志写入所述文件描述符所指向的所述共享内存。进一步地,所述进程日志写入模块330包括:互斥锁获取子模块331、判断子模块332、覆盖子模块333、第一进程日志写入子模块334、第一互斥锁释放子模块335、第二进程日志写入子模块336以及第二互斥锁释放子模块337,其中:The process log writing module 330 is used for the first process or the target second process in the at least one second process to acquire the mutex and lock it, and write the process log to the file descriptor pointed to of the shared memory. Further, the process log writing module 330 includes: a mutex acquiring submodule 331, a judging submodule 332, an overlay submodule 333, a first process log writing submodule 334, and a first mutex releasing submodule 335 , the second process log writing submodule 336 and the second mutex release submodule 337, wherein:
互斥锁获取子模块331,用于所述第一进程或所述目标第二进程获取所述互斥锁并加锁。The mutex acquiring submodule 331 is used for the first process or the target second process to acquire and lock the mutex.
判断子模块332,用于判断所述共享内存是否已写满。The judging submodule 332 is configured to judge whether the shared memory is full.
覆盖子模块333,用于如果所述共享内存已写满,则环形覆盖所述共享内存写入所述进程日志。The overlay submodule 333 is configured to, if the shared memory is full, overwrite the shared memory into the process log in a ring.
第一进程日志写入子模块334,用于所述第一进程获取所述互斥锁并加锁,将第一进程日志写入所述共享内存。进一步地,所述第一进程日志写入子模块334包括:第一线程开启单元和第一进程日志写入单元,其中:The first process log writing sub-module 334 is used for the first process to acquire and lock the mutex, and write the first process log into the shared memory. Further, the first process log writing submodule 334 includes: a first thread opening unit and a first process log writing unit, wherein:
第一线程开启单元,用于所述第一进程开启第一线程。A first thread starting unit, configured for the first process to start a first thread.
第一进程日志写入单元,用于所述第一线程获取所述互斥锁并加锁,将所述第一进程日志写入所述共享内存。The first process log writing unit is used for the first thread to acquire and lock the mutex, and write the first process log into the shared memory.
第一互斥锁释放子模块335,用于所述第一进程在完成所述第一进程日志的写入后,释放所述互斥锁。The first mutex release submodule 335 is configured to release the mutex after the first process finishes writing the first process log.
第二进程日志写入子模块336,用于所述目标第二进程获取所述互斥锁并加锁,将第二进程日志写入所述共享内存。进一步地,所述第二进程日志写入子模块336包括:The second process log writing sub-module 336 is used for the target second process to acquire and lock the mutex, and write the second process log into the shared memory. Further, the second process log writing submodule 336 includes:
第一线程开启单元,用于所述目标第二进程开启第二线程。The first thread start unit is used for the target second process to start a second thread.
第一进程日志写入单元,用于所述第二线程获取所述互斥锁并检索,将所述第二进程日志写入所述共享内存。The first process log writing unit is used for the second thread to acquire and retrieve the mutex, and write the second process log into the shared memory.
第二互斥锁释放子模块337,用于所述目标第二进程在完成所述第二进程日志的写入后,释放所述互斥锁。The second mutex release submodule 337 is configured to release the mutex after the target second process finishes writing the second process log.
文件写入模块340,用于所述第一进程将所述共享内存内的所述进程日志写入日志文件,以通过所述日志文件上传至服务器。The file writing module 340 is used for the first process to write the process log in the shared memory into a log file, so as to upload to the server through the log file.
第五实施例fifth embodiment
本申请第五实施例提供了一种移动终端,其包括显示器、存储器以及处理器,所述显示器和所述存储器耦接到所述处理器,所述存储器存储指令,当所述指令由所述处理器执行时所述处理器执行:The fifth embodiment of the present application provides a mobile terminal, which includes a display, a memory, and a processor, the display and the memory are coupled to the processor, the memory stores instructions, and when the instructions are executed by the When the processor executes said processor executes:
浏览器的第一进程创建共享内存和互斥锁;The first process of the browser creates shared memory and mutex;
所述第一进程将所述共享内存的文件描述符和所述互斥锁发送至所述浏览器的至少一个第二进程;The first process sends the file descriptor of the shared memory and the mutex to at least one second process of the browser;
所述第一进程或所述至少一个第二进程中的目标第二进程获取所述互斥锁并加锁,将进程日志写入所述文件描述符所指向的所述共享内存;The first process or the target second process in the at least one second process acquires the mutex and locks it, and writes a process log into the shared memory pointed to by the file descriptor;
所述第一进程将所述共享内存内的所述进程日志写入日志文件,以通过所述日志文件上传至服务器。The first process writes the process log in the shared memory into a log file, so as to upload to the server through the log file.
第六实施例Sixth embodiment
本申请第六实施例提供了一种存储介质,具有处理器可执行的程序代码的计算机可读取存储介质,所述程序代码使所述处理器执行:The sixth embodiment of the present application provides a storage medium, which is a computer-readable storage medium having program code executable by a processor, and the program code causes the processor to execute:
浏览器的第一进程创建共享内存和互斥锁;The first process of the browser creates shared memory and mutex;
所述第一进程将所述共享内存的文件描述符和所述互斥锁发送至所述浏览器的至少一个第二进程;The first process sends the file descriptor of the shared memory and the mutex to at least one second process of the browser;
所述第一进程或所述至少一个第二进程中的目标第二进程获取所述互斥锁并加锁,将进程日志写入所述文件描述符所指向的所述共享内存;The first process or the target second process in the at least one second process acquires the mutex and locks it, and writes a process log into the shared memory pointed to by the file descriptor;
所述第一进程将所述共享内存内的所述进程日志写入日志文件,以通过所述日志文件上传至服务器。The first process writes the process log in the shared memory into a log file, so as to upload to the server through the log file.
综上所述,本申请实施例提供的多进程浏览器进程日志收集方法、装置以及移动终端,首先浏览器的第一进程创建共享内存和互斥锁,第一进程将共享内存的文件描述符和互斥锁发送至浏览器的至少一个第二进程,然后第一进程或至少一个第二进程中的目标第二进程获取该互斥锁并加锁,将进程日志写入文件描述符所指向的共享内存,最后第一进程将共享内存内的进程日志写入日志文件,以通过该日志文件上传至服务器,从而通过互斥锁和多进程共享一块共享内存的方式,以解决多进程浏览器进程日志收集困难和影响浏览器正常运行的问题。To sum up, in the multi-process browser process log collection method, device, and mobile terminal provided by the embodiment of the present application, first, the first process of the browser creates a shared memory and a mutex, and the first process uses the file descriptor of the shared memory and the mutex are sent to at least one second process of the browser, and then the first process or the target second process in at least one second process acquires the mutex and locks it, and writes the process log to the file descriptor pointed to The shared memory, and finally the first process writes the process log in the shared memory into a log file, and uploads it to the server through the log file, so as to solve the problem of multi-process browsers by sharing a shared memory with mutual exclusion locks and multiple processes. Difficulties in collecting process logs and problems affecting the normal operation of the browser.
需要说明的是,本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。对于装置类实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。对于方法实施例中的所描述的任意的处理方式,在装置实施例中均可以通过相应的处理模块实现,装置实施例中不再一一赘述。It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. For the same and similar parts in each embodiment, refer to each other, that is, Can. As for the device-type embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and for related parts, please refer to part of the description of the method embodiments. Any of the processing methods described in the method embodiments can be implemented by corresponding processing modules in the device embodiments, and details will not be repeated in the device embodiments.
请再次参阅图7,基于上述的多进程浏览器进程日志收集方法、装置,本申请实施例还提供一种移动终端100,其包括电子本体部10,所述电子本体部10包括壳体12及设置在所述壳体12上的主显示屏120。所述壳体12可采用金属、如钢材、铝合金制成。本实施例中,所述主显示屏120通常包括显示面板111,也可包括用于响应对所述显示面板111进行触控操作的电路等。所述显示面板111可以为一个液晶显示面板(Liquid Crystal Display,LCD),在一些实施例中,所述显示面板111同时为一个触摸屏109。Please refer to FIG. 7 again. Based on the above-mentioned multi-process browser process log collection method and device, the embodiment of the present application also provides a mobile terminal 100, which includes an electronic body part 10, and the electronic body part 10 includes a housing 12 and The main display screen 120 arranged on the housing 12 . The housing 12 can be made of metal, such as steel or aluminum alloy. In this embodiment, the main display screen 120 generally includes a display panel 111 , and may also include a circuit for responding to a touch operation on the display panel 111 . The display panel 111 may be a liquid crystal display panel (Liquid Crystal Display, LCD), and in some embodiments, the display panel 111 is also a touch screen 109 .
请同时参阅图8,在实际的应用场景中,所述移动终端100可作为智能手机终端进行使用,在这种情况下所述电子本体部10通常还包括一个或多个(图中仅示出一个)处理器102、存储器104、RF(Radio Frequency,射频)模块106、音频电路110、传感器114、输入模块118、电源模块122。本领域普通技术人员可以理解,图8所示的结构仅为示意,其并不对所述电子本体部10的结构造成限定。例如,所述电子本体部10还可包括比图8中所示更多或者更少的组件,或者具有与图7所示不同的配置。Please refer to FIG. 8 at the same time. In an actual application scenario, the mobile terminal 100 can be used as a smartphone terminal. In this case, the electronic main body 10 usually includes one or more (only shown in the figure a) A processor 102 , a memory 104 , an RF (Radio Frequency, radio frequency) module 106 , an audio circuit 110 , a sensor 114 , an input module 118 , and a power module 122 . Those skilled in the art can understand that the structure shown in FIG. 8 is only a schematic diagram, which does not limit the structure of the electronic body part 10 . For example, the electronic body part 10 may also include more or fewer components than shown in FIG. 8 , or have a different configuration than that shown in FIG. 7 .
本领域普通技术人员可以理解,相对于所述处理器102来说,所有其他的组件均属于外设,所述处理器102与这些外设之间通过多个外设接口124相耦合。所述外设接口124可基于以下标准实现:通用异步接收/发送装置(Universal Asynchronous Receiver/Transmitter,UART)、通用输入/输出(General Purpose Input Output,GPIO)、串行外设接口(Serial Peripheral Interface,SPI)、内部集成电路(Inter-Integrated Circuit,I2C),但不并限于上述标准。在一些实例中,所述外设接口124可仅包括总线;在另一些实例中,所述外设接口124还可包括其他元件,如一个或者多个控制器,例如用于连接所述显示面板111的显示控制器或者用于连接存储器的存储控制器。此外,这些控制器还可以从所述外设接口124中脱离出来,而集成于所述处理器102内或者相应的外设内。Those skilled in the art can understand that, relative to the processor 102 , all other components belong to peripherals, and the processor 102 is coupled to these peripherals through a plurality of peripheral interfaces 124 . The peripheral interface 124 can be implemented based on the following standards: Universal Asynchronous Receiver/Transmitter (UART), General Purpose Input Output (GPIO), Serial Peripheral Interface (Serial Peripheral Interface) , SPI), inter-integrated circuit (Inter-Integrated Circuit, I2C), but not limited to the above standards. In some examples, the peripheral interface 124 may only include a bus; in other examples, the peripheral interface 124 may also include other components, such as one or more controllers, for example for connecting the display panel 111 display controller or memory controller for connecting memory. In addition, these controllers can also be separated from the peripheral interface 124 and integrated in the processor 102 or corresponding peripherals.
所述存储器104可用于存储软件程序以及模块,所述处理器102通过运行存储在所述存储器104内的软件程序以及模块,从而执行各种功能应用以及数据处理。所述存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,所述存储器104可进一步包括相对于所述处理器102远程设置的存储器,这些远程存储器可以通过网络连接至所述电子本体部10或所述主显示屏120。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 104 can be used to store software programs and modules, and the processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104 . The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory that is remotely located relative to the processor 102 , and these remote memories may be connected to the electronic main body 10 or the main display 120 through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
所述RF模块106用于接收以及发送电磁波,实现电磁波与电信号的相互转换,从而与通讯网络或者其他设备进行通讯。所述RF模块106可包括各种现有的用于执行这些功能的电路元件,例如,天线、射频收发器、数字信号处理器、加密/解密芯片、用户身份模块(SIM)卡、存储器等等。所述RF模块106可与各种网络如互联网、企业内部网、无线网络进行通讯或者通过无线网络与其他设备进行通讯。上述的无线网络可包括蜂窝式电话网、无线局域网或者城域网。上述的无线网络可以使用各种通信标准、协议及技术,包括但并不限于全球移动通信系统(Global System for Mobile Communication,GSM)、增强型移动通信技术(Enhanced Data GSM Environment,EDGE),宽带码分多址技术(wideband codedivision multiple access,W-CDMA),码分多址技术(Code division access,CDMA)、时分多址技术(time division multiple access,TDMA),无线保真技术(Wireless,Fidelity,WiFi)(如美国电气和电子工程师协会标准IEEE 802.10A,IEEE 802.11b,IEEE802.11g和/或IEEE 802.11n)、网络电话(Voice over internet protocal,VoIP)、全球微波互联接入(Worldwide Interoperability for Microwave Access,Wi-Max)、其他用于邮件、即时通讯及短消息的协议,以及任何其他合适的通讯协议,甚至可包括那些当前仍未被开发出来的协议。The RF module 106 is used to receive and send electromagnetic waves, realize mutual conversion between electromagnetic waves and electrical signals, and communicate with communication networks or other devices. The RF module 106 may include various existing circuit elements for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption/decryption chips, Subscriber Identity Module (SIM) cards, memory, etc. . The RF module 106 can communicate with various networks such as the Internet, intranet, wireless network or communicate with other devices through the wireless network. The wireless network mentioned above may include a cellular telephone network, a wireless local area network or a metropolitan area network. The above-mentioned wireless network can use various communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), wideband code Division multiple access technology (wideband code division multiple access, W-CDMA), code division multiple access technology (Code division access, CDMA), time division multiple access technology (time division multiple access, TDMA), wireless fidelity technology (Wireless, Fidelity, WiFi) (such as IEEE 802.10A, IEEE 802.11b, IEEE802.11g and/or IEEE 802.11n), VoIP (Voice over internet protocal, VoIP), Worldwide Interoperability for Microwave Access, Wi-Max), other protocols for mail, instant messaging, and short messages, and any other suitable communication protocols, even those that have not yet been developed.
音频电路110、听筒101、声音插孔103、麦克风105共同提供用户与所述电子本体部10或所述主显示屏120之间的音频接口。具体地,所述音频电路110从所述处理器102处接收声音数据,将声音数据转换为电信号,将电信号传输至所述听筒101。所述听筒101将电信号转换为人耳能听到的声波。所述音频电路110还从所述麦克风105处接收电信号,将电信号转换为声音数据,并将声音数据传输给所述处理器102以进行进一步的处理。音频数据可以从所述存储器104处或者通过所述RF模块106获取。此外,音频数据也可以存储至所述存储器104中或者通过所述RF模块106进行发送。The audio circuit 110 , the earpiece 101 , the sound jack 103 , and the microphone 105 jointly provide an audio interface between the user and the electronic main body 10 or the main display 120 . Specifically, the audio circuit 110 receives sound data from the processor 102 , converts the sound data into electrical signals, and transmits the electrical signals to the earpiece 101 . The earpiece 101 converts electrical signals into sound waves that can be heard by the human ear. The audio circuit 110 also receives electrical signals from the microphone 105, converts the electrical signals into sound data, and transmits the sound data to the processor 102 for further processing. Audio data may be retrieved from the memory 104 or through the RF module 106 . In addition, audio data can also be stored in the memory 104 or sent through the RF module 106 .
所述传感器114设置在所述电子本体部10内或所述主显示屏120内,所述传感器114的实例包括但并不限于:光传感器、运行传感器、压力传感器、重力加速度传感器、以及其他传感器。The sensor 114 is arranged in the electronic main body 10 or in the main display screen 120, examples of the sensor 114 include but not limited to: light sensor, running sensor, pressure sensor, gravity acceleration sensor, and other sensors .
具体地,所述光传感器可包括光线传感器114F、压力传感器114G。其中,压力传感器114G可以检测由按压在移动终端100产生的压力的传感器。即,压力传感器114G检测由用户和移动终端之间的接触或按压产生的压力,例如由用户的耳朵与移动终端之间的接触或按压产生的压力。因此,压力传感器114G可以用来确定在用户与移动终端100之间是否发生了接触或者按压,以及压力的大小。Specifically, the light sensor may include a light sensor 114F and a pressure sensor 114G. Among them, the pressure sensor 114G may be a sensor for detecting pressure generated by pressing on the mobile terminal 100 . That is, the pressure sensor 114G detects pressure generated by contact or press between the user and the mobile terminal, eg, pressure generated by contact or press between the user's ear and the mobile terminal. Therefore, the pressure sensor 114G can be used to determine whether contact or pressure occurs between the user and the mobile terminal 100, and the magnitude of the pressure.
请再次参阅图8,具体地在图8所示的实施例中,所述光线传感器114F及所述压力传感器114G邻近所述显示面板111设置。所述光线传感器114F可在有物体靠近所述主显示屏120时,例如所述电子本体部10移动到耳边时,所述处理器102关闭显示输出。Please refer to FIG. 8 again. Specifically, in the embodiment shown in FIG. 8 , the light sensor 114F and the pressure sensor 114G are disposed adjacent to the display panel 111 . The light sensor 114F can turn off the display output of the processor 102 when an object is close to the main display screen 120 , for example, when the electronic main body 10 moves to the ear.
作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别所述移动终端100姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等。另外,所述电子本体部10还可配置陀螺仪、气压计、湿度计、温度计等其他传感器,在此不再赘述,As a kind of motion sensor, the acceleration of gravity sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used to identify the application of the posture of the mobile terminal 100 (such as horizontal and vertical Screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc. In addition, the electronic main body 10 can also be equipped with other sensors such as gyroscope, barometer, hygrometer, thermometer, etc., which will not be repeated here.
本实施例中,所述输入模块118可包括设置在所述主显示屏120上的所述触摸屏109,所述触摸屏109可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在所述触摸屏109上或在所述触摸屏109附近的操作),并根据预先设定的程序驱动相应的连接装置。可选的,所述触摸屏109可包括触摸检测装置和触摸控制器。其中,所述触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给所述触摸控制器;所述触摸控制器从所述触摸检测装置上接收触摸信息,并将该触摸信息转换成触点坐标,再送给所述处理器102,并能接收所述处理器102发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现所述触摸屏109的触摸检测功能。除了所述触摸屏109,在其它变更实施方式中,所述输入模块118还可以包括其他输入设备,如按键107。所述按键107例如可包括用于输入字符的字符按键,以及用于触发控制功能的控制按键。所述控制按键的实例包括“返回主屏”按键、开机/关机按键等等。In this embodiment, the input module 118 may include the touch screen 109 arranged on the main display screen 120, and the touch screen 109 may collect the user's touch operations on or near it (for example, the user uses a finger, a stylus) operation of any suitable object or accessory on the touch screen 109 or near the touch screen 109), and drive the corresponding connection device according to the preset program. Optionally, the touch screen 109 may include a touch detection device and a touch controller. Wherein, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, and The touch information is converted into touch point coordinates, and then sent to the processor 102, and can receive and execute commands sent by the processor 102. In addition, the touch detection function of the touch screen 109 can be realized by various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch screen 109 , in other modified implementation manners, the input module 118 may also include other input devices, such as keys 107 . The keys 107 may include, for example, character keys for inputting characters, and control keys for triggering control functions. Examples of the control buttons include a "return to main screen" button, a power on/off button, and the like.
所述主显示屏120用于显示由用户输入的信息、提供给用户的信息以及所述电子本体部10的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、数字、视频和其任意组合来构成,在一个实例中,所述触摸屏109可设置于所述显示面板111上从而与所述显示面板111构成一个整体。The main display screen 120 is used to display information input by the user, information provided to the user, and various graphical user interfaces of the electronic main body 10. These graphical user interfaces can be composed of graphics, text, icons, numbers, video and Any combination thereof may be used. In one example, the touch screen 109 may be disposed on the display panel 111 so as to form an integral body with the display panel 111 .
所述电源模块122用于向所述处理器102以及其他各组件提供电力供应。具体地,所述电源模块122可包括电源管理系统、一个或多个电源(如电池或者交流电)、充电电路、电源失效检测电路、逆变器、电源状态指示灯以及其他任意与所述电子本体部10或所述主显示屏120内电力的生成、管理及分布相关的组件。The power module 122 is used to provide power supply to the processor 102 and other components. Specifically, the power module 122 may include a power management system, one or more power sources (such as batteries or alternating current), a charging circuit, a power failure detection circuit, an inverter, a power status indicator light, and any other components related to the electronic body. Part 10 or the components related to the generation, management and distribution of power in the main display screen 120 .
所述移动终端100还包括定位器119,所述定位器119用于确定所述移动终端100所处的实际位置。本实施例中,所述定位器119采用定位服务来实现所述移动终端100的定位,所述定位服务,应当理解为通过特定的定位技术来获取所述移动终端100的位置信息(如经纬度坐标),在电子地图上标出被定位对象的位置的技术或服务。The mobile terminal 100 further includes a locator 119, and the locator 119 is used to determine the actual location of the mobile terminal 100. In this embodiment, the locator 119 uses a positioning service to realize the positioning of the mobile terminal 100. The positioning service should be understood as obtaining the position information (such as longitude and latitude coordinates) of the mobile terminal 100 through a specific positioning technology. ), a technology or service that marks the position of a positioned object on an electronic map.
应当理解的是,上述的移动终端100并不局限于智能手机终端,其应当指可以在移动中使用的计算机设备。具体而言,移动终端100,是指搭载了智能操作系统的移动计算机设备,移动终端100包括但不限于智能手机、智能手表、平板电脑,等等。It should be understood that the above-mentioned mobile terminal 100 is not limited to a smart phone terminal, but refers to a computer device that can be used on the move. Specifically, the mobile terminal 100 refers to a mobile computer device equipped with an intelligent operating system, and the mobile terminal 100 includes but is not limited to a smart phone, a smart watch, a tablet computer, and the like.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本申请的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of this specification, descriptions referring to the terms "one embodiment", "some embodiments", "example", "specific examples", or "some examples" mean that specific features described in connection with the embodiment or example , structure, material or characteristic is included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the described specific features, structures, materials or characteristics may be combined in any suitable manner in any one or more embodiments or examples. In addition, those skilled in the art can combine and combine different embodiments or examples and features of different embodiments or examples described in this specification without conflicting with each other.
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本申请的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。In addition, the terms "first" and "second" are used for descriptive purposes only, and cannot be interpreted as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include at least one of these features. In the description of the present application, "plurality" means at least two, such as two, three, etc., unless otherwise specifically defined.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本申请的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本申请的实施例所属技术领域的技术人员所理解。Any process or method descriptions in flowcharts or otherwise described herein may be understood to represent modules, segments or portions of code comprising one or more executable instructions for implementing specific logical functions or steps of the process , and the scope of preferred embodiments of the present application includes additional implementations in which functions may be performed out of the order shown or discussed, including in substantially simultaneous fashion or in reverse order depending on the functions involved, which shall It should be understood by those skilled in the art to which the embodiments of the present application belong.
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(移动终端),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。The logic and/or steps represented in the flowcharts or otherwise described herein, for example, can be considered as a sequenced listing of executable instructions for implementing logical functions, can be embodied in any computer-readable medium, For use with instruction execution systems, devices, or devices (such as computer-based systems, systems including processors, or other systems that can fetch instructions from instruction execution systems, devices, or devices and execute instructions), or in conjunction with these instruction execution systems, devices or equipment used. For the purposes of this specification, a "computer-readable medium" may be any device that can contain, store, communicate, propagate or transmit a program for use in or in conjunction with an instruction execution system, device or device. More specific examples (non-exhaustive list) of computer readable media include the following: electrical connection with one or more wires (mobile terminal), portable computer disk case (magnetic device), random access memory (RAM), Read Only Memory (ROM), Erasable and Editable Read Only Memory (EPROM or Flash Memory), Fiber Optic Devices, and Portable Compact Disc Read Only Memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program can be printed, since the program can be read, for example, by optically scanning the paper or other medium, followed by editing, interpretation or other suitable processing if necessary. The program is processed electronically and stored in computer memory.
应当理解,本申请的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that each part of the present application may be realized by hardware, software, firmware or a combination thereof. In the embodiments described above, various steps or methods may be implemented by software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques known in the art: Discrete logic circuits, ASICs with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。此外,在本申请各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。Those of ordinary skill in the art can understand that all or part of the steps carried by the methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. During execution, one or a combination of the steps of the method embodiments is included. In addition, each functional unit in each embodiment of the present application may be integrated into one processing module, each unit may exist separately physically, or two or more units may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. If the integrated modules are realized in the form of software function modules and sold or used as independent products, they can also be stored in a computer-readable storage medium.
上述提到的存储介质可以是只读存储器,磁盘或光盘等。尽管上面已经示出和描述了本申请的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本申请的限制,本领域的普通技术人员在本申请的范围内可以对上述实施例进行变化、修改、替换和变型。The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, and the like. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as limitations on the present application, and those skilled in the art can make the above-mentioned The embodiments are subject to changes, modifications, substitutions and variations.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not drive the essence of the corresponding technical solutions away from the spirit and scope of the technical solutions of the various embodiments of the present application.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711496256.6A CN108255674A (en) | 2017-12-31 | 2017-12-31 | Method and device for collecting process logs of multi-process browser and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711496256.6A CN108255674A (en) | 2017-12-31 | 2017-12-31 | Method and device for collecting process logs of multi-process browser and mobile terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108255674A true CN108255674A (en) | 2018-07-06 |
Family
ID=62724639
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711496256.6A Pending CN108255674A (en) | 2017-12-31 | 2017-12-31 | Method and device for collecting process logs of multi-process browser and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108255674A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109347899A (en) * | 2018-08-22 | 2019-02-15 | 北京百度网讯科技有限公司 | The method of daily record data is written in distributed memory system |
CN110096440A (en) * | 2019-04-26 | 2019-08-06 | 厦门网宿有限公司 | A kind of log processing method and device |
CN110765085A (en) * | 2019-10-12 | 2020-02-07 | 捷开通讯(深圳)有限公司 | Log information writing method, system, storage medium and mobile terminal |
CN111078523A (en) * | 2019-12-25 | 2020-04-28 | 惠州Tcl移动通信有限公司 | Log obtaining method and device, storage medium and electronic equipment |
CN111930686A (en) * | 2020-07-15 | 2020-11-13 | 杭州海康威视系统技术有限公司 | Method and device for storing log and computer equipment |
CN112749023A (en) * | 2019-10-30 | 2021-05-04 | 阿里巴巴集团控股有限公司 | Information processing method, device, equipment and system |
CN116701320A (en) * | 2022-12-01 | 2023-09-05 | 荣耀终端有限公司 | Log generation method and related device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1567248A (en) * | 2003-07-01 | 2005-01-19 | 华为技术有限公司 | Log recording method and system for application program |
CN102508765A (en) * | 2011-11-17 | 2012-06-20 | 深圳市中兴移动通信有限公司 | Method for monitoring software log in real time by inter-process communication |
CN103049245A (en) * | 2012-10-25 | 2013-04-17 | 浪潮电子信息产业股份有限公司 | Software performance optimization method based on central processing unit (CPU) multi-core platform |
CN106980551A (en) * | 2017-03-24 | 2017-07-25 | 山东浪潮商用系统有限公司 | A kind of Way of Process Communication and device |
-
2017
- 2017-12-31 CN CN201711496256.6A patent/CN108255674A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1567248A (en) * | 2003-07-01 | 2005-01-19 | 华为技术有限公司 | Log recording method and system for application program |
CN102508765A (en) * | 2011-11-17 | 2012-06-20 | 深圳市中兴移动通信有限公司 | Method for monitoring software log in real time by inter-process communication |
CN103049245A (en) * | 2012-10-25 | 2013-04-17 | 浪潮电子信息产业股份有限公司 | Software performance optimization method based on central processing unit (CPU) multi-core platform |
CN106980551A (en) * | 2017-03-24 | 2017-07-25 | 山东浪潮商用系统有限公司 | A kind of Way of Process Communication and device |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109347899A (en) * | 2018-08-22 | 2019-02-15 | 北京百度网讯科技有限公司 | The method of daily record data is written in distributed memory system |
CN110096440A (en) * | 2019-04-26 | 2019-08-06 | 厦门网宿有限公司 | A kind of log processing method and device |
CN110765085A (en) * | 2019-10-12 | 2020-02-07 | 捷开通讯(深圳)有限公司 | Log information writing method, system, storage medium and mobile terminal |
CN112749023A (en) * | 2019-10-30 | 2021-05-04 | 阿里巴巴集团控股有限公司 | Information processing method, device, equipment and system |
CN112749023B (en) * | 2019-10-30 | 2024-06-11 | 阿里巴巴集团控股有限公司 | Information processing method, device, equipment and system |
CN111078523A (en) * | 2019-12-25 | 2020-04-28 | 惠州Tcl移动通信有限公司 | Log obtaining method and device, storage medium and electronic equipment |
CN111078523B (en) * | 2019-12-25 | 2024-02-09 | 惠州Tcl移动通信有限公司 | Log acquisition method and device, storage medium and electronic equipment |
CN111930686A (en) * | 2020-07-15 | 2020-11-13 | 杭州海康威视系统技术有限公司 | Method and device for storing log and computer equipment |
CN111930686B (en) * | 2020-07-15 | 2024-02-20 | 杭州海康威视系统技术有限公司 | Method and device for storing logs and computer equipment |
CN116701320A (en) * | 2022-12-01 | 2023-09-05 | 荣耀终端有限公司 | Log generation method and related device |
CN116701320B (en) * | 2022-12-01 | 2024-05-14 | 荣耀终端有限公司 | A log generation method and related device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108255674A (en) | Method and device for collecting process logs of multi-process browser and mobile terminal | |
EP3342172B1 (en) | Method of controlling the sharing of videos and electronic device adapted thereto | |
US20170116987A1 (en) | Electronic device and method for executing function using speech recognition thereof | |
CN108388671B (en) | Information sharing method and device, mobile terminal and computer readable medium | |
CN108463799B (en) | Flexible display of electronic device and operation method thereof | |
CN109040419B (en) | Screen recording method and device, mobile terminal and storage medium | |
CN108762859B (en) | Wallpaper display method and device, mobile terminal and storage medium | |
WO2019000287A1 (en) | Icon display method and device | |
US20150025882A1 (en) | Method for operating conversation service based on messenger, user interface and electronic device using the same | |
AU2014312541B2 (en) | Method, apparatus, and recording medium for interworking with external terminal | |
CN108712561A (en) | Rights management method, device, mobile terminal and storage medium | |
KR102559407B1 (en) | Computer readable recording meditum and electronic apparatus for displaying image | |
CN108664475A (en) | Translate display methods, device, mobile terminal and storage medium | |
WO2019165997A1 (en) | Display method, device, mobile terminal and storage medium | |
CN108762466A (en) | Display method, display device, mobile terminal and storage medium | |
US20210165953A1 (en) | Email Translation Method and Electronic Device | |
WO2019201109A1 (en) | Word processing method and apparatus, and mobile terminal and storage medium | |
CN108763892A (en) | Authority management method, device, mobile terminal and storage medium | |
CN108650335A (en) | Method, device and testing equipment for communication connection with mobile terminal to be tested | |
CN111078523B (en) | Log acquisition method and device, storage medium and electronic equipment | |
CN108932102A (en) | Data processing method and device and mobile terminal | |
CN108780400B (en) | Data processing method and electronic equipment | |
KR102265648B1 (en) | Electronic device and method of sending a message using electronic device | |
US10122958B2 (en) | Method for recording execution screen and electronic device for processing the same | |
CN108646967A (en) | display switching method, device, mobile terminal and 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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180706 |
|
RJ01 | Rejection of invention patent application after publication |