[go: up one dir, main page]

CN114691258A - System performance display method, system, smart device and storage medium - Google Patents

System performance display method, system, smart device and storage medium Download PDF

Info

Publication number
CN114691258A
CN114691258A CN202011614170.0A CN202011614170A CN114691258A CN 114691258 A CN114691258 A CN 114691258A CN 202011614170 A CN202011614170 A CN 202011614170A CN 114691258 A CN114691258 A CN 114691258A
Authority
CN
China
Prior art keywords
system performance
performance data
local area
area network
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011614170.0A
Other languages
Chinese (zh)
Inventor
谢黎明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202011614170.0A priority Critical patent/CN114691258A/en
Publication of CN114691258A publication Critical patent/CN114691258A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Quality & Reliability (AREA)
  • Human Computer Interaction (AREA)
  • Debugging And Monitoring (AREA)

Abstract

本发明公开了一种系统性能的显示方法、系统、智能设备及存储介质,方法包括:第一设备通过自身配置的监控进程获取第一设备中目标进程的系统性能数据;第一设备对系统性能数据进行分析,得到分析结果;第一设备广播分析结果,以使得第二设备接收并可视化显示分析结果。本发明通过自身配置的监控进程监控并获取第一设备中目标进程的系统性能数据,方法简单,并且通过该监控进程对系统性能数据进行分析,以广播形式使得第二设备接收分析结果,并可视化显示,处理量小,而且使得系统性能数据直观显示,无需专业人士,降低成本,并为系统性能追踪和定位提供参考依据,方便用户。

Figure 202011614170

The invention discloses a system performance display method, system, intelligent device and storage medium. The method includes: a first device obtains system performance data of a target process in the first device through a monitoring process configured by itself; The data is analyzed to obtain an analysis result; the first device broadcasts the analysis result, so that the second device receives and visualizes the analysis result. The present invention monitors and obtains the system performance data of the target process in the first device through the monitoring process configured by itself, and the method is simple, and analyzes the system performance data through the monitoring process, and enables the second device to receive the analysis results in the form of broadcast and visualize them. Display, the processing capacity is small, and the system performance data can be displayed intuitively, without the need for professionals, reducing costs, and providing a reference for system performance tracking and positioning, which is convenient for users.

Figure 202011614170

Description

系统性能的显示方法、系统、智能设备及存储介质System performance display method, system, smart device and storage medium

技术领域technical field

本发明涉及计算机应用技术领域,尤其涉及一种系统性能的显示方法、系统、智能设备及存储介质。The present invention relates to the technical field of computer applications, and in particular, to a method, system, smart device and storage medium for displaying system performance.

背景技术Background technique

随着物联网技术的广泛应用,越来越多的设备加入互联网,这使得传统的嵌入式设备具备互联互通的能力,同时对于追求性价比的嵌入式设备来说,对于其芯片、flash、RAM等成本是非常敏感的,在产品稳定的前提下,其硬件成本越低就越具备竞争优势。然而却给系统性能带来了一定的挑战性:无法实时获取内存使用率、CPU使用率、正在运行的进程(或线程)的数量,每个进程/线程所消耗的CPU算力,I/O吞吐量等性能指标,而且程序异常的原因往往仅依靠专业技术工程师的知识或者经验定位,使得程序异常的原因往往难以被追踪与复现。With the wide application of Internet of Things technology, more and more devices join the Internet, which makes traditional embedded devices capable of interconnection. It is very sensitive. Under the premise of product stability, the lower the hardware cost, the more competitive advantage it will have. However, it brings certain challenges to system performance: it is impossible to obtain real-time memory usage, CPU usage, the number of running processes (or threads), CPU power consumed by each process/thread, I/O Throughput and other performance indicators, and the cause of program exceptions are often located only by the knowledge or experience of professional technical engineers, making the cause of program exceptions difficult to track and reproduce.

因此,现有技术还有待于改进和发展。Therefore, the existing technology still needs to be improved and developed.

发明内容SUMMARY OF THE INVENTION

基于此,有必要针对上述问题,本申请提出了系统性能的显示方法、系统、智能设备及存储介质,用于解决现有技术中需要依靠专业人士分析系统性能数据而导致成本增加的技术问题。Based on this, it is necessary to address the above problems, and the present application proposes a system performance display method, system, smart device and storage medium, which are used to solve the technical problem of increasing costs due to the need to rely on professionals to analyze system performance data in the prior art.

在第一方面,本申请提供一种系统性能的显示方法,包括:In a first aspect, the present application provides a method for displaying system performance, including:

第一设备通过自身配置的监控进程获取第一设备中目标进程的系统性能数;The first device obtains the system performance number of the target process in the first device through the monitoring process configured by itself;

第一设备对系统性能数据进行分析,得到分析结果;The first device analyzes the system performance data to obtain an analysis result;

第一设备广播分析结果,以使得第二设备接收并可视化显示分析结果。The first device broadcasts the analysis results so that the second device receives and visualizes the analysis results.

在第二方面,本申请提供一种系统性能的显示系统,系统包括第一设备和与第一设备处于同一局域网的第二设备,其中:In a second aspect, the present application provides a system performance display system, the system includes a first device and a second device located in the same local area network as the first device, wherein:

第一设备通过自身配置的监控进程获取第一设备中目标进程的系统性能数据;The first device obtains the system performance data of the target process in the first device through the monitoring process configured by itself;

第一设备对系统性能数据进行分析,得到分析结果;The first device analyzes the system performance data to obtain an analysis result;

第一设备广播分析结果,以使得第二设备接收并可视化显示分析结果。The first device broadcasts the analysis results so that the second device receives and visualizes the analysis results.

在第三方面,本申请实施例还提供一种智能设备,该智能设备包括存储器、处理器以及存储在存储器中并可在处理器上运行的计算机程序,处理器执行计算机程序时,以实现上述系统性能的显示方法中的步骤。In a third aspect, an embodiment of the present application also provides a smart device, the smart device includes a memory, a processor, and a computer program stored in the memory and running on the processor, when the processor executes the computer program, the above-mentioned The steps in the display method of system performance.

在第四方面,本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序,该计算机程序被处理器执行时,以实现上述系统性能的显示方法中的步骤。In a fourth aspect, embodiments of the present application further provide a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, implements the steps in the above-mentioned system performance display method .

采用本发明实施例,具有如下有益效果:Adopting the embodiment of the present invention has the following beneficial effects:

本发明实施例所提供的技术方案,通过监控进程监控并获取第一设备中目标进程的系统性能数据,方法简单,并且通过该监控进程对系统性能数据进行分析,以广播形式使得第二设备接收分析结果,并可视化显示,处理量小,而且使得系统性能数据直观显示,无需专业人士,降低成本,并为系统性能追踪和定位提供参考依据,方便用户。The technical solution provided by the embodiment of the present invention monitors and obtains the system performance data of the target process in the first device through the monitoring process. The analysis results are visualized and displayed. The processing capacity is small, and the system performance data can be displayed intuitively, without the need for professionals, reducing costs, and providing a reference for system performance tracking and positioning, which is convenient for users.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained according to these drawings without creative efforts.

其中:in:

图1为本申请实施例中系统性能的显示方法的流程示意图;1 is a schematic flowchart of a method for displaying system performance in an embodiment of the present application;

图2为本申请实施例中系统性能的显示系统的结构示意图;2 is a schematic structural diagram of a system performance display system in an embodiment of the present application;

图3为本申请实施例中智能设备的结构框图。FIG. 3 is a structural block diagram of a smart device in an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

请参阅图1,为本申请实施例中系统性能的显示方法的流程示意图,该方法包括:Please refer to FIG. 1, which is a schematic flowchart of a method for displaying system performance in an embodiment of the present application. The method includes:

S10、第一设备通过自身配置的监控进程获取第一设备中目标进程的系统性能数据;S10, the first device obtains the system performance data of the target process in the first device through the monitoring process configured by itself;

在本申请实施例中,该系统性能的显示方法应用于系统,该系统包括第一设备与第二设备,第一设备与第二设备处于同一局域网。也就是说,第一设备与第二设备通过局域网进行数据通信。其中,第一设备是具备联网的设备,其可以为移动终端,如手机、平板电脑、电子书阅读器、MP3、MP4、耳机、PC等,也可以为固定终端,如电视、电脑等,在此不做限制。In this embodiment of the present application, the method for displaying system performance is applied to a system, where the system includes a first device and a second device, and the first device and the second device are in the same local area network. That is, the first device and the second device perform data communication through the local area network. The first device is a networked device, which can be a mobile terminal, such as a mobile phone, tablet computer, e-book reader, MP3, MP4, earphone, PC, etc., or a fixed terminal, such as a TV, a computer, etc. This does not limit.

第二设备同样是具备联网的设备,如物联网设备,其可以为移动终端,如手机、平板电脑、电子书阅读器、MP3、MP4、耳机、PC等,也可以为固定终端,如电视、电脑、冰箱、空调等,在此不做限制。The second device is also a networked device, such as an Internet of Things device, which can be a mobile terminal, such as a mobile phone, tablet computer, e-book reader, MP3, MP4, headset, PC, etc., or a fixed terminal, such as a TV, Computers, refrigerators, air conditioners, etc. are not limited here.

在本步骤中,第一设备中配置有该监控进程。该监控进程用于执行获取和处理系统性能数据的任务。系统性能数据指的是通过监控获取到反映系统性能的运行数据。In this step, the monitoring process is configured in the first device. The monitoring process is used to perform tasks to obtain and process system performance data. System performance data refers to the operation data that reflects system performance obtained through monitoring.

在第一设备中还配置有若干性能指标,由若干性能指标来衡量系统性能。进而该监控进程根据所设置的性能指标获取对应的运行数据,以得到系统性能数据。其中,该系统性能指标包括软件性能指标和硬件性能指标。其中,软件性能指标包括高峰并发数、系统的响应速度情况,网络流量、每类请求在总的请求中所占的百分比等,硬件性能指标包括显存、硬盘速度、主频等。Several performance indicators are also configured in the first device, and the system performance is measured by several performance indicators. Further, the monitoring process obtains corresponding operation data according to the set performance index, so as to obtain system performance data. The system performance indicators include software performance indicators and hardware performance indicators. Among them, software performance indicators include peak concurrency, system response speed, network traffic, the percentage of each type of request in the total request, etc., and hardware performance indicators include video memory, hard disk speed, main frequency, etc.

在本步骤中,第一设备通过自身配置的监控进程获取第一设备中目标进程的系统性能数据,该目标进程可以为用户的指定进程,也可以为系统默认的进程。在本实施例中,该目标进程至少包括一个主线程,该主线程可以为CPU主线程。该目标进程还包括若干子线程,该主线程以及若干子线程可以并行执行任务。In this step, the first device obtains system performance data of a target process in the first device through a monitoring process configured by itself, and the target process may be a user-specified process or a system default process. In this embodiment, the target process includes at least one main thread, and the main thread may be a CPU main thread. The target process also includes several sub-threads, and the main thread and several sub-threads can execute tasks in parallel.

需要说明的是,该主线程与若干子线程将共享该监控进程中的全部资源。这样,该监控进程调用第一设备的API接口以及虚拟文件系统来获取该主线程以及若干子线程内的系统性能数据。It should be noted that the main thread and several sub-threads will share all the resources in the monitoring process. In this way, the monitoring process invokes the API interface of the first device and the virtual file system to acquire system performance data in the main thread and several sub-threads.

S20、第一设备对系统性能数据进行分析,得到分析结果;S20. The first device analyzes the system performance data to obtain an analysis result;

在本申请实施例中,获取第一设备预先配置的系统性能指标,该系统性能指标用于指示提取的内容。第一设备启动该监控进程后,通过该监控进程从系统性能数据中提取该系统性能指标对应的数据。由于系统性能数据繁杂且多样化,通过提取仅关于预先配置的系统性能指标,去除非相关系统性能数据,获取有效系统性能数据,不仅加快处理速度,而且还提高数据的准确性。In this embodiment of the present application, a system performance indicator pre-configured by the first device is acquired, where the system performance indicator is used to indicate the extracted content. After the first device starts the monitoring process, data corresponding to the system performance index is extracted from the system performance data through the monitoring process. Due to the complex and diverse system performance data, by extracting only pre-configured system performance indicators, removing non-relevant system performance data, and obtaining valid system performance data, it not only speeds up the processing speed, but also improves the accuracy of the data.

在一可行方式中,预先配置的系统性能指标还可以为能衡量系统性能的最少性能指标,从而节省空间占用,且加快系统性能的处理速度。In a feasible manner, the preconfigured system performance index may also be the minimum performance index capable of measuring system performance, thereby saving space occupation and speeding up the processing speed of system performance.

第一设备将从系统性能数据提取的数据作为目标性能数据。接着第一设备将目标性能数据转化为预设标准格式的目标性能数据,并将转化后的目标性能数据作为分析结果。其中,该预设标准格式为json格式,该json格式能够兼容不同配置的终端,尤其是低端设备,而且json格式的数据可以提高处理速度,处理量小,这样,第一设备将目标性能数据转化为json格式的目标性能数据,利于推广。需要说明的是,该预设标准格式并非限制的,还可以为XML格式,也可以根据不同需要进行自定义设置。The first device uses the data extracted from the system performance data as the target performance data. Next, the first device converts the target performance data into target performance data in a preset standard format, and uses the converted target performance data as an analysis result. Among them, the preset standard format is json format, which is compatible with terminals with different configurations, especially low-end devices, and the data in json format can improve the processing speed and the processing volume is small. In this way, the first device will store the target performance data Convert the target performance data into json format for promotion. It should be noted that the preset standard format is not limited, and can also be an XML format, and can also be customized according to different needs.

在一实施例中,除了监控进程对系统性能数据进行分析以得到分析结果,还可以由目标进程对系统性能数据进行分析以得到分析结果。In one embodiment, in addition to analyzing the system performance data by the monitoring process to obtain the analysis result, the target process may also analyze the system performance data to obtain the analysis result.

S30、第一设备广播分析结果,以使得第二设备接收并可视化显示分析结果。S30. The first device broadcasts the analysis result, so that the second device receives and visually displays the analysis result.

在实际应用中,由于用户可以拥有多个终端设备,那么,在一可行方式中,该第一设备与该第二设备可绑定同一用户,可以共享信息。也就是说,若第一设备接入局域网,与第一设备绑定的第二设备可根据第一设备的配网信息也同样接入到同一局域网。其中,第一设备与第二设备通过局域网进行连接,具体包括:In practical applications, since a user may possess multiple terminal devices, in a feasible manner, the first device and the second device may be bound to the same user, and may share information. That is, if the first device is connected to the local area network, the second device bound to the first device can also access the same local area network according to the network configuration information of the first device. Wherein, the first device and the second device are connected through a local area network, which specifically includes:

M10、第一设备接入所述局域网,并获取局域网中第一设备的配网信息;M10. The first device is connected to the local area network, and obtains network distribution information of the first device in the local area network;

M11、在局域网中查找新加入的第二设备;M11. Find the newly added second device in the local area network;

M13、第一设备将配网信息发送至第二设备,以使得第二设备接收到配网信息后进行配置,以接入局域网。M13. The first device sends the network configuration information to the second device, so that the second device performs configuration after receiving the network configuration information, so as to access the local area network.

上述局域网可以是有线局域网,也可以是无线局域网。上述配网信息用于指示第一设备成功接入该局域网。该配网信息包括第一设备的设备标识、配网标识以及配网密码。例如,无线局域网中该配网信息为无线热点信息,其包括热点名称以及热点密码。若第一设备接入到局域网后,可获取到局域网中该第一设备的相关配网信息,由于用户可拥有多个终端设备,为了简化操作,避免同一用户每增加一个终端设备,都需要重复获取联网的网络名称并重复选择待联网的网络以及输入网络密码接入到局域网。若检测到局域网中新加入了第二设备,则该第二设备自动获取到第一设备的配网信息对自身进行配置,以接入到该局域网,这样,第二设备与第一设备处于同一局域网。这样,不管与第一设备绑定的其他第二设备有多少个,均可采用相同方式,直接根据第一设备的配网信息对自身进行配置,不仅缩短配网时间,而且智能化,操作简单。The above-mentioned local area network may be a wired local area network or a wireless local area network. The above-mentioned network distribution information is used to indicate that the first device successfully accesses the local area network. The network distribution information includes a device identifier of the first device, a network distribution identifier, and a network distribution password. For example, the network distribution information in the wireless local area network is wireless hotspot information, which includes the hotspot name and the hotspot password. If the first device is connected to the local area network, it can obtain the relevant network distribution information of the first device in the local area network. Since the user can have multiple terminal devices, in order to simplify the operation and avoid the need to repeat each time the same user adds a terminal device Obtain the network name of the network and repeatedly select the network to be networked and enter the network password to access the LAN. If it is detected that a second device is newly added to the local area network, the second device automatically obtains the network distribution information of the first device and configures itself to access the local area network. In this way, the second device is in the same location as the first device. local area network. In this way, no matter how many other second devices are bound to the first device, the same method can be used to directly configure itself according to the network distribution information of the first device, which not only shortens the network distribution time, but also is intelligent and easy to operate. .

为了及时获取到直观的第一设备的系统性能数据,那么,第一设备的该监控进程周期性的或在若干个设定时刻触发第一设备,以广播目标性能数据(即分析结果),从而使得同一局域网的第二设备同步接收到该目标性能数据,并对该目标性能数据进行可视化处理,从而以图表方式展示可视化处理后的数据。In order to obtain the intuitive system performance data of the first device in time, the monitoring process of the first device triggers the first device periodically or at several set moments to broadcast the target performance data (ie, the analysis result), thereby The second device in the same local area network is made to receive the target performance data synchronously, and perform visual processing on the target performance data, so as to display the visualized data in a graph.

需要说明的是,第二设备是否能够接收到该目标性能数据,需要先确定该第二设备是否成功接入到第一设备所处的局域网。若第二设备没有成功接入到该局域网,则第二设备无法接收到第一设备广播到的目标性能数据。It should be noted that, whether the second device can receive the target performance data, it needs to first determine whether the second device successfully accesses the local area network where the first device is located. If the second device fails to access the local area network, the second device cannot receive the target performance data broadcast by the first device.

上述设定时刻通常设置为1小时,当然,其设定时刻可根据需求自定设定,如设定为区间。这样,一旦达到设定时刻后,第一设备启动该监控进程以获取第一设备中目标进程的系统性能数据,从而使得第一设备广播经过处理后的目标系统性能数据,在第二设备展示经过处理后的目标系统性能数据,实现资源共享,跨设备展示。The above set time is usually set to 1 hour. Of course, the set time can be set according to the needs, such as setting it as an interval. In this way, once the set time is reached, the first device starts the monitoring process to obtain the system performance data of the target process in the first device, so that the first device broadcasts the processed target system performance data, and displays the processed performance data on the second device. The processed target system performance data realizes resource sharing and displays across devices.

需要说明的是,该监控进程必然存储有监控规则,该监控规则用于指示监控的若干线程以及监控内容。该监控规则包括预设时间内监控的线程数、线程名称以及监控的性能指标。It should be noted that the monitoring process must store a monitoring rule, and the monitoring rule is used to indicate several threads to be monitored and monitoring content. The monitoring rule includes the number of threads to be monitored within a preset time, the thread names, and the monitored performance indicators.

这样,基于S10至S30,通过监控进程监控并获取第一设备中目标进程的系统性能数据,方法简单,并且通过该监控进程对系统性能数据进行分析,以广播形式使得第二设备接收分析结果,并可视化显示,处理量小,而且使得系统性能数据直观显示,无需专业人士,降低成本,并为系统性能追踪和定位提供参考依据,方便用户。In this way, based on S10 to S30, the system performance data of the target process in the first device is monitored and obtained through the monitoring process, the method is simple, and the system performance data is analyzed through the monitoring process, so that the second device receives the analysis result in the form of broadcasting, And visual display, the processing capacity is small, and the system performance data can be displayed intuitively, without the need for professionals, reducing costs, and providing a reference for system performance tracking and positioning, which is convenient for users.

请参阅图2,为本申请实施例中系统性能的显示系统的结构框图,其包括第一设备100和与第一设备100处于同一局域网的第二设备200,其中,第一设备100包括:Please refer to FIG. 2 , which is a structural block diagram of a system performance display system in an embodiment of the present application, which includes a first device 100 and a second device 200 located in the same local area network as the first device 100 , wherein the first device 100 includes:

获取单元101,用于通过自身配置的监控进程获取第一设备100中目标进程的系统性能数据;an obtaining unit 101, configured to obtain system performance data of a target process in the first device 100 through a monitoring process configured by itself;

分析单元102,用于对系统性能数据进行分析,得到分析结果;An analysis unit 102, configured to analyze the system performance data to obtain an analysis result;

广播单元103,用于广播分析结果,以使得第二设备200接收并可视化显示分析结果,具体如上述系统性能的显示方法。The broadcasting unit 103 is configured to broadcast the analysis result, so that the second device 200 receives and visually displays the analysis result, specifically as the above-mentioned method for displaying system performance.

其中,第一设备100与第二设备200通过局域网建立连接,具体为:The connection between the first device 100 and the second device 200 is established through a local area network, specifically:

第一设备100接入局域网,并获取局域网中第一设备100的配网信息;The first device 100 is connected to the local area network, and obtains network configuration information of the first device 100 in the local area network;

在该局域网中查找新加入的第二设备200;Find the newly added second device 200 in the local area network;

第一设备100将配网信息发送至第二设备200,以使得第二设备200接收到配网信息后进行配置,以接入局域网,具体如上述系统性能的显示方法。The first device 100 sends the network configuration information to the second device 200, so that the second device 200 configures to access the local area network after receiving the network configuration information.

其中,获取单元101包括:Wherein, the obtaining unit 101 includes:

调用单元,用于调用第一设备100的API接口或虚拟文件系统;a calling unit for calling the API interface or the virtual file system of the first device 100;

第一获取单元,用于通过监控进程基于API接口或虚拟文件系统来获取第一设备100中目标进程的系统性能数据,具体如上述系统性能的显示方法。The first obtaining unit is configured to obtain the system performance data of the target process in the first device 100 through the monitoring process based on the API interface or the virtual file system, and is specifically as described above for the display method of the system performance.

其中,分析单元102包括:Wherein, the analysis unit 102 includes:

第二获取单元,用于获取预先配置的系统性能指标;a second acquiring unit, configured to acquire preconfigured system performance indicators;

提取单元,用于根据系统性能指标提取系统性能数据,得到目标性能数据;The extraction unit is used to extract the system performance data according to the system performance index to obtain the target performance data;

转换单元,用于将目标性能数据转化为预设标准格式的性能数据,并将转化后的目标性能数据作为分析结果。其中,标准格式包括json格式,具体如上述系统性能的显示方法。The conversion unit is used to convert the target performance data into performance data in a preset standard format, and use the converted target performance data as an analysis result. Wherein, the standard format includes json format, which is specifically as the display method of the system performance above.

在本申请实施例所提供的系统,通过监控进程监控并获取第一设备中目标进程的系统性能数据,方法简单,并且通过该监控进程对系统性能数据进行分析,以广播形式使得第二设备接收分析结果,并可视化显示,处理量小,而且使得系统性能数据直观显示,无需专业人士,降低成本,并为系统性能追踪和定位提供参考依据,方便用户。In the system provided by the embodiment of the present application, the monitoring process is used to monitor and obtain the system performance data of the target process in the first device, the method is simple, and the system performance data is analyzed through the monitoring process, so that the second device receives The analysis results are visualized and displayed. The processing capacity is small, and the system performance data can be displayed intuitively, without the need for professionals, reducing costs, and providing a reference for system performance tracking and positioning, which is convenient for users.

图3示出了一个实施例中智能设备的内部结构图。该智能终端可以是手机、ipad、台式电脑等任一能联网的的设备。智能终端包括处理器20、与处理器20连接的存储器22,该智能终端还配置有监控进程,图3仅示出了智能终端的部分组件,但是应理解的是,并不要求实施所有示出的组件,可以替代的实施更多或者更少的组件。FIG. 3 shows an internal structure diagram of a smart device in one embodiment. The intelligent terminal can be any device that can be connected to the Internet, such as a mobile phone, an ipad, and a desktop computer. The intelligent terminal includes a processor 20 and a memory 22 connected to the processor 20, and the intelligent terminal is also configured with a monitoring process. FIG. 3 only shows some components of the intelligent terminal, but it should be understood that it is not required to implement all the shown components. components, more or fewer components may be implemented instead.

存储器22在一些实施例中可以是智能终端的内部存储单元,例如内存。存储器22在另一些实施例中也可以是外部存储设备,例如智能终端上配备的插接式U盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,存储器22还可以既包括智能终端的内部存储单元也包括外部存储设备。存储器22用于存储安装于智能终端的应用软件及各类数据,例如系统性能的显示程序代码等。存储器22还可以用于暂时地存储已经输出或者将要输出的数据。在一实施例中,存储器22上存储有系统性能的显示程序,该系统性能的显示程序可被处理器20所执行如下步骤:The memory 22 may be an internal storage unit of the smart terminal, such as a memory, in some embodiments. In other embodiments, the memory 22 may also be an external storage device, such as a plug-in U disk equipped on a smart terminal, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, and a flash memory card. (Flash Card) etc. Further, the memory 22 may also include both an internal storage unit of the smart terminal and an external storage device. The memory 22 is used to store application software and various data installed in the smart terminal, such as program codes for displaying system performance. The memory 22 may also be used to temporarily store data that has been or will be output. In one embodiment, the memory 22 stores a system performance display program, and the system performance display program can be executed by the processor 20 as follows:

智能设备通过自身配置的监控进程获取目标进程的系统性能数据;The smart device obtains the system performance data of the target process through the monitoring process configured by itself;

智能设备对系统性能数据进行分析,得到分析结果;The intelligent device analyzes the system performance data and obtains the analysis results;

智能设备广播分析结果,以使得与该智能设备连接的其他设备接收并可视化显示分析结果,具体如上述。The smart device broadcasts the analysis result, so that other devices connected to the smart device receive and visualize the analysis result, as described above.

在一个实施例中,提出了一种计算机可读存储介质,存储有计算机程序,计算机程序被处理器执行时,使得处理器执行以下步骤:In one embodiment, a computer-readable storage medium is provided, which stores a computer program, and when the computer program is executed by a processor, causes the processor to perform the following steps:

通过自身配置的监控进程获取智能设备中目标进程的系统性能数据;Obtain the system performance data of the target process in the smart device through the monitoring process configured by itself;

智能设备对系统性能数据进行分析,得到分析结果;The intelligent device analyzes the system performance data and obtains the analysis results;

智能设备广播分析结果,以使得与智能设备连接的其他设备接收并可视化显示分析结果,具体如上述。The smart device broadcasts the analysis result, so that other devices connected to the smart device receive and visualize the analysis result, as described above.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,的程序可存储于一非易失性计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。Those of ordinary skill in the art can understand that the realization of all or part of the processes in the methods of the above embodiments can be accomplished by instructing relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium, When the program is executed, it may include the flow of the embodiments of the above-mentioned methods. Wherein, any reference to memory, storage, database or other medium used in the various embodiments provided in this application may include non-volatile and/or volatile memory. Nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Road (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. In order to make the description simple, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features It is considered to be the range described in this specification.

以上实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above examples only represent several embodiments of the present application, and the descriptions thereof are relatively specific and detailed, but should not be construed as a limitation on the scope of the patent of the present application. It should be pointed out that for those skilled in the art, without departing from the concept of the present application, several modifications and improvements can be made, which all belong to the protection scope of the present application. Therefore, the scope of protection of the patent of the present application shall be subject to the appended claims.

Claims (10)

1. A method for displaying system performance, comprising:
the method comprises the steps that a first device obtains system performance data of a target process in the first device through a monitoring process configured by the first device;
the first equipment analyzes the system performance data to obtain an analysis result;
the first device broadcasts the analysis results so that the second device receives and visually displays the analysis results.
2. The method according to claim 1, wherein before the first device obtains the system performance data of the target process in the first device through the monitoring process configured by the first device, the method further comprises:
the first device and the second device are connected through a local area network, and the local area network comprises a wireless local area network or a wired local area network.
3. The method of claim 2, wherein establishing the connection between the first device and the second device via a local area network comprises:
the first equipment is accessed to the local area network, and the distribution network information of the first equipment in the local area network is obtained;
searching the newly added second equipment in the local area network;
and the first equipment sends the distribution network information to the second equipment, so that the second equipment carries out configuration after receiving the distribution network information to access the local area network.
4. The method of claim 3, wherein the first device broadcasts the analysis results, comprising:
the first device is triggered periodically or at a plurality of set moments through the monitoring process, so that the first device broadcasts the analysis result.
5. The method according to claim 1, wherein the obtaining, by the first device through a monitoring process configured by the first device, system performance data of a target process in the first device includes:
the first device calls an API (application programming interface) or a virtual file system of the first device to enable the monitoring process to acquire system performance data of a target process in the first device based on the API or the virtual file system, wherein the target process at least comprises one main thread.
6. The method of claim 1, wherein the first device analyzes the system performance data to obtain an analysis result, comprising:
the first equipment acquires a pre-configured system performance index;
the first equipment extracts the system performance data according to the system performance index to obtain target performance data;
and the first equipment converts the target performance data into performance data in a preset standard format, and takes the converted target performance data as an analysis result.
7. The method of claim 6, wherein the standard format comprises a json format.
8. A system performance display system, the system comprising a first device and a second device on a same local area network as the first device, wherein:
the first device acquires system performance data of a target process in the first device through the monitoring process configured by the first device;
the first equipment analyzes the system performance data to obtain an analysis result;
the first device broadcasts the analysis results so that the second device receives and visually displays the analysis results.
9. An intelligent device, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor executing the computer program to implement the steps in the method of displaying the performance of the system according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that it stores a computer program which, when executed by a processor, implements the steps in the method of displaying the performance of the system according to any one of claims 1-7.
CN202011614170.0A 2020-12-29 2020-12-29 System performance display method, system, smart device and storage medium Pending CN114691258A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011614170.0A CN114691258A (en) 2020-12-29 2020-12-29 System performance display method, system, smart device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011614170.0A CN114691258A (en) 2020-12-29 2020-12-29 System performance display method, system, smart device and storage medium

Publications (1)

Publication Number Publication Date
CN114691258A true CN114691258A (en) 2022-07-01

Family

ID=82132972

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011614170.0A Pending CN114691258A (en) 2020-12-29 2020-12-29 System performance display method, system, smart device and storage medium

Country Status (1)

Country Link
CN (1) CN114691258A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102473132A (en) * 2009-07-24 2012-05-23 伦敦大学玛丽女王和威斯特菲尔特学院 Method of monitoring performance of a software application
CN107015896A (en) * 2017-03-31 2017-08-04 许继集团有限公司 A kind of embedded device CPU and its peripheral state method of real-time, system
CN107145389A (en) * 2017-03-09 2017-09-08 深圳市先河系统技术有限公司 A kind of system process monitoring method and computing device
CN107168846A (en) * 2017-03-31 2017-09-15 北京奇艺世纪科技有限公司 The monitoring method and device of electronic equipment
CN110289683A (en) * 2019-06-12 2019-09-27 上海大学 Microgrid network transmission performance monitoring system and implementation method based on NB-IOT
CN110621055A (en) * 2018-06-19 2019-12-27 中移(杭州)信息技术有限公司 Network distribution method, device, terminal, equipment, storage medium and system
CN110971666A (en) * 2019-11-01 2020-04-07 湖南深拓智能设备股份有限公司 Internet of things management system and communication method thereof

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102473132A (en) * 2009-07-24 2012-05-23 伦敦大学玛丽女王和威斯特菲尔特学院 Method of monitoring performance of a software application
CN107145389A (en) * 2017-03-09 2017-09-08 深圳市先河系统技术有限公司 A kind of system process monitoring method and computing device
CN107015896A (en) * 2017-03-31 2017-08-04 许继集团有限公司 A kind of embedded device CPU and its peripheral state method of real-time, system
CN107168846A (en) * 2017-03-31 2017-09-15 北京奇艺世纪科技有限公司 The monitoring method and device of electronic equipment
CN110621055A (en) * 2018-06-19 2019-12-27 中移(杭州)信息技术有限公司 Network distribution method, device, terminal, equipment, storage medium and system
CN110289683A (en) * 2019-06-12 2019-09-27 上海大学 Microgrid network transmission performance monitoring system and implementation method based on NB-IOT
CN110971666A (en) * 2019-11-01 2020-04-07 湖南深拓智能设备股份有限公司 Internet of things management system and communication method thereof

Similar Documents

Publication Publication Date Title
CN110209652B (en) Data table migration method, device, computer equipment and storage medium
WO2021003818A1 (en) Interface test case generating method and apparatus, computer device, and storage medium
CN111198859A (en) Data processing method and device, electronic equipment and computer readable storage medium
CN107404417A (en) A kind of processing method of monitoring data, processing unit and processing system
US20200244759A1 (en) User behavior data processing method and device, and computer-readable storage medium
CN111274512A (en) Page loading method, device and medium
CN107688533A (en) Applied program testing method, device, computer equipment and storage medium
CN103324684A (en) Control method and device for browser kernel in mobile terminal and mobile terminal
CN112015646A (en) Network request monitoring method and device, computer equipment and storage medium
CN113886174A (en) Monitoring information display and processing method, device, computer equipment and storage medium
CN109767257B (en) Advertisement putting method and system based on big data analysis and electronic equipment
CN109684156B (en) Monitoring method, device, terminal and storage medium based on mixed mode application
CN112231167A (en) Cloud resource monitoring method, device, device and storage medium
CN111783010B (en) Webpage blank page monitoring method, device, terminal and storage medium
US20140282057A1 (en) System for applying applications of different operating systems in one electronic device and method thereof
CN104834649A (en) Intelligent equipment capable of realizing multi-equipment synergy and multi-equipment synergy working method
CN108023905B (en) Internet of things application system and method
CN106911554A (en) A kind of historical information methods of exhibiting and device
CN113242254B (en) Communication message processing method, device, terminal equipment and storage medium
CN111078518A (en) Data acquisition method, terminal device and computer-readable storage medium
CN110380902B (en) Topological relation generation method and device, electronic equipment and storage medium
CN114691258A (en) System performance display method, system, smart device and storage medium
CN107092494B (en) Method and device for accessing APK (android Package) resource
CN104363267B (en) A kind of load of data, display methods and device
CN109474386B (en) Signaling tracking method, system, network element equipment 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20220701