[go: up one dir, main page]

CN113127050B - Application resource packaging process monitoring method, device, equipment and medium - Google Patents

Application resource packaging process monitoring method, device, equipment and medium Download PDF

Info

Publication number
CN113127050B
CN113127050B CN202110466999.9A CN202110466999A CN113127050B CN 113127050 B CN113127050 B CN 113127050B CN 202110466999 A CN202110466999 A CN 202110466999A CN 113127050 B CN113127050 B CN 113127050B
Authority
CN
China
Prior art keywords
hook function
resource
packaged
instruction set
packaging
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.)
Active
Application number
CN202110466999.9A
Other languages
Chinese (zh)
Other versions
CN113127050A (en
Inventor
王达
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Miha Youliyue Technology Co ltd
Original Assignee
Shanghai Miha Youliyue Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Miha Youliyue Technology Co ltd filed Critical Shanghai Miha Youliyue Technology Co ltd
Priority to CN202110466999.9A priority Critical patent/CN113127050B/en
Publication of CN113127050A publication Critical patent/CN113127050A/en
Application granted granted Critical
Publication of CN113127050B publication Critical patent/CN113127050B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring 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

Landscapes

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

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: in the resource packaging process, extracting a hook function of a current resource to be packaged, and matching the hook function with a hook function instruction set corresponding to a category to which the current resource to be packaged belongs, wherein the hook function instruction set is a function instruction set of the compiled hook function; and stopping the resource packaging process and sending out packaging abnormality early warning when the hook function instruction set is not matched with the hook function. By the technical scheme of the embodiment of the invention, the problem that the whole process of finishing the final resource packaging is too long because errors occur in the process of packaging the application resources and cannot be found in time in the prior art is solved, the process of packaging the application resources can be effectively controlled and managed, and packaging errors and overtime caused by introducing errors are avoided.

Description

Application resource packaging process monitoring method, device, equipment and medium
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 the corresponding devices, such as an application (iPhone Application, ipa) of the apple system and an application (Android Package, apk) of the Android system. The application package is compiled first and then packaged into a file that can be identified by the corresponding system before it can be run. In the process of code resource packaging, the time consumed by the process becomes longer and longer along with the application program resources, and the importing process is very unstable, so that packaging errors, failures, resource importing errors and the like are likely to occur.
Generally, there may be tens of thousands of resources in an application package, however, there is no monitoring in the packaging process, and errors occurring in the packaging process cannot be found timely, or early warning is performed in advance, so that an import error occurs, and the problem of too long packaging time is caused, which results in slow dragging of the whole package packaging and construction process.
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, avoiding packaging errors and overtime caused by import errors and optimizing packaging process management.
In a first aspect, an embodiment of the present invention provides a method for monitoring an application resource packaging process, where the method includes:
in the resource packaging process, extracting a hook function of a current resource to be packaged, and matching the hook function with a hook function instruction set corresponding to a category to which the current resource to be packaged belongs, wherein the hook function instruction set is a function instruction set of the compiled hook function;
and stopping the resource packaging process and sending out packaging abnormality early warning when the hook function instruction set is not matched with the hook function.
Optionally, before packaging the resource to be packaged, the method further includes:
classifying the resources to be packaged according to the preset resource identification;
and reading the compiled hook functions of the resources to be packaged, and creating a hook function instruction set corresponding to the categories of the resources to be packaged, wherein each hook function instruction set contains all the hook functions under the corresponding resource categories.
Optionally, the classification of the resources to be packaged includes:
a map file class, an animation file class, a preform file class, a material file class, and a script file class.
Optionally, while sending out the packaging abnormality early warning, the method further comprises:
generating a packaging abnormality early warning log, wherein the log comprises a resource category corresponding to packaging abnormality early warning, the hook function and time for generating packaging abnormality.
Optionally, when matching to the hook function in the hook function instruction set, the method further comprises:
continuously packaging the current resource to be packaged;
and calling and executing the hook function after the current resource to be packaged is packaged.
In a second aspect, an embodiment of the present invention further provides an application resource packaging process monitoring device, where the device includes:
the system comprises a hook function detection module, a calculation module and a calculation module, wherein the hook function detection module is used for extracting a hook function of a current resource to be packaged in the resource packaging process, and matching the hook function with a hook function instruction set corresponding to a category to which the current resource to be packaged belongs, wherein the hook function instruction set is a function instruction set obtained by compiling the hook function;
and the packaging abnormality early warning module is used for stopping the resource packaging process and sending out packaging abnormality early warning when the hook function instruction set is not matched with the hook function.
Optionally, the application resource packaging process monitoring device further includes:
the resource classification module is used for classifying the resources to be packaged according to the preset resource identification before the resources to be packaged are packaged;
the system comprises a hook function instruction set creation module, a calculation module and a calculation module, wherein the hook function instruction set creation module is used for reading compiled hook functions of resources to be packaged and creating hook function instruction sets corresponding to categories of the resources to be packaged, and each hook function instruction set contains all hook functions under the corresponding categories of the resources.
Optionally, the classification of the resources to be packaged includes:
a map file class, an animation file class, a preform file class, a material file class, and a script file class.
Optionally, the packaging abnormality early warning module is further configured to:
and generating a packaging abnormality early warning log while sending out packaging abnormality early warning, wherein the log comprises a resource category corresponding to the packaging abnormality early warning, the hook function and the time of occurrence of the packaging abnormality.
Optionally, the application resource packaging process monitoring device further includes a function execution module:
when the hook function instruction set is matched with the hook function, continuing to package the current resource to be packaged;
and calling and executing the hook function after the current resource to be packaged is packaged.
In a third aspect, an embodiment of the present invention further provides a computer apparatus, including:
one or more processors;
a memory for storing one or more programs;
the 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 as provided by any embodiment of the present invention.
In a fourth aspect, an embodiment of the present invention further provides a computer readable storage medium having stored thereon a computer program, which when executed by a processor implements an application resource packaging process monitoring method as provided in any embodiment of the present invention.
The embodiments of the above invention have the following advantages or benefits:
in the embodiment of the invention, the hook function of the current resource to be packaged is extracted in the resource packaging process, and the hook function is matched with the hook function instruction set corresponding to the category to which the current resource to be packaged belongs, wherein the hook function instruction set is a function instruction set of the compiled hook function, namely all code segments matched with the hook function; when the extracted hook function is not matched in the hook function instruction set, the fact that the hook function of the current resource to be packaged is illegal is indicated, the resource packaging process is stopped, the packaging abnormality early warning is sent out, and the accurate height of the packaging abnormality detection result is achieved in the mode, so that the problems that errors occur in the process of packaging the application resources in the prior art, the errors cannot be found in time, the whole process of finishing the final resource packaging is time-consuming and overlong are solved, the process of packaging the application resources 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 a first embodiment of the present invention;
fig. 2 is a schematic structural diagram of a monitoring device for packaging process of application resources according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a computer device according to a third embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Example 1
Fig. 1 is a flowchart of a method for monitoring an application resource packaging process according to a first embodiment of the present invention, where the embodiment is applicable to a case where an application installation package resource is monitored in an import packaging process. 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 into computer equipment with application development functions, 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:
s110, extracting a hook function of a current resource to be packaged in a resource packaging process, and matching the hook function with a hook function instruction set corresponding to a category to which the current resource to be packaged belongs, wherein the hook function instruction set is a function instruction set obtained by compiling the hook function.
Specifically, the resources of the application program include execution code script resources, models, pictures, audio and video data and the like applied in the running process of some programs, each resource may register a hook function, and after the resources are imported, a callback executes the corresponding hook function. The hook function may be considered one of the main characteristics of WINDOWS. With them you can catch events that happen to your own process or other processes. By "hooking" you can give WINDOWS a callback function, also called "hook function", that will be called each time an event of interest you take place.
In this embodiment, the classification of the resource may be identified according to the information such as the identifier of the resource in the process of packaging the resource, so as to find the hook function instruction set under the corresponding classification. Wherein the hook function instruction set is set in advance according to the classification of the resource.
For example, if the packaged application is a game application, the classification of the resources to be packaged by the application may include: the map file class, the animation file class, the preform file class, the material file class and the script file class, or other finer classifications and classification results under different classification rules can be included. The class of the preform file refers to that a game object is stored in engineering and is created when needed, namely, a preform (prefab). The preform stores one game object, including all components of the game object and all sub-game objects thereunder. Further, a hook function instruction set is created for each classified resource, wherein each hook function instruction set contains all hook functions under the corresponding resource classification. I.e. the import flow of the resource, all the functions which can be used as the hook functions are stored in the corresponding hook function library (hook function instruction set).
Then, in the process of packaging the application program resources, the current resources to be packaged can be obtained, the hook functions corresponding to the current resources to be packaged are extracted, and then the extracted hook functions are matched with the hook function instruction set corresponding to the category to which the current resources to be packaged belong, so that whether the hook functions registered by the detected resources are in the legal hook function library or not is detected.
Here, the hook function instruction set is a function instruction set in which a hook function is compiled. The compiling process is a process of generating a target program from a source program written in a source language by a resource to be packaged, and actions of the target program can be generated through the compiling process. Compiling is to change a high-level language into a 2-system language which can be recognized by a computer. The compiled hook function is also a function expressed in binary language, and occupies a certain space in the memory.
And S120, stopping the resource packaging process and sending out packaging abnormality early warning when the hook function instruction set is not matched with the hook function.
The method comprises the steps that a hook function extracted in the resource packaging process is also a compiled hook function, if the extracted hook function is not matched in a hook function instruction set corresponding to the type of the current resource to be packaged, the fact that the hook function of the current resource to be packaged is an illegal function is indicated, an abnormal condition occurs, and therefore the resource packaging process is stopped and packaging abnormality early warning is sent out.
In a preferred embodiment, when the packaging abnormality early warning is sent, a packaging abnormality early warning log is generated, and when the log description comprises information such as the corresponding resource category and illegal hook function during the packaging abnormality early warning, the time of packaging abnormality occurrence and the like, member developers can conveniently locate the problem occurring in the packaging process, and the problem is effectively solved.
On the other hand, when the hook function is matched in the hook function instruction set to extract the hook function, the hook function of the file to be packaged is legal, and the current resource to be packaged can be continuously packaged; and then, calling and executing the hook function after the current resource to be packaged is packaged.
According to the technical scheme, the application program resources are classified, in the process of resource packaging, the hook function of the current resource to be packaged is extracted, and the hook function is matched with the hook function instruction set corresponding to the category to which the current resource to be packaged belongs; when the hook function instruction set is not matched with the hook function, the fact that the hook function of the current resource to be packaged is illegal is indicated, the resource packaging process is stopped, the packaging exception early warning is sent out, the problem that the whole process of finishing the final resource packaging is too long due to the fact that errors occur in the process of packaging the application resources and cannot be found in time in the prior art is solved, the problem that the packaging process of the application resources is effectively controlled and managed can be solved, and packaging errors and overtime caused by the errors are avoided. In addition, in the embodiment, a packaging exception log can be generated, so that a program developer can quickly locate a problem, solve the problem and smoothly complete program resource packaging.
The following is an embodiment of the application resource packaging process monitoring device provided by the embodiment of the present invention, where the device and the application resource packaging process monitoring method of each embodiment belong to the same inventive concept, and the application resource packaging process monitoring method of each embodiment can be implemented. Details not described in detail in the embodiment of the application resource packaging process monitoring device may refer to the embodiment of the application resource packaging process monitoring method described above.
Example two
Fig. 2 is a schematic structural diagram of an application resource packaging process monitoring device according to a third embodiment of the present invention, where the present embodiment may be applicable to a case of monitoring a resource import packaging process of an application installation package.
As shown in fig. 2, the application resource packaging process monitoring device specifically includes a code content detection module 210 and a compile timeout early warning module 220.
The hook function detection module 210 is configured to extract a hook function of a current resource to be packaged in a resource packaging process, and match the hook function with a hook function instruction set corresponding to a class to which the current resource to be packaged belongs, where the hook function instruction set is a compiled function instruction set of the hook function; and the packaging exception pre-warning module 220 is configured to stop the resource packaging process and send out packaging exception pre-warning when the hook function instruction set is not matched with the hook function.
According to the technical scheme, in the process of packaging the resources, the hook function of the current resource to be packaged is extracted, and the hook function is matched with the hook function instruction set corresponding to the category to which the current resource to be packaged belongs; when the hook function instruction set is not matched with the hook function, the fact that the hook function of the current resource to be packaged is illegal is indicated, the resource packaging process is stopped, the packaging exception early warning is sent out, the problem that the whole process of finishing the final resource packaging is too long due to the fact that errors occur in the process of packaging the application resources and cannot be found in time in the prior art is solved, the problem that the packaging process of the application resources is effectively controlled and managed can be solved, and packaging errors and overtime caused by the errors are avoided.
Optionally, the application resource packaging process monitoring device further includes:
the resource classification module is used for classifying the resources to be packaged according to the preset resource identification before the resources to be packaged are packaged;
the system comprises a hook function instruction set creation module, a calculation module and a calculation module, wherein the hook function instruction set creation module is used for reading compiled hook functions of resources to be packaged and creating hook function instruction sets corresponding to categories of the resources to be packaged, and each hook function instruction set contains all hook functions under the corresponding categories of the resources.
Optionally, the classification of the resources to be packaged includes:
a map file class, an animation file class, a preform file class, a material file class, and a script file class.
Optionally, the packaging anomaly early-warning module 220 is further configured to:
and generating a packaging abnormality early warning log while sending out packaging abnormality early warning, wherein the log comprises a resource category corresponding to the packaging abnormality early warning, the hook function and the time of occurrence of the packaging abnormality.
Optionally, the application resource packaging process monitoring device further includes a function execution module:
when the hook function instruction set is matched with the hook function, continuing to package the current resource to be packaged;
and calling and executing the hook function after the current resource to be packaged is packaged.
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 the corresponding functional modules and beneficial effects of the execution method.
Example III
Fig. 3 is a schematic structural diagram of a computer device according to a third embodiment of the present invention. FIG. 3 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. 3 is merely an example and should not be construed as limiting the functionality and scope of use of embodiments of the present invention. In the embodiment of the invention, the computer equipment can be a smart phone, a tablet Personal Computer (PC), server cluster equipment or other computer equipment with operation capability.
As shown in FIG. 3, computer device 12 is in the form of a general purpose computing device. Components of computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, a bus 18 that connects the various system components, including the system memory 28 and the processing units 16.
Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, and a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, micro channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer device 12 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by computer device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
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. The 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 or write to non-removable, nonvolatile magnetic media (not shown in FIG. 3, commonly referred to as a "hard disk drive"). Although not shown in fig. 3, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be coupled to bus 18 through one or more data medium interfaces. The system memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of the embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored in, for example, 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 or some combination of which may include an implementation of a network environment. Program modules 42 generally perform the functions and/or methods of the embodiments described herein.
The computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), one or more devices that enable a user to interact with the computer device 12, and/or any devices (e.g., network card, modem, etc.) that enable the computer device 12 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 22. Moreover, computer device 12 may also communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, through network adapter 20. As shown, network adapter 20 communicates with other modules of computer device 12 via bus 18. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with computer device 12, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, for example, implementing an application resource packaging process monitoring method step provided in the present embodiment, the method includes:
in the resource packaging process, extracting a hook function of a current resource to be packaged, and matching the hook function with a hook function instruction set corresponding to a category to which the current resource to be packaged belongs, wherein the hook function instruction set is a function instruction set of the compiled hook function;
and stopping the resource packaging process and sending out packaging abnormality early warning when the hook function instruction set is not matched with the hook function.
Of course, those skilled in the art will understand that the processor may also implement the technical solution of the application resource packaging process monitoring method provided in any embodiment of the present invention.
Example IV
A fourth embodiment provides a computer readable storage medium having stored thereon a computer program which when executed by a processor implements the steps of an application resource packaging process monitoring method as provided by any embodiment of the present invention, the method comprising:
in the resource packaging process, extracting a hook function of a current resource to be packaged, and matching the hook function with a hook function instruction set corresponding to a category to which the current resource to be packaged belongs, wherein the hook function instruction set is a function instruction set of the compiled hook function;
and stopping the resource packaging process and sending out packaging abnormality early warning when the hook function instruction set is not matched with the hook function.
The computer storage media of embodiments of the invention may take the form of 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 a combination of any of the foregoing. 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 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.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. 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 of the present invention may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ 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 kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
It will be appreciated by those of ordinary skill in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be centralized on a single computing device, or distributed over a network of computing devices, or they may alternatively be implemented in program code executable by a computer device, such that they are stored in a memory device and executed by the computing device, or they may be separately fabricated as individual integrated circuit modules, or multiple modules or steps within them may be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. 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, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (9)

1. An application resource packaging process monitoring method, comprising the steps of:
creating a corresponding hook function instruction set according to the classification of the resources; wherein, each hook function instruction set comprises all hook functions under the corresponding resource classification;
in the resource packaging process, extracting a hook function of a current resource to be packaged, and matching the hook function with a hook function instruction set corresponding to a category to which the current resource to be packaged belongs, wherein the hook function instruction set is a function instruction set of the compiled hook function;
when the hook function instruction set is not matched with the hook function, stopping the resource packaging process and sending out packaging abnormality early warning;
generating a packaging abnormality early warning log, wherein the log comprises a resource category corresponding to packaging abnormality early warning, the hook function and time for generating packaging abnormality.
2. The method of claim 1, wherein prior to packaging the resource to be packaged, the method further comprises:
classifying the resources to be packaged according to the preset resource identification;
and reading the compiled hook function of the resource to be packaged, and searching a hook function instruction set corresponding to the category of the resource to be packaged.
3. The method according to claim 1 or 2, wherein the classification of the resource to be packaged comprises:
a map file class, an animation file class, a preform file class, a material file class, and a script file class.
4. The method of claim 1, wherein when matching to the hook function in the hook function instruction set, the method further comprises:
continuously packaging the current resource to be packaged;
and calling and executing the hook function after the current resource to be packaged is packaged.
5. An application resource packaging process monitoring device, comprising:
the hook function instruction set creation module is used for creating a corresponding hook function instruction set according to the classification of the resources; wherein, each hook function instruction set comprises all hook functions under the corresponding resource classification;
the system comprises a hook function detection module, a calculation module and a calculation module, wherein the hook function detection module is used for extracting a hook function of a current resource to be packaged in the resource packaging process, and matching the hook function with a hook function instruction set corresponding to a category to which the current resource to be packaged belongs, wherein the hook function instruction set is a function instruction set obtained by compiling the hook function;
and the packaging abnormality early warning module is used for stopping the resource packaging process and sending out packaging abnormality early warning when the hook function instruction set is not matched with the hook function.
6. The apparatus of claim 5, wherein the apparatus further comprises:
the resource classification module is used for classifying the resources to be packaged according to the preset resource identification before the resources to be packaged are packaged;
and the hook function instruction set searching module is used for reading the compiled hook function of the resource to be packaged and searching the hook function instruction set corresponding to the category of the resource to be packaged.
7. The apparatus of claim 5 or 6, wherein the classification of the resources to be packaged comprises:
a map file class, an animation file class, a preform file class, a material file class, and a script file class.
8. A computer device, the computer device comprising:
one or more processors;
a memory for storing one or more programs;
the 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-4.
9. A computer readable storage medium having stored thereon a computer program, which when executed by a processor implements the application resource packaging process monitoring method according to any of claims 1-4.
CN202110466999.9A 2021-04-28 2021-04-28 Application resource packaging process monitoring method, device, equipment and medium Active CN113127050B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110466999.9A CN113127050B (en) 2021-04-28 2021-04-28 Application resource packaging process monitoring method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110466999.9A CN113127050B (en) 2021-04-28 2021-04-28 Application resource packaging process monitoring method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN113127050A CN113127050A (en) 2021-07-16
CN113127050B true CN113127050B (en) 2024-03-22

Family

ID=76780735

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110466999.9A Active CN113127050B (en) 2021-04-28 2021-04-28 Application resource packaging process monitoring method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN113127050B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113590220B (en) * 2021-08-02 2024-07-23 上海米哈游璃月科技有限公司 Method, device, electronic equipment and medium for detecting action resource configuration information
CN114356296A (en) * 2021-12-30 2022-04-15 上海米哈游璃月科技有限公司 Resource packaging method, device, electronic device and storage medium
CN116010112B (en) * 2023-03-27 2023-06-09 北京渲光科技有限公司 Method and device for calling hook function, computer equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000089978A (en) * 1998-09-16 2000-03-31 Yaskawa Electric Corp Motion controller
AU2016210760A1 (en) * 2006-09-21 2016-08-25 Apple Inc. Dynamically adaptive scheduling system
CN111291374A (en) * 2020-02-20 2020-06-16 支付宝(杭州)信息技术有限公司 Application program detection method, device and equipment
CN112363753A (en) * 2020-11-17 2021-02-12 上海米哈游天命科技有限公司 Data verification method and device, electronic equipment and storage medium
CN112527302A (en) * 2019-09-19 2021-03-19 北京字节跳动网络技术有限公司 Error detection method and device, terminal and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000089978A (en) * 1998-09-16 2000-03-31 Yaskawa Electric Corp Motion controller
AU2016210760A1 (en) * 2006-09-21 2016-08-25 Apple Inc. Dynamically adaptive scheduling system
CN112527302A (en) * 2019-09-19 2021-03-19 北京字节跳动网络技术有限公司 Error detection method and device, terminal and storage medium
CN111291374A (en) * 2020-02-20 2020-06-16 支付宝(杭州)信息技术有限公司 Application program detection method, device and equipment
CN112363753A (en) * 2020-11-17 2021-02-12 上海米哈游天命科技有限公司 Data verification method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN113127050A (en) 2021-07-16

Similar Documents

Publication Publication Date Title
CN107885762B (en) Intelligent big data system, method and equipment for providing intelligent big data service
CN113127050B (en) Application resource packaging process monitoring method, device, equipment and medium
US11119887B2 (en) Attaching metadata to lines of code for alerting to changes in the code
CN111984263B (en) Method, device, equipment and medium for running second system application on first system
US11036527B2 (en) Class splitting in object-oriented environments
CN109218393B (en) Push implementation method, device, equipment and computer storage medium
CN113392014A (en) Test case generation method and device, electronic equipment and medium
CN108089870A (en) Method and apparatus for repair application
CN110716804A (en) Method and device for automatically deleting useless resources, storage medium and electronic equipment
US11635948B2 (en) Systems and methods for mapping software applications interdependencies
CN113687880B (en) Method, device, equipment and medium for calling component
US20230236922A1 (en) Failure Prediction Using Informational Logs and Golden Signals
CN113127051B (en) Application resource packaging process monitoring method, device, equipment and medium
CN117134948A (en) Method, storage medium and device for realizing application firewall of embedded device
CN116051031A (en) Project scheduling system, medium and electronic equipment
CN113127001B (en) Method, device, equipment and medium for monitoring code compiling process
CN112506592B (en) Page loading time length determining method, device, equipment and storage medium
CN110262856B (en) Application program data acquisition method, device, terminal and storage medium
CN114510334A (en) Class instance calling method and device, electronic equipment and automatic driving vehicle
CN109634636B (en) Application processing method, device, equipment and medium
CN113127002B (en) Method, device, equipment and medium for monitoring code compiling process
CN113138793B (en) Application resource packaging process monitoring method, device, equipment and medium
CN113762871B (en) Production data control method, device, equipment and storage medium
CN114185608B (en) File descriptor detection method and device
CN112181761B (en) Program execution control method, program execution test device, code detection device, program execution equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant