Unlock instant, AI-driven research and patent intelligence for your innovation.

Control method, device and processor for avoiding memory leakage of radio Web map trajectory drawing and storage medium

A technology of memory leakage and control method, which is applied in the field of avoiding memory leakage for radio Web map trajectory drawing, can solve problems such as slow program execution, web page crash, and reduced R&D software efficiency, and achieves the effect of avoiding memory leakage.

Active Publication Date: 2021-03-02
创远信科(上海)技术股份有限公司
View PDF5 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Closures are a major feature of JavaScript. Many advanced applications of web front-end frameworks rely on closures. However, when circular references or closures are used in the program, the program is running for a long time and processing massive amounts of data. , it is easy to generate memory leaks on the web side
Once a memory leak occurs on the web side, sometimes the radio monitoring system needs to perform a task of up to te

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Control method, device and processor for avoiding memory leakage of radio Web map trajectory drawing and storage medium
  • Control method, device and processor for avoiding memory leakage of radio Web map trajectory drawing and storage medium
  • Control method, device and processor for avoiding memory leakage of radio Web map trajectory drawing and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] In order to describe the technical content of the present invention more clearly, further description will be given below in conjunction with specific embodiments.

[0036] This realization of the present invention is aimed at the control method of radio Web map track drawing and avoids memory leak, and described method comprises the step of drawing map linear track, specifically comprises the following steps:

[0037] (1) Initialize, receive data drawing, draw a linear trajectory every 5 seconds, judge whether the interval between the current time and the last recording time is greater than 5 seconds, if yes, continue to step (2); otherwise, continue to step (1);

[0038] (2) Start recording the number of frames, recorded as itemCount;

[0039] (3) Determine whether the frame number itemCount is less than the total frame number totalitem, if yes, then proceed to step (5); otherwise, proceed to step (4);

[0040] (4) Remove the first point layer feature in the feature ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a control method for avoiding memory leakage of radio Web map trajectory drawing. The control method comprises the following steps: initializing, receiving data drawing, drawing a linear trajectory every 5 seconds, and judging whether the interval between the current time and the last recording time is greater than 5 seconds or not; if NO, continuing to draw the linear track; starting to record the number of frames, and recording the number of frames as itemCount; judging whether the frame number itemCount is lower than the total frame number totalite or not, if YES, newly building a layer feature Feature, adding current longitude and latitude data into the feature Feature, and adding the feature Feature into a layer; and otherwise, removing the first point-like layer feature in the feature set Features to obtain a new number of frames itemCount. The invention further relates to a corresponding device, a processor and a computer readable storage medium thereof.By the adoption of the control method, device and processor for avoiding memory leakage for drawing of the radio Web map track, and the computer readable storage medium, tasks related to the map track can be executed for at least 10 hours under the condition that a browser page is kept in an activated state, it is kept that about 60 MB exists in a browser, and the browser does not crash. According to the method and the device, the map page dragged by the monitoring task in a long-time running state can be prevented from being blocked.

Description

technical field [0001] The present invention relates to the field of radio detection systems, in particular to the field of radio web maps, and specifically refers to a control method, device, processor and computer-readable storage medium for realizing the avoidance of memory leaks for radio web map trajectory drawing. Background technique [0002] In the B / S-based radio detection system, the JavaScript language developed and used on the web side has its own set of recycling mechanisms. In most cases, local variables and objects will be recycled by the system after they are used. Closures are a major feature of JavaScript. Many advanced applications of web front-end frameworks rely on closures. However, when circular references or closures are used in the program, the program is running for a long time and processing massive amounts of data. , It is easy to generate memory leaks on the web side. Once a memory leak occurs on the web side, sometimes the radio monitoring syst...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F16/29G06F16/957
CPCG06F16/29G06F16/957
Inventor 张寒
Owner 创远信科(上海)技术股份有限公司