CN113138793A - Application resource packaging process monitoring method, device, equipment and medium - Google Patents
Application resource packaging process monitoring method, device, equipment and medium Download PDFInfo
- Publication number
- CN113138793A CN113138793A CN202110467297.2A CN202110467297A CN113138793A CN 113138793 A CN113138793 A CN 113138793A CN 202110467297 A CN202110467297 A CN 202110467297A CN 113138793 A CN113138793 A CN 113138793A
- Authority
- CN
- China
- Prior art keywords
- resource
- import
- duration
- packaging
- application
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 80
- 238000012858 packaging process Methods 0.000 title claims abstract description 57
- 238000012544 monitoring process Methods 0.000 title claims abstract description 37
- 230000008676 import Effects 0.000 claims abstract description 213
- 238000004806 packaging method and process Methods 0.000 claims abstract description 58
- 230000008569 process Effects 0.000 claims description 38
- 238000012856 packing Methods 0.000 claims description 9
- 239000000463 material Substances 0.000 claims description 8
- 238000004590 computer program Methods 0.000 claims description 6
- 230000000694 effects Effects 0.000 claims description 6
- 230000006870 function Effects 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 238000009434 installation Methods 0.000 description 5
- 238000012545 processing Methods 0.000 description 5
- 230000002159 abnormal effect Effects 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000012806 monitoring device Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/302—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3051—Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
Abstract
The embodiment of the invention discloses a method, a device, equipment and a medium for monitoring an application resource packaging process. The method comprises the following steps: when the application resource is packaged and started, recording the real-time import duration of the current import resource; obtaining a classification identifier of the current imported resource, and determining a resource import upper limit duration corresponding to the current imported resource according to the classification identifier; and when the real-time import duration is greater than or equal to the resource import upper limit duration, stopping the resource import and sending an application resource packaging overtime early warning. By the technical scheme of the embodiment of the invention, the problem that the final resource packaging process is finished due to the fact that errors occur in the application resource packaging process and cannot be found in time in the prior art is solved, the application resource packaging process can be effectively controlled and managed, and packaging errors and overtime caused by import errors are avoided.
Description
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a method, a device, equipment and a medium for monitoring an application resource packaging process.
Background
The application packages are code packages that can run on corresponding devices, such as an apple system application (ipa) and an android package (apk). The application package is compiled and then packaged into a file that can be recognized by the corresponding system before being run. In the process of packaging the code resource, the time consumed by the process is longer and longer as the application program resource is increased, and the import process itself is very unstable, so that the situations of packaging error, failure, resource import error and the like can occur.
Generally, tens of thousands of resources may be available in one application package, however, the packaging process is not monitored, errors occurring in the packaging process cannot be timely discovered, or early warning is performed in advance, and the problem that the packaging time is too long due to the introduction of errors occurs, so that the whole process of packaging and constructing the program package is slowed down.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a medium for monitoring an application resource packaging process, which are used for effectively controlling and managing the application resource packaging process and avoiding packaging overtime caused by import errors.
In a first aspect, an embodiment of the present invention provides a method for monitoring an application resource packaging process, where the method includes:
when the application resource is packaged and started, recording the real-time import duration of the current import resource;
obtaining a classification identifier of the current imported resource, and determining a resource import upper limit duration corresponding to the current imported resource according to the classification identifier;
and when the real-time import duration is greater than or equal to the resource import upper limit duration, stopping the resource import and sending an application resource packaging overtime early warning.
Optionally, before the packaging and starting of the application resource, the method further includes:
and classifying the resources to be packaged according to the preset attributes of the resources, and setting corresponding resource import upper limit duration for the classified resources.
Optionally, when the real-time import duration is greater than or equal to the resource import upper limit duration, stopping resource import and sending an application resource package timeout warning, including:
inquiring whether the real-time import duration is greater than or equal to the resource import upper limit duration or not according to a preset time interval;
and when the real-time import duration is greater than or equal to the resource import upper limit duration, stopping the resource import process and sending an application resource packaging overtime early warning.
Optionally, the method for monitoring the packaging process of the application resource further includes:
when the application resource packaging is started, a preset resource import timer is started, and the resource import upper limit time length corresponding to the current import resource is set as the timing time length of the preset resource import timer.
Optionally, when the real-time import duration is greater than or equal to the resource import upper limit duration, stopping resource import and sending an application resource package timeout warning, including:
and when the preset resource import timer finishes timing and the import process of the current imported resource is not finished, stopping the resource import and sending an application resource packaging overtime early warning.
Optionally, the method for monitoring the packaging process of the application resource further includes:
and before the preset resource import timer finishes timing, when the import process of the current import resource finishes, finishing the timing process of the preset resource import timer, and taking the next resource to be imported of the current import resource as a new current import resource to conduct resource import until application resource packaging is finished.
Optionally, the classification of the currently imported resource includes chartlet, model, animation, preform, special effect, material, and script resources.
In a second aspect, an embodiment of the present invention further provides an apparatus for monitoring an application resource packaging process, where the apparatus includes:
the resource packaging timing module is used for recording the real-time import duration of the current import resource when the application resource packaging is started;
a timing upper limit acquisition module, configured to acquire a classification identifier of the current imported resource, and determine a resource import upper limit duration corresponding to the current imported resource according to the classification identifier;
and the resource import overtime early warning module is used for stopping the resource import and sending out application resource packaging overtime early warning when the real-time import duration is greater than or equal to the resource import upper limit duration.
Optionally, the apparatus for monitoring the packaging process of the application resource further includes a resource classification module, configured to classify the resources to be packaged according to preset attributes of the resources before the packaging of the application resource is started, and set a corresponding resource import upper limit duration for each classified resource.
Optionally, the resource import timeout warning module is specifically configured to:
inquiring whether the real-time import duration is greater than or equal to the resource import upper limit duration or not according to a preset time interval;
and when the real-time import duration is greater than or equal to the resource import upper limit duration, stopping the resource import process and sending an application resource packaging overtime early warning.
Optionally, the resource packing timing module is further configured to:
when the application resource packaging is started, a preset resource import timer is started, and the resource import upper limit time length corresponding to the current import resource is set as the timing time length of the preset resource import timer.
Optionally, the resource import timeout warning module is further configured to:
and when the preset resource import timer finishes timing and the import process of the current imported resource is not finished, stopping the resource import and sending an application resource packaging overtime early warning.
Optionally, the resource packing timing module is further configured to:
and before the preset resource import timer finishes timing, when the import process of the current import resource finishes, finishing the timing process of the preset resource import timer, and taking the next resource to be imported of the current import resource as a new current import resource to conduct resource import until application resource packaging is finished.
Optionally, the classification of the currently imported resource includes chartlet, model, animation, preform, special effect, material, and script resources.
In a third aspect, an embodiment of the present invention further provides a computer device, where the computer device includes:
one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the application resource packaging process monitoring method as provided by any embodiment of the invention.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for monitoring the packaging process of the application resource according to any embodiment of the present invention.
The embodiment of the invention has the following advantages or beneficial effects:
according to the embodiment of the invention, when the application resource is packaged and started, the real-time import duration of the current import resource is recorded; obtaining a classification identifier of a current imported resource, and determining a resource import upper limit duration corresponding to the current imported resource according to the classification identifier; when the real-time import time length is greater than or equal to the resource import upper limit time length, stopping resource import and sending out application resource packaging overtime early warning, so that the problem that the whole time consumption of the final resource packaging process is too long due to the fact that errors occur in the application resource packaging process and cannot be found in time in the prior art is solved, the application resource packaging process can be effectively controlled and managed, and packaging errors and overtime caused by import errors are avoided.
Drawings
Fig. 1 is a flowchart of a method for monitoring an application resource packaging process according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for monitoring an application resource packaging process according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of an application resource packaging process monitoring apparatus according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a computer device according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a method for monitoring an application resource packaging process according to an embodiment of the present invention, which is applicable to monitoring a resource packaging process of an application program installation package. The method can be executed by an application resource packaging process monitoring device, and the device can be realized by software and/or hardware and is integrated in computer equipment with an application development function, such as an intelligent mobile terminal, a computer, a server and the like.
As shown in fig. 1, the application resource packaging process monitoring method includes the following steps:
and S110, recording the real-time import duration of the current import resource when the application resource is packaged and started.
At the final stage of application program development, the code needs to be compiled, and after the compilation is normal, all program resources are packed to generate a program package which can run on an application system. In this embodiment, in order to better monitor and manage the resource packaging process, when the resource packaging work is started, each packaged and imported resource is timed, and the real-time accumulated time length of resource import is recorded.
S120, obtaining the classification identification of the current imported resource, and determining the resource import upper limit duration corresponding to the current imported resource according to the classification identification.
Furthermore, each imported resource has a corresponding role and function in the final application installation package. Therefore, each resource can be classified according to the corresponding function, and then, according to the characteristics of the resources of different classes, the corresponding resource import upper limit time is preset for each class of resources. For example, if the application installation package to be resource packaged is a game application installation package, the resources to be packaged may be classified into a map, a model, an animation, a prefab preform, a special effect, a material, a script, and the like, and the resource import upper limit time, that is, the maximum tolerance time, is set according to a predetermined type, for example, 30 seconds for the map, 5 seconds for the prefab preform, 25 seconds for the material, and 20 seconds for the script. In an alternative manner, a corresponding maximum resource import tolerance time table (which may be named as MaxDurationTable) may be established to manage the resource import upper limit time corresponding to each resource. If each resource can complete the resource import within the corresponding resource import upper limit time, the resource import process is normal.
And S130, stopping resource import and sending out application resource packaging overtime early warning when the real-time import duration is greater than or equal to the resource import upper limit duration.
Specifically, in the resource packaging process, whether the real-time import time length is greater than or equal to the corresponding resource import upper limit time length is inquired according to a preset time interval; and when the real-time import duration is longer than or equal to the corresponding resource import upper limit duration, stopping the resource import process and sending an application resource packaging overtime early warning.
In the process of resource import, if the time length of the resource import reaches the corresponding upper limit time length of the resource import, but the current resource import process is not ended, the resource import process is abnormal, the resource import is stopped, and the application resource packaging overtime early warning is sent out. Program developers are reminded to intervene to solve problems, so that application program resources can smoothly complete the import process, and the packaging of application program packages is completed.
Furthermore, when the early warning of the package overtime of the application resources is sent out, a resource package overtime log can be generated, so that a user can trace back package abnormal events.
According to the technical scheme of the embodiment, when the application resource is packaged and started, the real-time import duration of the current import resource is recorded; obtaining a classification identifier of a current imported resource, and determining a resource import upper limit duration corresponding to the current imported resource according to the classification identifier; when the real-time import time length is greater than or equal to the resource import upper limit time length, stopping resource import and sending out application resource packaging overtime early warning, so that the problem that in the prior art, errors occur in the application resource packaging process, the errors cannot be found in time, the overall time consumption for completing the final resource packaging process is too long is solved, the application resource packaging process can be effectively controlled and managed, and packaging errors and overtime caused by import errors are avoided.
Example two
Fig. 2 is a flowchart of a method for monitoring an application resource packaging process according to a second embodiment of the present invention, which belongs to the same inventive concept as the first embodiment. Explanations of the same or corresponding terms as those in the above embodiments are omitted here.
Referring to fig. 2, the method for monitoring the packaging process of the application resource provided by this embodiment includes the following steps:
s210, classifying the resources to be packaged according to the preset attributes of the resources, and setting corresponding resource import upper limit duration for the classified resources.
In this embodiment, the resources to be packaged are first classified, which may be according to attributes of the resources, such as functions, storage paths, or volumes, and then, according to the characteristics of the resources of different categories, corresponding resource import upper limit time is set for each category of resources in advance. For example, if the application installation package to be resource packaged is a game application installation package, the resources to be packaged may be classified into a map, a model, an animation, a prefab preform, a special effect, a material, a script, and the like, and the resource import upper limit time, that is, the maximum tolerance time, is set according to a predetermined type, for example, 30 seconds for the map, 5 seconds for the prefab preform, 25 seconds for the material, and 20 seconds for the script.
S220, when the application resource packaging is started, starting a preset resource import timer, and setting the resource import upper limit time length corresponding to the current import resource as the timing time length of the preset resource import timer.
And when the resource packaging is started, a preset resource import timer is synchronously started, and the timing duration of the timer is set according to the type of the currently packaged resource. Or, each resource to be imported of different types is correspondingly provided with a dedicated resource import timer. Wherein, each exclusive resource import timer is provided with a corresponding timing duration.
And S230, in the process of importing the current imported resource, inquiring whether the preset resource importing timer is finished according to a preset time interval, and determining whether the process of importing the current imported resource is finished.
Specifically, if the process of importing the currently imported resource is already finished before the preset resource importing timer finishes timing, it indicates that the resource importing is successfully finished and no exception occurs, and the process skips to step S250. Otherwise, if the current resource importing process is not finished and the preset resource importing timer finishes timing, it indicates that the current resource importing packaging process is abnormal, and step S240 is executed.
And S240, stopping resource import and sending out application resource packaging overtime early warning.
And S250, ending the timing process of the preset resource import timer, and taking the next resource to be imported of the current imported resource as a new current imported resource for resource import.
Namely, after the process of importing the currently imported resource is finished, other resources which are not imported are continuously imported. For each resource to be imported, the method of the embodiment is adopted to monitor the process of resource import.
According to the technical scheme of the embodiment of the invention, the resources to be packaged are classified in advance, then the resource packaging upper limit duration is set for the various classified resources, when the application resource packaging is started, the timer is started, and the packaging upper limit duration of the resources to be packaged is taken as the timing duration of the timer so as to monitor the resource leading-in packaging process, so that the problem that the whole time consumption is too long when the final resource packaging process is completed due to the fact that errors occur in the application resource packaging process and cannot be found in time in the prior art is solved, the application resource packaging process can be effectively controlled and managed, and packaging errors and overtime caused by leading-in errors are avoided.
The following is an embodiment of the apparatus for monitoring an application resource packaging process according to an embodiment of the present invention, and the apparatus and the method for monitoring an application resource packaging process according to the above embodiments belong to the same inventive concept, and can implement the method for monitoring an application resource packaging process according to the above embodiments. For details that are not described in detail in the embodiment of the apparatus for monitoring an application resource packaging process, reference may be made to the above-mentioned embodiment of the method for monitoring an application resource packaging process.
EXAMPLE III
Fig. 3 is a schematic structural diagram of an application resource packaging process monitoring apparatus according to a third embodiment of the present invention, which is applicable to monitoring a packaging and compiling process of an application program installation package.
As shown in fig. 3, the apparatus for monitoring a packing process of an application resource specifically includes: the resource packaging timing module 310, the upper timing limit acquisition module 320 and the resource import timeout early warning module 330.
The resource packaging timing module 310 is configured to record a real-time import duration of a current import resource when application resource packaging is started; a timing upper limit obtaining module 320, configured to obtain a classification identifier of the current imported resource, and determine, according to the classification identifier, a resource import upper limit duration corresponding to the current imported resource; and the resource import timeout early warning module 330 is configured to stop resource import and send an application resource package timeout early warning when the real-time import duration is greater than or equal to the resource import upper limit duration.
According to the technical scheme of the embodiment, when the application resource is packaged and started, the real-time import duration of the current import resource is recorded; obtaining a classification identifier of the current imported resource, and determining a resource import upper limit duration corresponding to the current imported resource according to the classification identifier; when the real-time import time length is greater than or equal to the resource import upper limit time length, stopping resource import and sending out application resource packaging overtime early warning, solving the problem that the whole time consumption of the final resource packaging process is too long due to the fact that errors occur in the application resource packaging process and cannot be found in time in the prior art, effectively controlling and managing the application resource packaging process and avoiding packaging errors and overtime caused by import errors.
Optionally, the apparatus for monitoring the packaging process of the application resource further includes a resource classification module, configured to classify the resources to be packaged according to preset attributes of the resources before the packaging of the application resource is started, and set a corresponding resource import upper limit duration for each classified resource.
Optionally, the resource import timeout warning module 330 is specifically configured to:
inquiring whether the real-time import duration is greater than or equal to the resource import upper limit duration or not according to a preset time interval;
and when the real-time import duration is greater than or equal to the resource import upper limit duration, stopping the resource import process and sending an application resource packaging overtime early warning.
Optionally, the resource packing timing module 310 is further configured to:
when the application resource packaging is started, a preset resource import timer is started, and the resource import upper limit time length corresponding to the current import resource is set as the timing time length of the preset resource import timer.
Optionally, the resource import timeout warning module 310 is further configured to:
and when the preset resource import timer finishes timing and the import process of the current imported resource is not finished, stopping the resource import and sending an application resource packaging overtime early warning.
Optionally, the resource packing timing module 310 is further configured to:
and before the preset resource import timer finishes timing, when the import process of the current import resource finishes, finishing the timing process of the preset resource import timer, and taking the next resource to be imported of the current import resource as a new current import resource to conduct resource import until application resource packaging is finished.
Optionally, the classification of the currently imported resource includes chartlet, model, animation, preform, special effect, material, and script resources.
The application resource packaging process monitoring device provided by the embodiment of the invention can execute the application resource packaging process monitoring method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
Example four
Fig. 4 is a schematic structural diagram of a computer device according to a fourth embodiment of the present invention. FIG. 4 illustrates a block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention. The computer device 12 shown in FIG. 4 is only one example and should not bring any limitations to the functionality or scope of use of embodiments of the present invention. The computer device in the embodiment of the present invention may be a smart phone, a tablet Personal Computer (PC), a server cluster device, or another computer device with an arithmetic capability.
As shown in FIG. 4, computer device 12 is in the form of a general purpose computing device. The components of computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. Computer device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, and commonly referred to as a "hard drive"). Although not shown in FIG. 4, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. System memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, for example, implementing steps of an application resource packaging process monitoring method provided by the embodiment of the present invention, the method includes:
when the application resource is packaged and started, recording the real-time import duration of the current import resource;
obtaining a classification identifier of the current imported resource, and determining a resource import upper limit duration corresponding to the current imported resource according to the classification identifier;
and when the real-time import duration is greater than or equal to the resource import upper limit duration, stopping the resource import and sending an application resource packaging overtime early warning.
Of course, those skilled in the art can understand that the processor may also implement the technical solution of the method for monitoring the packing process of the application resource provided in any embodiment of the present invention.
EXAMPLE five
This embodiment provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of a method for monitoring an application resource packaging process provided in any embodiment of the present invention, where the method includes:
when the application resource is packaged and started, recording the real-time import duration of the current import resource;
obtaining a classification identifier of the current imported resource, and determining a resource import upper limit duration corresponding to the current imported resource according to the classification identifier;
and when the real-time import duration is greater than or equal to the resource import upper limit duration, stopping the resource import and sending an application resource packaging overtime early warning.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer-readable storage medium may be, for example but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It will be understood by those skilled in the art that the modules or steps of the invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and optionally they may be implemented by program code executable by a computing device, such that it may be stored in a memory device and executed by a computing device, or it may be separately fabricated into various integrated circuit modules, or it may be fabricated by fabricating a plurality of modules or steps thereof into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (10)
1. A method for monitoring an application resource packaging process is characterized by comprising the following steps:
when the application resource is packaged and started, recording the real-time import duration of the current import resource;
obtaining a classification identifier of the current imported resource, and determining a resource import upper limit duration corresponding to the current imported resource according to the classification identifier;
and when the real-time import duration is greater than or equal to the resource import upper limit duration, stopping the resource import and sending an application resource packaging overtime early warning.
2. The method of claim 1, wherein prior to the application resource package starting, the method further comprises:
and classifying the resources to be packaged according to the preset attributes of the resources, and setting corresponding resource import upper limit duration for the classified resources.
3. The method of claim 1, wherein stopping resource import and issuing an application resource packing timeout warning when the real-time import duration is greater than or equal to the resource import upper limit duration comprises:
inquiring whether the real-time import duration is greater than or equal to the resource import upper limit duration or not according to a preset time interval;
and when the real-time import duration is greater than or equal to the resource import upper limit duration, stopping the resource import process and sending an application resource packaging overtime early warning.
4. The method of claim 2, further comprising:
when the application resource packaging is started, a preset resource import timer is started, and the resource import upper limit time length corresponding to the current import resource is set as the timing time length of the preset resource import timer.
5. The method of claim 4, wherein stopping resource import and issuing an application resource packing timeout warning when the real-time import duration is greater than or equal to the resource import upper limit duration comprises:
and when the preset resource import timer finishes timing and the import process of the current imported resource is not finished, stopping the resource import and sending an application resource packaging overtime early warning.
6. The method of claim 5, further comprising:
and before the preset resource import timer finishes timing, when the import process of the current import resource finishes, finishing the timing process of the preset resource import timer, and taking the next resource to be imported of the current import resource as a new current import resource to conduct resource import until application resource packaging is finished.
7. The method of any of claims 1-6, wherein the classification of the currently imported resources includes charting, modeling, animation, pre-form, special effects, material, and script-like resources.
8. An apparatus for monitoring a packing process of an application resource, comprising:
the resource packaging timing module is used for recording the real-time import duration of the current import resource when the application resource packaging is started;
a timing upper limit acquisition module, configured to acquire a classification identifier of the current imported resource, and determine a resource import upper limit duration corresponding to the current imported resource according to the classification identifier;
and the resource import overtime early warning module is used for stopping the resource import and sending out application resource packaging overtime early warning when the real-time import duration is greater than or equal to the resource import upper limit duration.
9. A computer device, characterized in that the computer device comprises:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the application resource packaging process monitoring method of any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method for application resource packaging process monitoring according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110467297.2A CN113138793B (en) | 2021-04-28 | Application resource packaging process monitoring method, device, equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110467297.2A CN113138793B (en) | 2021-04-28 | Application resource packaging process monitoring method, device, equipment and medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113138793A true CN113138793A (en) | 2021-07-20 |
CN113138793B CN113138793B (en) | 2024-05-03 |
Family
ID=
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107784481A (en) * | 2017-08-30 | 2018-03-09 | 平安科技(深圳)有限公司 | Task timeliness method for early warning and device |
CN110908707A (en) * | 2019-11-28 | 2020-03-24 | 米哈游科技(上海)有限公司 | Resource packaging method, device, server and storage medium |
CN112164210A (en) * | 2020-09-16 | 2021-01-01 | 南京领行科技股份有限公司 | Object-based early warning method and device, storage medium and electronic equipment |
CN112363753A (en) * | 2020-11-17 | 2021-02-12 | 上海米哈游天命科技有限公司 | Data verification method and device, electronic equipment and storage medium |
WO2021063339A1 (en) * | 2019-09-30 | 2021-04-08 | 星环信息科技(上海)股份有限公司 | Cluster resource scheduling method, apparatus, device and storage medium |
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107784481A (en) * | 2017-08-30 | 2018-03-09 | 平安科技(深圳)有限公司 | Task timeliness method for early warning and device |
WO2021063339A1 (en) * | 2019-09-30 | 2021-04-08 | 星环信息科技(上海)股份有限公司 | Cluster resource scheduling method, apparatus, device and storage medium |
CN110908707A (en) * | 2019-11-28 | 2020-03-24 | 米哈游科技(上海)有限公司 | Resource packaging method, device, server and storage medium |
CN112164210A (en) * | 2020-09-16 | 2021-01-01 | 南京领行科技股份有限公司 | Object-based early warning method and device, storage medium and electronic equipment |
CN112363753A (en) * | 2020-11-17 | 2021-02-12 | 上海米哈游天命科技有限公司 | Data verification method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021259013A1 (en) | Data processing method and apparatus, electronic device, and computer-readable medium | |
CN108595316B (en) | Lifecycle management method, manager, device, and medium for distributed application | |
US20230020324A1 (en) | Task Processing Method and Device, and Electronic Device | |
CN110309108A (en) | Data acquisition and storage method, device, electronic equipment, storage medium | |
CN110908707B (en) | Resource packaging method, device, server and storage medium | |
CN109218393B (en) | Push implementation method, device, equipment and computer storage medium | |
CN113127050B (en) | Application resource packaging process monitoring method, device, equipment and medium | |
CN114138674A (en) | Automatic testing method and device and computer equipment | |
CN114244821B (en) | Data processing method, device, equipment, electronic equipment and storage medium | |
CN113658351B (en) | Method and device for producing product, electronic equipment and storage medium | |
CN113190427A (en) | Caton monitoring method and device, electronic equipment and storage medium | |
CN113204425A (en) | Method and device for process management internal thread, electronic equipment and storage medium | |
CN111913861A (en) | Performance test method, device, equipment and medium of Internet of things system | |
CN113138793B (en) | Application resource packaging process monitoring method, device, equipment and medium | |
CN113138793A (en) | Application resource packaging process monitoring method, device, equipment and medium | |
CN112463574A (en) | Software testing method, device, system, equipment and storage medium | |
CN113127001B (en) | Method, device, equipment and medium for monitoring code compiling process | |
CN115237889A (en) | Database switching method and device, storage medium and computer equipment | |
CN108459942A (en) | A kind of data processing method, device and storage medium | |
CN114996134A (en) | Containerized deployment method, electronic equipment and storage medium | |
CN110262856B (en) | Application program data acquisition method, device, terminal and storage medium | |
CN111741046B (en) | Data reporting method, data acquisition method, device, equipment and medium | |
CN114036218A (en) | Data model switching method and device, server and storage medium | |
CN113127051B (en) | Application resource packaging process monitoring method, device, equipment and medium | |
CN113127002B (en) | Method, device, equipment and medium for monitoring code compiling process |
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 | ||
GR01 | Patent grant |