Summary of the invention
According to one aspect of the disclosure, the following technical schemes are provided:
A kind of file monitor method, comprising: read first list, obtain first identifier symbol, include in the first list
The first identifier symbol of included first kind subfile in the file;Second list is read, is obtained according to first identifier symbol
Take second identifier symbol of the first kind subfile in second list;Obtain the category of the data of the second identifier symbol index
Property;The first result is generated according to the attribute of the data;If the first result meets first condition, monitoring and early warning is triggered.
Further, include at least one module file in the file, include in the module file at least one the
A kind of subfile;The corresponding relationship of the module file Yu the first kind subfile is saved in the first list.
Further, the reading second list obtains the first kind subfile the according to first identifier symbol
Second identifier symbol in two lists includes: reading second list, and first is searched in second list according to first identifier symbol
The second identifier of class subfile accords with, wherein including the corresponding relationship of first identifier symbol and second identifier symbol in the second list.
Further, the attribute of the data for obtaining the second identifier symbol index includes: in the second list
It searches the second identifier and accords with corresponding data;The size of the data is obtained according to the size attribute value of the data;Wherein,
The data are the data in first kind subfile, include pair of second identifier symbol and the data in the second list
It should be related to.
It is further, described that first result is generated according to the attribute of the data, comprising:
It is added the size of all data in the first kind subfile to obtain first result.
Further, if first result meets first condition, monitoring and early warning is triggered, comprising: if described first
As a result it is greater than first threshold, triggers monitoring and early warning.
Further, the attribute of the data for obtaining the second identifier symbol index, comprising: in the second list
It searches the second identifier and accords with corresponding data;Its data type, the data class are obtained according to the offset address of the data
Type includes at least the first data type and the second data type;Obtain the big of the data of the first data type in the data
It is small;Wherein, the data are the data in first kind subfile, are accorded in the second list including the second identifier and described
The corresponding relationship of data.
Further, described that first result is generated according to the attribute of the data, comprising: by all first data class
The size of the data of type is added to obtain the first result.
Further, if first result meets first condition, monitoring and early warning is triggered, comprising: if described first
As a result it is greater than second threshold, triggers monitoring and early warning.
Further, the attribute of the data for obtaining the second identifier symbol index, comprising: in the second list
It searches the second identifier and accords with corresponding data;Obtain the title of the data;Wherein, the data are in first kind subfile
Data, include the corresponding relationship of second identifier symbol and the data in the second list.
Further, described that first result is generated according to the attribute of the data, comprising: to compare at least two described first
The title of data in class subfile simultaneously exports duplicate title in the title.
Further, if first result meets first condition, monitoring and early warning is triggered, comprising: if the repetition
Title quantity be greater than 0, trigger monitoring and early warning.
Further, the attribute of the data for obtaining the second identifier symbol index, comprising: in the second list
It searches the second identifier and accords with corresponding data;The size of the data is obtained according to the size attribute value of the data;According to
The offset address of the data obtains data segment belonging to the data;Wherein, the data are the number in first kind subfile
According to, in the second list include the second identifier symbol and the data corresponding relationship.
Further, described that first result is generated according to the attribute of the data, comprising: the number of the first data segment will be belonged to
According to size be added generate first as a result, wherein first data segment be the data segment in a data segment.
Further, if first result meets first condition, monitoring and early warning is triggered, comprising: if described first
As a result it is greater than third threshold value, triggers monitoring and early warning.
Further, the method also includes: the data are searched in institute according to the offset address of first data segment
State the first offset address in first kind subfile;The data in first data segment are positioned according to first offset address
Position in the source file of first kind subfile.
According to another aspect of the disclosure, also the following technical schemes are provided:
A kind of document monitoring device, comprising:
First read module obtains first identifier symbol, includes the text in the first list for reading first list
The first identifier symbol of included first kind subfile in part;
Identifier obtains module, for reading second list, obtains the first kind Ziwen according to first identifier symbol
Second identifier symbol of the part in second list;
Attribute obtains module, the attribute of the data for obtaining the second identifier symbol index;
First result-generation module, for generating the first result according to the attribute of the data;
Early warning trigger module triggers monitoring and early warning if meeting first condition for the first result.
Further, include at least one module file in the file, include in the module file at least one the
A kind of subfile;The corresponding relationship of the module file Yu the first kind subfile is saved in the first list.
Further, the identifier obtains module further include:
Identifier acquisition submodule is searched in second list for reading second list according to first identifier symbol
The second identifier of first kind subfile accords with, wherein including that first identifier symbol and the corresponding of second identifier symbol are closed in the second list
System.
Further, the attribute obtains module, further includes:
First searching module accords with corresponding data for searching the second identifier in the second list;
First acquiring size module, the size of the data is obtained for the size attribute value according to the data;
Wherein, the data are the data in first kind subfile, include that the second identifier accords in the second list
With the corresponding relationship of the data.
Further, first result-generation module, further includes:
First summation module, for being added the size of the data in the first kind subfile to obtain described first
As a result.
Further, the early warning trigger module, further includes:
First trigger module triggers monitoring and early warning if being greater than first threshold for first result.
Further, the attribute obtains module, further includes:
Second searching module accords with corresponding data for searching the second identifier in the second list;
Data type obtains module, for obtaining its data type, the data class according to the offset address of the data
Type includes at least the first data type and the second data type;
Second acquiring size module, the size of the data for obtaining the first data type in the data;
Wherein, the data are the data in first kind subfile, include that the second identifier accords in the second list
With the corresponding relationship of the data.
Further, first result-generation module, further includes:
Second summation module, for being added the size of the data of all first data types to obtain the first result.
Further, the early warning trigger module, further includes:
Second trigger module triggers monitoring and early warning if being greater than second threshold for first result.
Further, the attribute obtains module, further includes:
Third searching module accords with corresponding data for searching the second identifier in the second list;
Name acquiring module, for obtaining the title of the data;
Wherein, the data are the data in first kind subfile, include that the second identifier accords in the second list
With the corresponding relationship of the data.
Further, first result-generation module, further includes:
Comparison module, for comparing the title of the data at least two first kind subfiles and exporting the title
In duplicate title.
Further, the early warning trigger module, further includes:
Third trigger module triggers monitoring and early warning if the quantity for the duplicate title is greater than 0.
Further, the attribute obtains module, further includes:
Third searching module accords with corresponding data for searching the second identifier in the second list;
Third acquiring size module, the size of the data is obtained for the size attribute value according to the data;
Data segment obtains module, for obtaining the data segment where the data according to the offset address of the data;
Wherein, the data are the data in first kind subfile, include that the second identifier accords in the second list
With the corresponding relationship of the data.
Further, first result-generation module, further includes:
Third summation module is added for will belong to the size of data of the first data segment and generates first as a result, wherein institute
Stating the first data segment is a data segment in the data segment.
Further, the early warning trigger module, further includes:
4th trigger module triggers monitoring and early warning if being greater than third threshold value for first result.
Further, described device can also include:
First offset address searching module, for searching the data in institute according to the offset address of first data segment
State the first offset address in first kind subfile;
Locating module, for positioning the data in first data segment according to first offset address in first kind
Position in the source file of file.
According to the another aspect of the disclosure, and also the following technical schemes are provided:
A kind of electronic equipment, comprising: memory, for storing non-transitory computer-readable instruction;And processor, it uses
In running the computer-readable instruction, so that the processor realizes step described in any of the above-described file monitor method when executing
Suddenly.
According to the another aspect of the disclosure, and also the following technical schemes are provided:
A kind of computer readable storage medium, for storing non-transitory computer-readable instruction, when the non-transitory
When computer-readable instruction is executed by computer, so that the computer executes step described in any of the above-described file monitor method
Suddenly.
The disclosure discloses a kind of file monitor method, apparatus and electronic equipment.Wherein, the file monitor method includes:
First list is read, first identifier symbol is obtained, includes first kind subfile included in the file in the first list
First identifier symbol;Second list is read, the first kind subfile is obtained in second list according to first identifier symbol
Second identifier symbol;Obtain the attribute of the data of the second identifier symbol index;The first knot is generated according to the attribute of the data
Fruit;If the first result meets first condition, monitoring and early warning is triggered.The file monitor method of the embodiment of the present disclosure, passes through file
In subfile and subfile in data attribute generate judgment basis.According to judgment basis judge file volume or
Whether the local volume of file exceeds standard and triggers early warning, solves that can not to position file size in the prior art exceeded
Position the technical issues of.
Above description is only the general introduction of disclosed technique scheme, in order to better understand the technological means of the disclosure, and
It can be implemented in accordance with the contents of the specification, and to allow the above and other objects, features and advantages of the disclosure can be brighter
Show understandable, it is special below to lift preferred embodiment, and cooperate attached drawing, detailed description are as follows.
Specific embodiment
Illustrate embodiment of the present disclosure below by way of specific specific example, those skilled in the art can be by this specification
Disclosed content understands other advantages and effect of the disclosure easily.Obviously, described embodiment is only the disclosure
A part of the embodiment, instead of all the embodiments.The disclosure can also be subject to reality by way of a different and different embodiment
It applies or applies, the various details in this specification can also be based on different viewpoints and application, in the spirit without departing from the disclosure
Lower carry out various modifications or alterations.It should be noted that in the absence of conflict, the feature in following embodiment and embodiment can
To be combined with each other.Based on the embodiment in the disclosure, those of ordinary skill in the art are without creative efforts
Every other embodiment obtained belongs to the range of disclosure protection.
It should be noted that the various aspects of embodiment within the scope of the appended claims are described below.Ying Xian
And be clear to, aspect described herein can be embodied in extensive diversified forms, and any specific structure described herein
And/or function is only illustrative.Based on the disclosure, it will be understood by one of ordinary skill in the art that one described herein
Aspect can be independently implemented with any other aspect, and can combine the two or both in these aspects or more in various ways.
For example, carry out facilities and equipments in terms of any number set forth herein can be used and/or practice method.In addition, can make
With other than one or more of aspect set forth herein other structures and/or it is functional implement this equipment and/or
Practice the method.
It should also be noted that, diagram provided in following embodiment only illustrates the basic structure of the disclosure in a schematic way
Think, component count, shape and the size when only display is with component related in the disclosure rather than according to actual implementation in schema are drawn
System, when actual implementation kenel, quantity and the ratio of each component can arbitrarily change for one kind, and its assembly layout kenel can also
It can be increasingly complex.
In addition, in the following description, specific details are provided for a thorough understanding of the examples.However, fields
The skilled person will understand that the aspect can be practiced without these specific details.
The embodiment of the present disclosure provides a kind of file monitor method.The file monitor method provided in this embodiment can be by
One computing device executes, and the computing device can be implemented as software, or be embodied as the combination of software and hardware, the meter
It calculates device and can integrate and be arranged in server, terminal device etc..As shown in Figure 1, the file monitor method mainly includes such as
Lower step S101 to step S105.Wherein:
Step S101: reading first list, obtains the first identifier, includes being wrapped in the file in the first list
The first identifier of the first kind subfile included accords with;
In the disclosure, include at least one module file in the file, include at least one in the module file
First kind subfile.The file can be executable file, and the executable file includes multiple functional module files, each
Functional module file may include at least one file destination again.Typically, the executable file is special efficacy program, the spy
Imitating includes multiple FX Modules, such as beauty module, filter module, deformation module in program, includes in each functional module
One or more for realizing the function file destination.
The first list, for saving the identifier and module file of module file included in the file
The identifier of included first kind subfile.It typically, include the title of module file in the first list, and each
The title of included file destination in module file.As shown in table 1 below, it is an example of first list:
Table 1
It include identifier module 1, module 2 and the module 3 of module file included in file, mesh in the first list
Mark ID:1-1,1-2,2-1,2-2,2-3,2-4,3-1 of file, title file destination 1, the file destination 2, target of file destination
File 3, file destination 4, file destination 5, file destination 6, file destination 7.First mark of the first kind subfile in the step
Will symbol is the title of file destination.The first list is read in this step, obtains the title of the file destination.
Step S102: reading second list, obtains the first kind subfile in secondary series according to first identifier symbol
Second identifier symbol in table;
In the disclosure, second list is the list comprising multiple sublists, wherein in the first sublist of second list
In, it include the first identifier symbol of first kind subfile and the corresponding relationship of second identifier symbol.Wherein first identifier is
The title of file destination, the second identifier symbol is number of the file destination in second list.It as shown in table 2, is the
One example of the first sublist of two lists:
File destination number |
File destination title |
1 |
File destination 1 |
2 |
File destination 2 |
3 |
File destination 3 |
Table 2
As shown in table 2, the number 1,2,3 of file destination is the second identifier symbol of file destination.
In step s 102, second of the first kind subfile in second list is obtained according to first identifier symbol
Identifier includes the second identifier symbol for searching first kind subfile in second list according to first identifier symbol.In table 2
It is shown, its number in second list can be searched by the title of file destination.
Step S103: the attribute of the data of the second identifier symbol index is obtained;
In this step, the data are data included in first kind subfile.Typically, first kind subfile is
File destination, then the data are data included in the file destination, and the data can be in executable program
Class, method, constant, character string etc., it is numerous to list herein.
It further include the second sublist in the second list.Include in second sublist second identifier symbol with it is described
Data attribute corresponding relationship, the attribute typically can be storage offset address, the number of the title of data, data
According to size etc..As shown in table 3 it is an example of second sublist:
Offset address |
Size |
Said target file |
The title of data |
0x00000001 |
0x0000004E |
1 |
Data 1 |
0x0000004F |
0x00000300 |
1 |
Data 2 |
0x0000034F |
0x00000617 |
1 |
Data 3 |
0x00000966 |
0x00000400 |
2 |
Data 4 |
Table 3
As shown in table 3, the first row " offset address " in second sublist includes the storage offset address of data,
It indicates the offset address of the data hereof, and in the illustration being described, the offset address is a hexadecimal number;The
The secondary series " size " of two sublist indicates the size of data, and in the illustration being described, the size is a hexadecimal number;
The third column " said target file " of second sublist indicate which file destination is the data belong to, in this example, " institute
The value of category file destination " is the second identifier symbol of the first subfile in first list;4th column " data of the second sublist
Title " value be the title of data hereof.It in this example, can be with by the value of tertial " said target file "
The attribute for getting the data that second identifier symbol indexes, such as passes through the value 1 of " said target file ", can index it includes
Data 1, data 2 and data 3, wherein the initial address of data 1 be 0x00000001, size 0x0000004E, data 2
Initial address be 0x0000004F, size 0x00000300, the initial address of data 3 is 0x0000034F, size is
0x00000617。
As shown in Fig. 2, the step S103 may include:
Step S201: the second identifier is searched in the second list and accords with corresponding data;
Step S202: the size of the data is obtained according to the size attribute value of the data;
Wherein, the data are the data in first kind subfile, include that the second identifier accords in the second list
With the corresponding relationship of the data.
Ginseng is shown in Table 3, in the second sublist of second list search said target file value be 1 data it is big
Row small, that the value by the column of " said target file " is 1, can find that corresponding data are data 1, size is
0x0000004E, data 2, size 0x00000300, data 3, size 0x00000617.
Step S104: the first result is generated according to the attribute of the data;
After getting the attribute of data, handled to obtain first as a result, at it to the attribute of the data
Determine the volume of file with the presence or absence of abnormal in step afterwards.
As shown in figure 3, in one embodiment, it is described that first result is generated according to the attribute of the data, comprising:
Step S301: the size of the data in the first kind subfile is added to obtain first result.It should
Step is implemented in after step S202, the size of the corresponding each data of the second identifier is obtained in step S202, in the step
It is middle to be added each size of data to obtain first result.Specifically, as described in Table 3, when obtain data 1, size is
0x0000004E, data 2, size 0x00000300, data 3, size 0x00000617, available first result are as follows:
0x0000004E+0x00000300+0x00000617=0x00000965=2.35Kb.
Step S105: if the first result meets first condition, monitoring and early warning is triggered.
In the step, whether met some requirements according to the first result, to determine whether to trigger monitoring and early warning.It is logical
For often, if the first result meets first condition, monitoring and early warning is triggered.
In one embodiment, if first result meets first condition, monitoring and early warning is triggered, comprising: if institute
The first result is stated greater than first threshold, triggers monitoring and early warning.
As step S301 example in, obtain the sum of all sizes of data in file destination 1 be 2.35Kb, if
First threshold is 2Kb, then triggers monitoring and early warning, and the title of file destination 1 can be directly displayed by display device, is prompted
The volume of user file is abnormal, and abnormal file is file destination 1.It is understood that yes, it, can by the title of file destination
To calculate the size of all file destinations in module file and then calculate the size of module file, module file can be directed to
Size carry out early warning.It is possible thereby to which the volume to file carries out varigrained early warning.
In some cases, the overall volume of possible file is not exceeded, module file and module file in file
First kind subfile size it is not exceeded, but it is unsatisfactory for other some conditions, such as certain form of data
There is special requirement, at this time, it may be necessary to monitor the volume of file in other dimensions.Optionally, as shown in figure 4, the step
S103 can also include:
Step S401: the second identifier is searched in the second list and accords with corresponding data;
Step S402: obtaining its data type according to the offset address of the data, and the data type includes at least the
One data type and the second data type;
Step S403: the size of the data of the first data type in the data is obtained;
Wherein, the data are the data in first kind subfile, include that the second identifier accords in the second list
With the corresponding relationship of the data.
In step S401, first kind subfile can be inquired according to the second sublist of second list as shown in table 3
Second identifier accord with corresponding all data;Wherein the second identifier of first kind subfile accords in table 3 as " said target text
The value of part " column.
In step S402, its data type is obtained according to the offset address of the data, the data type is at least wrapped
Include the first data type and the second data type.The preferred offset address for needing to obtain data in the step, the offset
Location can arrange according to " offset address " in the second sublist and obtain, later can by the third sublist of second list come
Address where inquiring the offset address is the address of which data type.It as shown in table 4, is a reality of third word list
Example:
Table 4
In step S402, by getting the offset address of data in the second sublist, such as the offset address of data 1
0x00000001, the offset address 0x0000004F of data 2, the offset address 0x0000034F of data 3, later in second list
Third sublist in search the offset address of data 1, data 2 and data 3, the wherein offset address 0x00000001 of data 1,
It falls between address 0x00000001 and 0x0000034F, can determine that data 1 are first kind data, the offset of data 2
Location 0x0000004F is also fallen between address 0x00000001 and 0x0000034F, and can determine data 2 also is first kind number
According to the offset address 0x0000034F of data 3 falls within address 0x0000034F and 0x00000B4F (0x0000034F+ data segment
Size 0x00000800), can determine data 3 also for first kind data.Thus, it is possible to determine in file destination 1
The data of all first kind.
In step S403, pass through the big of the data of the available all first kind of the second sublist of second list
It is small.It has determined that data 1, data 2 and data 3 are the data of the first kind in step S402, then searches data in table 3
1, the size of data 2 and data 3.
After step S403, step S104 is executed, in this embodiment, the step S104 includes: will be all described
The size of the data of first data type is added to obtain the first result.
In the step, data 1, data 2 are added to obtain the first result with the size of data 3.
Step S105 is executed later, and in this embodiment, the step S105 includes:
If first result is greater than second threshold, monitoring and early warning is triggered.
In this embodiment, when the volume of the first kind data in first kind subfile is more than threshold value, early warning is triggered
And show that first kind data volume is exceeded, it needs to optimize.It is understood that herein only use first kind subfile as
Example, in fact, can be obtained if the size of the first kind data of all first kind subfiles in module file is added
The size of first kind data in all modules is added available by the size of the first kind data into module file
The size of the first kind data of file, it is possible thereby to control the trigger condition of volume early warning, user by different granularities
It can according to need setting and need the granularity of early warning to control the fineness of volume monitoring.
It may include identical data in different first kind subfiles for some situations, it at this time can be right
File is optimized to reduce file size.As shown in figure 5, in one embodiment, the step S103 obtains described second
The attribute of the data of identifier index can also include:
Step S501: the second identifier is searched in the second list and accords with corresponding data;
Step S502: the title of the data is obtained;
Wherein, the data are the data in first kind subfile, include that the second identifier accords in the second list
With the corresponding relationship of the data.
In step S501, first kind subfile can be inquired according to the second sublist of second list as shown in table 3
Second identifier accord with corresponding all data;Wherein the second identifier of first kind subfile accords in table 3 as " said target text
The value of part " column.
In step S502, the corresponding all data of the second identifier can be inquired from the second sublist of second list
Data title.As shown in table 3, data corresponding to file destination 1 include data 1, data 2 and data 3.
After step S502, execute step S104 includes: in the step S104 in the described embodiment
Compare the title of the data at least two first kind subfiles and exports duplicate title in the title.
In the step, compare the title for belonging to the data of two file destinations, and exports the title of duplicate data.
As included data 1, data 2 and data 3 in file destination 1, if in file destination 2 also including data 3, output data 3.
After above-mentioned steps S104, step S105 is executed, in the described embodiment, the step S105 includes:
If the quantity of the duplicate title is greater than 0, monitoring and early warning is triggered.
In the step S105 of the embodiment, judge whether the quantity of the duplicate title is greater than 0, if it is greater than 0
Trigger monitoring and early warning.As long as in other words there is duplicate data name, monitoring and early warning is triggered, and export the name of duplicate data
Claim.By the step in the embodiment, the duplicate data in two file destinations can be exported, thus remind user to repetition
Data optimize.
In yet some other cases, the size from early warning file size in the dimension of the data segment of data is needed, at this point, such as
Shown in Fig. 6, it may include steps of in the step S103:
Step S601: the second identifier is searched in the second list and accords with corresponding data;
Step S602: the size of the data is obtained according to the size attribute value of the data;
Step S603: the data segment where the data is obtained according to the offset address of the data;
Wherein, the data are the data in first kind subfile, include that the second identifier accords in the second list
With the corresponding relationship of the data.
In step s 601, first kind subfile can be inquired according to the second sublist of second list as shown in table 3
Second identifier accord with corresponding all data;Wherein the second identifier of first kind subfile accords in table 3 as " said target text
The value of part " column.
It is identical such as the step of in other embodiments in step S602, it can be got in " size " column in table 3
Acquired second identifier accords with the size of corresponding all data in step S601.
In step S603, the data segment where data can be obtained by the offset address of the data, referring to 3 He of table
Shown in table 4, by taking data 1 as an example, the offset address of data 1 is 0x00000001, then can be in table 4 by the offset address
It inquires the address to fall between address 0x00000001 and 0x0000034F, it is possible thereby to determine that data 1 are located at data segment 1.
After step S603, step S104 is executed, in the described embodiment, the step S104 may include:
The size for belonging to the data of the first data segment is added and generates first as a result, wherein first data segment is described
A data segment in data segment.
The size that data have been obtained in step S602 will belong to the same data segment in the step S104
Size of data is added to obtain the size of the data segment.Such as in the example above, the big of all data in data segment 1 will be located at
Small addition obtains the size of the data segment 1 of file destination 1.
After step S104, the step S105 is executed, in this embodiment, the step S105 may include:
If first result is greater than third threshold value, monitoring and early warning is triggered.
In this step, if the size of the data segment is greater than third threshold value, monitoring and early warning is triggered.In the embodiment
In, the size of data segment in module file can be counted, and be compared with scheduled data segment size, when some data segment
When greater than its threshold value, triggers early warning and export the exceeded data segment of volume.It is understood that each data segment can be set not
Same threshold value, if different threshold values can be set from regular amount stage in string segments, the result exported in this way can not be unique number
According to section, any data segment is more than the threshold value of their own, can trigger early warning.
In this embodiment, can also further determine that position of the data in the source file of the file, with into
One step positions source file location corresponding to the exceeded data segment of volume, the position of direct orientation problem.As shown in fig. 7, at this
In embodiment, after step S105, further includes:
Step S701: the data are searched in the first kind subfile according to the offset address of first data segment
The first offset address;
Step S702: the data in first data segment are positioned in first kind subfile according to first offset address
Source file in position.
Wherein, the data that the first data segment offset address in the step S701 can be in first data segment exist
The first offset address in the first kind subfile, or the first data segment offset address and the data can be passed through
To with relationship the number is obtained by the offset address of the first data segment in the first offset address of the first kind subfile
According to the first offset address in the first kind subfile, the corresponding relationship can be corresponding table etc..
In step S702, the data in first data segment are positioned in first kind according to first offset address
Position in the source file of file.Typically, file destination is generated by the source file of file destination, is existed by the data of data segment
Offset address in file destination can navigate to its position in source file, obtained and optimizing to source file
To the effect optimized to file destination.
The disclosure discloses a kind of file monitor method, apparatus and electronic equipment.Wherein, the file monitor method includes:
First list is read, first identifier symbol is obtained, includes first kind subfile included in the file in the first list
First identifier symbol;Second list is read, the first kind subfile is obtained in second list according to first identifier symbol
Second identifier symbol;Obtain the attribute of the data of the second identifier symbol index;The first knot is generated according to the attribute of the data
Fruit;If the first result meets first condition, monitoring and early warning is triggered.The file monitor method of the embodiment of the present disclosure, passes through file
In subfile and subfile in data attribute generate judgment basis.According to judgment basis judge file volume or
Whether the local volume of file exceeds standard and triggers early warning, solves that can not to position file size in the prior art exceeded
Position the technical issues of.
Hereinbefore, although describing each step in above method embodiment, this field skill according to above-mentioned sequence
Art personnel it should be clear that the step in the embodiment of the present disclosure not necessarily executes in the order described above, can also with inverted order, it is parallel,
Other sequences such as intersection execute, moreover, those skilled in the art can also add other steps on the basis of above-mentioned steps
Suddenly, the mode of these obvious variants or equivalent replacement should also be included within the protection scope of the disclosure, and details are not described herein.
It is below embodiment of the present disclosure, embodiment of the present disclosure can be used for executing embodiments of the present disclosure realization
The step of, for ease of description, part relevant to the embodiment of the present disclosure is illustrated only, it is disclosed by specific technical details, it asks
Referring to embodiments of the present disclosure.
The embodiment of the present disclosure provides a kind of processing unit of image.It is real that described device can execute above-mentioned file monitor method
The step of applying described in example.As shown in figure 8, described device 800 specifically includes that the first read module 801, identifier obtain module
802, attribute obtains module 803, the first result-generation module 804 and early warning trigger module 805.Wherein,
First read module 801 obtains first identifier symbol, includes institute in the first list for reading first list
State the first identifier symbol of first kind subfile included in file;
Identifier obtains module 802, for reading second list, obtains the first kind according to first identifier symbol
Second identifier symbol of the file in second list;
Attribute obtains module 803, the attribute of the data for obtaining the second identifier symbol index;
First result-generation module 804, for generating the first result according to the attribute of the data;
Early warning trigger module 805 triggers monitoring and early warning if meeting first condition for the first result.
Further, include at least one module file in the file, include in the module file at least one the
A kind of subfile;The corresponding relationship of the module file Yu the first kind subfile is saved in the first list.
Further, the identifier obtains module 802 further include:
Identifier acquisition submodule is searched in second list for reading second list according to first identifier symbol
The second identifier of first kind subfile accords with, wherein including that first identifier symbol and the corresponding of second identifier symbol are closed in the second list
System.
Further, the attribute obtains module 803, further includes:
First searching module accords with corresponding data for searching the second identifier in the second list;
First acquiring size module, the size of the data is obtained for the size attribute value according to the data;
Wherein, the data are the data in first kind subfile, include that the second identifier accords in the second list
With the corresponding relationship of the data.
Further, first result-generation module 804, further includes:
First summation module, for being added the size of the data in the first kind subfile to obtain described first
As a result.
Further, the early warning trigger module 805, further includes:
First trigger module triggers monitoring and early warning if being greater than first threshold for first result.
Further, the attribute obtains module 803, further includes:
Second searching module accords with corresponding data for searching the second identifier in the second list;
Data type obtains module, for obtaining its data type, the data class according to the offset address of the data
Type includes at least the first data type and the second data type;
Second acquiring size module, the size of the data for obtaining the first data type in the data;
Wherein, the data are the data in first kind subfile, include that the second identifier accords in the second list
With the corresponding relationship of the data.
Further, first result-generation module 804, further includes:
Second summation module, for being added the size of the data of all first data types to obtain the first result.
Further, the early warning trigger module 805, further includes:
Second trigger module triggers monitoring and early warning if being greater than second threshold for first result.
Further, the attribute obtains module 803, further includes:
Third searching module accords with corresponding data for searching the second identifier in the second list;
Name acquiring module, for obtaining the title of the data;
Wherein, the data are the data in first kind subfile, include that the second identifier accords in the second list
With the corresponding relationship of the data.
Further, first result-generation module 804, further includes:
Comparison module, for comparing the title of the data at least two first kind subfiles and exporting the title
In duplicate title.
Further, the early warning trigger module 805, further includes:
Third trigger module triggers monitoring and early warning if the quantity for the duplicate title is greater than 0.
Further, the attribute obtains module 803, further includes:
Third searching module accords with corresponding data for searching the second identifier in the second list;
Third acquiring size module, the size of the data is obtained for the size attribute value according to the data;
Data segment obtains module, for obtaining the data segment where the data according to the offset address of the data;
Wherein, the data are the data in first kind subfile, include that the second identifier accords in the second list
With the corresponding relationship of the data.
Further, first result-generation module 804, further includes:
Third summation module is added for will belong to the size of data of the first data segment and generates first as a result, wherein institute
Stating the first data segment is a data segment in the data segment.
Further, the early warning trigger module 805, further includes:
4th trigger module triggers monitoring and early warning if being greater than third threshold value for first result.
Further, described device 800 can also include:
First offset address searching module, for searching the data in institute according to the offset address of first data segment
State the first offset address in first kind subfile;
Locating module, for positioning the data in first data segment according to first offset address in first kind
Position in the source file of file.
The method that Fig. 8 shown device can execute Fig. 1, Fig. 2, Fig. 3, Fig. 4, Fig. 5 and embodiment illustrated in fig. 6, the present embodiment
The part being not described in detail can refer to the related description to Fig. 1, Fig. 2, Fig. 3, Fig. 4, Fig. 5 and embodiment illustrated in fig. 6.The skill
The implementation procedure and technical effect of art scheme are referring to the description in Fig. 1, Fig. 2, Fig. 3, Fig. 4, Fig. 5 and embodiment illustrated in fig. 6, herein
It repeats no more.
Below with reference to Fig. 9, it illustrates the structural representations for the electronic equipment 900 for being suitable for being used to realize the embodiment of the present disclosure
Figure.Electronic equipment in the embodiment of the present disclosure can include but is not limited to such as mobile phone, laptop, digital broadcasting and connect
Receive device, PDA (personal digital assistant), PAD (tablet computer), PMP (portable media player), car-mounted terminal (such as vehicle
Carry navigation terminal) etc. mobile terminal and such as number TV, desktop computer etc. fixed terminal.Electricity shown in Fig. 9
Sub- equipment is only an example, should not function to the embodiment of the present disclosure and use scope bring any restrictions.
As shown in figure 9, electronic equipment 900 may include processing unit (such as central processing unit, graphics processor etc.)
901, random access can be loaded into according to the program being stored in read-only memory (ROM) 902 or from storage device 908
Program in memory (RAM) 903 and execute various movements appropriate and processing.In RAM 903, it is also stored with electronic equipment
Various programs and data needed for 900 operations.Processing unit 901, ROM 902 and RAM 903 pass through the phase each other of bus 904
Even.Input/output (I/O) interface 905 is also connected to bus 904.
In general, following device can connect to I/O interface 905: including such as touch screen, touch tablet, keyboard, mouse, figure
As the input unit 906 of sensor, microphone, accelerometer, gyroscope etc.;Including such as liquid crystal display (LCD), loudspeaking
The output device 907 of device, vibrator etc.;Storage device 908 including such as tape, hard disk etc.;And communication device 909.It is logical
T unit 909 can permit electronic equipment 900 and wirelessly or non-wirelessly be communicated with other equipment to exchange data.Although Fig. 9 shows
The electronic equipment 900 with various devices is gone out, it should be understood that being not required for implementing or having all dresses shown
It sets.It can alternatively implement or have more or fewer devices.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description
Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium
On computer program, the computer program includes the program code for method shown in execution flow chart.Such
In embodiment, the computer program can be downloaded and installed from network by communication device 909, or from storage device
908 are mounted, or are mounted from ROM 902.When the computer program is executed by processing unit 901, the disclosure is executed
The above-mentioned function of being limited in the method for embodiment.
It should be noted that the above-mentioned computer-readable medium of the disclosure can be computer-readable signal media or meter
Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not
Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter
The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires
Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage
Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device,
Or above-mentioned any appropriate combination.In the disclosure, computer readable storage medium can be it is any include or storage journey
The tangible medium of sequence, described program can be commanded execution system, device or device use or in connection.And
In the disclosure, computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal,
Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited
In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer-readable
Any computer-readable medium other than storage medium, the computer-readable signal media can send, propagate or transmit
For by the use of instruction execution system, device or device or program in connection.It is wrapped on computer-readable medium
The program code contained can transmit with any suitable medium, including but not limited to: electric wire, optical cable, RF (radio frequency) etc., or
Above-mentioned any appropriate combination.
Above-mentioned computer-readable medium can be included in above-mentioned electronic equipment;It is also possible to individualism, and not
It is fitted into the electronic equipment.
Above-mentioned computer-readable medium carries one or more program, when said one or multiple programs are described
When electronic equipment executes, so that the electronic equipment: obtaining original image from image source and show the original on the display apparatus
Beginning image;It acquires the voice in environment and the semanteme of the voice is identified;It is pre- in response to being identified from the voice
Attribute justice, triggers special effect processing, wherein the predetermined semanteme is pre-set, associated with one or more special effect processings
It is semantic;According to the special effect processing of triggering, the original image is handled to be formed and show image special effect.
The calculating of the operation for executing the disclosure can be write with one or more programming languages or combinations thereof
Machine program code, above procedure design language include object oriented program language-such as Java, Smalltalk, C+
+, it further include conventional procedural programming language-such as " C " language or similar programming language.Program code can
Fully to execute, partly execute on the user computer on the user computer, be executed as an independent software package,
Part executes on the remote computer or executes on a remote computer or server completely on the user computer for part.
In situations involving remote computers, remote computer can pass through the network of any kind --- including local area network (LAN)
Or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as utilize Internet service
Provider is connected by internet).
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the disclosure, method and computer journey
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part of one module, program segment or code of table, a part of the module, program segment or code include one or more
Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box
The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical
On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants
It is noted that the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart, Ke Yiyong
The dedicated hardware based system of defined functions or operations is executed to realize, or can be referred to specialized hardware and computer
The combination of order is realized.
Being described in unit involved in the embodiment of the present disclosure can be realized by way of software, can also be by hard
The mode of part is realized.Wherein, the title of unit does not constitute the restriction to the unit itself under certain conditions.
Above description is only the preferred embodiment of the disclosure and the explanation to institute's application technology principle.Those skilled in the art
Member is it should be appreciated that the open scope involved in the disclosure, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic
Scheme, while should also cover in the case where not departing from design disclosed above, it is carried out by above-mentioned technical characteristic or its equivalent feature
Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed in the disclosure
Can technical characteristic replaced mutually and the technical solution that is formed.