Summary of the invention
In view of this, this specification embodiment provides a kind of data processing method and device, a kind of calculating equipment and deposits
Storage media, to solve technological deficiency existing in the prior art.
This specification embodiment discloses a kind of data processing method, comprising:
Acquire the Memory Allocation data and memory point of release of the Memory Allocation point in target dynamic language system implementation procedure
Memory discharge data;
According to the preset time interval according to Memory Allocation data and corresponding with the Memory Allocation data
Memory release data determine retained data;
Show that the Memory Allocation data, the memory discharge data and/or the retained data by presets;
If the retained data shown is less than preset threshold, the memory of the Memory Allocation point is redistributed.
Optionally, the Memory Allocation data and memory of the Memory Allocation point in target dynamic language system implementation procedure are acquired
Before the memory release data of point of release, further includes:
Filter invalid Memory Allocation point.
Optionally, the Memory Allocation point includes the entrance or dynamic of the entrance of dynamic language function, dynamic language code section
The entrance that state language is interacted with host language;The memory point of release includes the outlet of the dynamic language function, the dynamic
The outlet that the outlet of language codes section or the dynamic language are interacted with host language.
Optionally, the presets include line chart, column diagram or table.
Optionally, the Memory Allocation data and memory of the Memory Allocation point in target dynamic language system implementation procedure are acquired
After the memory release data of point of release, further includes:
The Memory Allocation data and the memory are discharged into data in a manner of stratification with call relation according to executing
It is combined, forms the result data of the call-tree form of structuring, and store to the result data.
Optionally, according to the preset time interval according to the Memory Allocation data and with the Memory Allocation data phase
Corresponding memory release data determine that retained data includes:
Retained data is determined according to the result data according to the preset time interval.
On the other hand, this specification embodiment also discloses a kind of data processing equipment, comprising:
Acquisition module is configured as the Memory Allocation of the Memory Allocation point in acquisition target dynamic language system implementation procedure
The memory of data and memory point of release discharges data;
Determining module, be configured as according to the preset time interval according to the Memory Allocation data and with the memory
The corresponding memory release data of distribution data determine retained data;
Display module, be configured as showing by presets the Memory Allocation data, memory release data and/
Or the retained data;
Memory allocating module is redistributed described if being configured as the retained data shown is less than preset threshold
The memory of Memory Allocation point.
Optionally, described device further include:
Memory module, be configured as according to execute and call relation in a manner of stratification by the Memory Allocation data and
Memory release data are combined, and form the result data of the call-tree form of structuring, and to the result data into
Row storage.
On the other hand, this specification embodiment also discloses a kind of calculating equipment, including memory, processor and is stored in
On memory and the computer instruction that can execute on a processor, the processor realize that the instruction is located when executing described instruction
The step of realizing data processing method as described above in reason device implementation procedure.
On the other hand, this specification embodiment also discloses a kind of computer readable storage medium, is stored with computer
The step of instruction, which realizes data processing method as described above during being executed by processor.
A kind of data processing method provided by the present application and device, a kind of calculating equipment and storage medium, wherein the side
Method includes acquiring the Memory Allocation data and memory point of release of the Memory Allocation point in target dynamic language system implementation procedure
Memory discharges data;According to the preset time interval according to Memory Allocation data and opposite with the Memory Allocation data
The memory release data answered determine retained data;Show that the Memory Allocation data, the memory discharge number by presets
According to and/or the retained data;If the retained data shown is less than preset threshold, the Memory Allocation point is redistributed
Memory.
Specific embodiment
Many details are explained in the following description in order to fully understand the application.But the application can be with
Much it is different from other way described herein to implement, those skilled in the art can be without prejudice to the application intension the case where
Under do similar popularization, therefore the application is not limited by following public specific implementation.
The term used in this specification one or more embodiment be only merely for for the purpose of describing particular embodiments,
It is not intended to be limiting this specification one or more embodiment.In this specification one or more embodiment and appended claims
The "an" of singular used in book, " described " and "the" are also intended to including most forms, unless context is clearly
Indicate other meanings.It is also understood that term "and/or" used in this specification one or more embodiment refers to and includes
One or more associated any or all of project listed may combine.
It will be appreciated that though may be retouched using term first, second etc. in this specification one or more embodiment
Various information are stated, but these information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other
It opens.For example, first can also be referred to as second, class in the case where not departing from this specification one or more scope of embodiments
As, second can also be referred to as first.Depending on context, word as used in this " if " can be construed to
" ... when " or " when ... " or " in response to determination ".
In this specification embodiment, provides a kind of data processing method and a kind of calculating equipment of device and storage is situated between
Matter is described in detail one by one in the following embodiments.
Fig. 1 is to show the structural block diagram of the calculating equipment 100 according to one embodiment of this specification.The calculating equipment 100
Component include but is not limited to memory 110 and processor 120.Processor 120 is connected with memory 110 by bus 130,
Database 150 is for saving data, the data that library 150 stores for receiving data of network 160.
Calculating equipment 100 further includes access device 140, access device 140 enable calculate equipment 100 via one or
Multiple networks 160 communicate.The example of these networks includes public switched telephone network (PSTN), local area network (LAN), wide area network
(WAN), the combination of the communication network of personal area network (PAN) or such as internet.Access device 140 may include wired or wireless
One or more of any kind of network interface (for example, network interface card (NIC)), such as IEEE802.11 wireless local area
Net (WLAN) wireless interface, worldwide interoperability for microwave accesses (Wi-MAX) interface, Ethernet interface, universal serial bus (USB) connect
Mouth, cellular network interface, blue tooth interface, near-field communication (NFC) interface, etc..
In one embodiment of this specification, unshowned other component in above-mentioned and Fig. 1 of equipment 100 is calculated
It can be connected to each other, such as pass through bus.It should be appreciated that calculating device structure block diagram shown in FIG. 1 is merely for the sake of example
Purpose, rather than the limitation to this specification range.Those skilled in the art can according to need, and increase or replace other portions
Part.
Calculating equipment 100 can be any kind of static or mobile computing device, including mobile computer or mobile meter
Calculate equipment (for example, tablet computer, personal digital assistant, laptop computer, notebook computer, net book etc.), movement
Phone (for example, smart phone), wearable calculating equipment (for example, smartwatch, intelligent glasses etc.) or other kinds of shifting
Dynamic equipment, or the static calculating equipment of such as desktop computer or PC.Calculating equipment 100 can also be mobile or state type
Server.
Wherein, processor 120 can execute the step in method shown in Fig. 2.Fig. 2 is shown according to this specification one
Or the schematic flow chart of the data processing method of multiple embodiments, including step 202 is to step 208.
Step 202: the Memory Allocation data of Memory Allocation point in acquisition target dynamic language system implementation procedure and interior
Deposit the memory release data of point of release.
In this specification one or more embodiment, the Memory Allocation point can include but is not limited to dynamic language function
Entrance, dynamic language code section entrance or the entrance that is interacted with host language of dynamic language;
It includes going out for the dynamic language function that the memory point of release, which can include but is not limited to the memory point of release,
The outlet that mouth, the outlet of the dynamic language code section or the dynamic language are interacted with host language.
In this specification one or more embodiment, the Memory Allocation point in target dynamic language system implementation procedure is acquired
Memory Allocation data and memory point of release memory release data before, further includes:
Filter invalid Memory Allocation point.
In the Memory Allocation point for determining target dynamic language system, filter operation can be carried out to the Memory Allocation point,
Invalid Memory Allocation point is filtered out, retains effective Memory Allocation point, can really react the distribution feelings of memory in this way
Condition, and avoid the execution to invalid distributing point and increase system operational process, greatly improve working efficiency.
Step 204: according to the preset time interval according to the Memory Allocation data and with the Memory Allocation data
Corresponding memory release data determine retained data.
In this specification one or more embodiment, the preset time interval can be generally configured to 1 with dynamic configuration
It~5 minutes or so, can be set according to actual needs in practical application, the application is not limited in any way this.
In this specification one or more embodiment, according to the Memory Allocation data and with the Memory Allocation data
Corresponding memory release data can calculate retained data.
Such as the Memory Allocation data are 5M, memory release data corresponding with the Memory Allocation data are 3M,
Then the calculated retention of data is discharged according to the Memory Allocation data and memory corresponding with the Memory Allocation data
Data are 2M.
With the execution of target dynamic language system, according to the preset time interval periodically according to the Memory Allocation
Data and memory corresponding with Memory Allocation data release data determine retained data, can move not influencing target
In the case where the execution speed of state language system, retained data is calculated, the calculating frequency of retained data is reduced, improves work
Make efficiency.
Step 206: showing that the Memory Allocation data, the memory discharge data and/or described stay by presets
Deposit data.
In this specification one or more embodiment, the presets include but is not limited to line chart, column diagram or table
Lattice etc..
If the presets are line chart, show that the Memory Allocation data, the memory discharge by presets
Data and the retained data may refer to Fig. 3, wherein holding for target dynamic language system can also be shown in the line chart
Row time and frame ID etc., storage allocation shown in figure are the Memory Allocation data, and releasing memory is the memory
Data are discharged, retaining memory is the retained data.
If the presets are column diagram, the Memory Allocation data and the retained data are shown by presets
It may refer to Fig. 4, wherein storage allocation described in figure is the Memory Allocation data, and the retention memory is described
Retained data.
If the presets are table, show that the Memory Allocation data, the memory discharge number by presets
It may refer to Fig. 5 according to the retained data, the result of monitoring analysis can be showed in detail by table, wherein distribute in figure
Memory is the Memory Allocation data, and releasing memory is the memory release data, and retaining memory is the retention number
According to.
Step 208: if the retained data shown is less than preset threshold, redistributing the interior of the Memory Allocation point
It deposits.
In this specification one or more embodiment, the preset threshold can be configured according to actual needs, such as
0.5M, 1M or 1.5M etc..
If the retained data shown is repeatedly less than preset threshold, need to redistribute the interior of the Memory Allocation point
It deposits, avoids the target dynamic language system run-time memory insufficient, cause system crash, while can also show interface mistake
Filter the Memory Allocation point.
In this specification one or more embodiment, using the data processing method in target dynamic language system
It deposits occupancy situation to be analyzed and processed, first starting monitoring process, the memory in target dynamic language system operational process is accounted for
It is continuously monitored with situation (including Memory Allocation, memory release), the method can search target dynamic language system automatically
The monitoring point for needing to monitor in operational process, typical monitoring point include: the entrance and exit of dynamic language function, dynamic language
The entrance and exit of code segment, the entrance and exit that dynamic language is interacted with host language, in addition, the method is in addition to continuously supervising
Except control mechanism, it is additionally provided with key monitoring mechanism, such as in continuous monitored results, any memory happens abnormal or goes out
The point of existing peak value will be all identified, and can the memory abnormal be analyzed and be shown in real time, finally be carried out according to displaying
Processing.
Referring to Fig. 6, this specification one or more embodiment provides a kind of data processing method, including step 602 to
Step 610.
Step 602: the Memory Allocation data of Memory Allocation point in acquisition target dynamic language system implementation procedure and interior
Deposit the memory release data of point of release.
Step 604: according to execution and call relation by the Memory Allocation data and the memory in a manner of stratification
Release data are combined, and form the result data of the call-tree form of structuring, and store to the result data.
In this specification one or more embodiment, by the Memory Allocation data and memory release data according to holding
Capable and call relation is combined in a manner of stratification, then obtains the result data of the tree-shaped structure that has levels.
Step 606: retained data being determined according to the result data according to the preset time interval.
In this specification one or more embodiment, for the preset time interval setting referring to above-mentioned implementation
Example, details are not described herein.It according to the preset time interval can be more using the result data of the above-mentioned tree-shaped structure that has levels
Data are easily discharged according to the corresponding memory of the Memory Allocation data traceability, with according to the Memory Allocation data and with
Corresponding retained data is calculated in the corresponding memory release data of the Memory Allocation data.
And can by using the above-mentioned tree-shaped structure that has levels result data and retained data Real Time Compression store to
It stores in equipment.
Step 608: showing that the Memory Allocation data, the memory discharge data and/or described stay by presets
Deposit data.
Step 610: if the retained data shown is less than preset threshold, redistributing the interior of the Memory Allocation point
It deposits.
In this specification one or more embodiment, using the data processing method in target dynamic language system
It deposits occupancy situation to be analyzed and processed, configuration surroundings and acquires the Memory Allocation in target dynamic language system implementation procedure first
The Memory Allocation data of point and the memory of memory point of release discharge data, then periodically acquire one on preset time point
Memory Allocation data and memory in section period discharge data, and will be described in a manner of stratification with call relation according to executing
Memory Allocation data and memory release data are combined, and the result data of the call-tree form of structuring are formed, to institute
Result data is stated to be stored;In actual use, target dynamic language system obtains entire call-tree when being finished, and can be with
Execution data associated with father node and neighbors are generated for each node on the tree, and then are obtained based on this operation
The complete hierarchical data of call-tree;Number is retained at this point it is possible to determine according to the preset time interval according to the result data
According to showing that the Memory Allocation data, the memory discharge data and/or the retained data and judgement by presets
If the retained data shown is less than preset threshold, the memory of the Memory Allocation point is redistributed.
In this specification one or more embodiment, the data processing method is not related to spy relevant to external environment
It is fixed to rely on, it is realized merely with the mechanism that the dynamic language system itself provides, therefore can run on the dynamic language system institute may
The environment of operation, such as server, embedded, pure memory is explained, explains (JIT) immediately, under the environment such as host language interaction.
In this specification one or more embodiment, the data processing method can pass through line chart, column diagram or table
The form of lattice shows the retained data of target dynamic language system, can adjust Memory Allocation in real time according to the retained data showed
The memory of point avoids collapse or wave that system is caused because memory headroom is too small or excessive so that the operation of system is more smooth
Take.
Referring to Fig. 7, this specification one or more embodiment provides a kind of data processing equipment, comprising:
Acquisition module 702 is configured as the memory of the Memory Allocation point in acquisition target dynamic language system implementation procedure
The memory for distributing data and memory point of release discharges data;
Determining module 704, be configured as according to the preset time interval according to the Memory Allocation data and with it is described
The corresponding memory release data of Memory Allocation data determine retained data;
Display module 706 is configured as showing the Memory Allocation data, memory release data by presets
And/or the retained data;
Memory allocating module 708 redistributes institute if being configured as the retained data shown is less than preset threshold
State the memory of Memory Allocation point.
Optionally, described device further include:
Memory module, be configured as according to execute and call relation in a manner of stratification by the Memory Allocation data and
Memory release data are combined, and form the result data of the call-tree form of structuring, and to the result data into
Row storage
In this specification one or more embodiment, using the data processing equipment in target dynamic language system
It deposits occupancy situation to be analyzed and processed, first starting monitoring process, the memory in target dynamic language system operational process is accounted for
It with situation, is continuously monitored, the EMS memory occupation situation includes Memory Allocation, memory release.The method can search automatically
The monitoring point for needing to monitor in target dynamic language system operational process, typical monitoring point include: entering for dynamic language function
Mouth and outlet, the entrance and exit of dynamic language code section, the entrance and exit that dynamic language is interacted with host language, in addition,
The method is additionally provided with key monitoring mechanism other than continuous monitoring mechanism, such as in continuous monitored results, any interior
Depositing the point for happening exception or peak value occur will all be identified, and can the memory abnormal be analyzed and be opened up in real time
Show, is finally handled according to displaying.
This specification one or more embodiment also discloses a kind of calculating equipment, including memory, processor and storage
On a memory and the computer instruction that can execute on a processor, the processor realize the instruction quilt when executing described instruction
The step of realizing data processing method as described above in processor implementation procedure.
This specification one or more embodiment also discloses a kind of computer readable storage medium, is stored with computer
The step of instruction, which realizes data processing method as described above during being executed by processor.
A kind of exemplary scheme of above-mentioned computer readable storage medium for the present embodiment.It should be noted that this is deposited
The technical solution of storage media and the technical solution of above-mentioned data processing belong to same design, and the technical solution of storage medium is not detailed
The detail content carefully described may refer to the description of the technical solution of above-mentioned data processing.
It is above-mentioned that this specification specific embodiment is described.Other embodiments are in the scope of the appended claims
It is interior.In some cases, the movement recorded in detail in the claims or step can be come according to the sequence being different from embodiment
It executes and desired result still may be implemented.In addition, process depicted in the drawing not necessarily require show it is specific suitable
Sequence or consecutive order are just able to achieve desired result.In some embodiments, multitasking and parallel processing be also can
With or may be advantageous.
The computer instruction includes computer program code, the computer program code can for source code form,
Object identification code form, executable file or certain intermediate forms etc..The computer-readable medium may include: that can carry institute
State any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disk, CD, the computer storage of computer program code
Device, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory),
Electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that the computer-readable medium include it is interior
Increase and decrease appropriate can be carried out according to the requirement made laws in jurisdiction with patent practice by holding, such as in certain jurisdictions of courts
Area does not include electric carrier signal and telecommunication signal according to legislation and patent practice, computer-readable medium.
It should be noted that for the various method embodiments described above, describing for simplicity, therefore, it is stated as a series of
Combination of actions, but those skilled in the art should understand that, the application is not limited by the described action sequence because
According to the application, certain steps can use other sequences or carry out simultaneously.Secondly, those skilled in the art should also know
It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules might not all be this Shen
It please be necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, it may refer to the associated description of other embodiments.
The application preferred embodiment disclosed above is only intended to help to illustrate the application.There is no detailed for alternative embodiment
All details are described, are not limited the invention to the specific embodiments described.Obviously, according to the content of this specification,
It can make many modifications and variations.These embodiments are chosen and specifically described to this specification, is in order to preferably explain the application
Principle and practical application, so that skilled artisan be enable to better understand and utilize the application.The application is only
It is limited by claims and its full scope and equivalent.