Process configuration optimization method and device, electronic equipment, storage equipment and product
By judging and optimizing the sensitive object types of the target process, the error problem caused by uncertainty during the chip kernel simulation process is solved, the process's certainty and configuration efficiency are improved, and the process's normal operation is ensured during compilation and runtime.
Patent Information
- Application Number
- CN202411037175.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-11-29
AI Technical Summary
In the prior art, the chip core causes the simulation to report or run errors due to uncertainty during process definition and registration during simulation, and the manual code modification efficiency is low, which affects the integrity of the code block and programming flexibility.
By judging the type of sensitive object in the target process and performing configuration optimization according to its corresponding configuration rules, we ensure the correct configuration of sensitive object types and improve the process's certainty and configuration efficiency.
It realizes the normal operation of the process during the compilation and operation stages, improves configuration efficiency and flexibility, and solves the problems of simulation errors and operation errors.
Smart Images

Figure CN119045860A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of process configuration optimization, and in particular to a process configuration optimization method, device, electronic device, storage device and product. Background Art
[0002] As the computing complexity of future communication terminals and devices increases, the demand for integrated scale of real-time complex system chips will grow rapidly, and the determinism of the chip core construction phase will become increasingly important.
[0003] At present, in the prior art, during the simulation of the chip core, in order to solve the problem of simulation errors or errors during operation caused by uncertainties in the definition and registration of the process, manual code checking is usually used to directly modify the location where the code needs to be modified, and then the registration and configuration of the process is directly executed after the modification. This method of manually checking the code and modifying the code to implement the process configuration is not conducive to the block integrity of the code, nor is it conducive to the flexibility of programming, and the inspection efficiency is low. Summary of the invention
[0004] The present invention provides a process configuration optimization method, device, electronic device, storage device and product, which are used to solve the defects in the prior art that the uncertainty in the process definition and registration leads to simulation errors or errors in the running process, and realizes the judgment of the sensitive object type in the target process and the configuration optimization of the target process according to the configuration rules corresponding to the sensitive object type, thereby ensuring the correct configuration of the sensitive object type, improving the certainty of the process, enabling the target process to run normally in the compilation and running stages, and improving the efficiency and flexibility of the configuration.
[0005] The present invention provides a process configuration optimization method, comprising the following steps.
[0006] Identify the target process.
[0007] Determine the sensitive object type corresponding to the target process based on the statement of the target process when it is registered.
[0008] The target process is configured and optimized according to the sensitive object type and the configuration rules corresponding to the sensitive object type.
[0009] According to a process configuration optimization method provided by the present invention, sensitive object types include event classes, interface classes, and event search classes; configuration optimization is performed on a target process according to the sensitive object types and configuration rules corresponding to the sensitive object types, including: when it is determined that the sensitive object type is an event class, an interface class, or an event search class, configuration optimization is performed directly on the target process according to direct configuration rules.
[0010] According to a process configuration optimization method provided by the present invention, the sensitive object type also includes a standard port class, and the target process is configured and optimized according to the sensitive object type and the configuration rules corresponding to the sensitive object type, including: when it is determined that the sensitive object type is a standard port class, the target process is configured and optimized according to the direct configuration rule or the callback function configuration rule.
[0011] According to a process configuration optimization method provided by the present invention, the sensitive object type also includes a custom port class, and the target process is configured and optimized according to the sensitive object type and the configuration rules corresponding to the sensitive object type, including: when it is determined that the sensitive object type is a custom port class, determining whether the custom port class provides a first return value; wherein the first return value is a member function of the event search class; when it is determined that the custom port class provides the first return value, the target process is configured and optimized according to the direct configuration rule; when it is determined that the custom port class does not provide the first return value, determining whether the custom port class provides a second return value; wherein the second return value is a member function of the event class; when it is determined that the custom port class provides the second return value, the target process is configured and optimized according to the call callback function configuration rule or the call conversion logic configuration rule.
[0012] A method for optimizing process configuration provided by the present invention further includes: when it is determined that the custom port class does not provide a second return value, the target process does not perform configuration optimization.
[0013] According to a process configuration optimization method provided by the present invention, after the target process is configured and optimized according to the sensitive object type and the configuration rules corresponding to the sensitive object type, the method further includes: when it is determined that the target process is not an end process, returning to execute the step of determining the sensitive object type corresponding to the target process according to the target process, until the configuration optimization ends when it is determined that the target process is an end process; wherein the end process is the last process executed.
[0014] The present invention also provides a process configuration optimization device, which includes the following modules.
[0015] The process determination module is used to determine the target process.
[0016] The type determination module is used to determine the sensitive object type corresponding to the target process according to the statement of the target process when it is registered.
[0017] The configuration optimization module is used to optimize the configuration of the target process according to the sensitive object type and the configuration rules corresponding to the sensitive object type.
[0018] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a configuration optimization method for any of the above processes is implemented.
[0019] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the configuration optimization method of any of the above processes is implemented.
[0020] The present invention also provides a computer program product, including a computer program, which implements the configuration optimization method of any of the above processes when executed by a processor.
[0021] The process configuration optimization method, device, electronic device, storage device and product provided by the present invention determine the target process; determine the sensitive object type corresponding to the target process according to the statement of the target process when registering; and optimize the configuration of the target process according to the sensitive object type and the configuration rules corresponding to the sensitive object type. The technical solution of the present invention is used to solve the defects of the prior art that the uncertainty of the process during definition and registration leads to simulation errors or errors during operation. By judging the sensitive object type in the target process and optimizing the configuration of the target process according to the configuration rules corresponding to the sensitive object type, the correct configuration of the sensitive object type is guaranteed, the certainty of the process is improved, and the target process can run normally during the compilation and operation stages, thereby improving the efficiency and flexibility of the configuration. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0023] Figure 1 This is one of the flow charts of the process configuration optimization method provided by the present invention.
[0024] Figure 2 This is the second flow chart of the process configuration optimization method provided by the present invention.
[0025] Figure 3 It is a structural schematic diagram of the process configuration optimization device provided by the present invention.
[0026] Figure 4 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0027] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0028] Combine the following Figure 1-Figure 2 The process configuration optimization method provided by the present invention is described. The process configuration optimization method provided by the present invention can be applicable to the situation where the uncertainty problem in the process of SystemC kernel execution is optimized. The execution subject of the method can be an electronic device or a process configuration optimization device set in the electronic device. The process configuration optimization device can be implemented by software, hardware or a combination of both. Figure 1 It is one of the flow charts of the configuration optimization method of the process provided by the present invention, such as Figure 1 As shown, the method includes the following steps.
[0029] Step 101: Determine the target process.
[0030] In this step, the target process is any process in the process set, and the process set includes multiple processes, for example, it can be a SystemC process, which is not limited in this embodiment.
[0031] Specifically, a process is randomly determined from the process set as the target process, for example, it may be a SystemC process, and then the SystemC process is registered and registered into the simulation kernel.
[0032] Step 102: Determine the sensitive object type corresponding to the target process according to the statement of the target process when it is registered.
[0033] In this step, the target process has a sensitivity table in the statement when registering. The sensitivity table is a sensitive signal table that the target process depends on to start. Any change to the signal listed in the sensitive signal table will start the process and execute the corresponding sequential statements in the process. This embodiment does not limit this.
[0034] In this step, the sensitive object types include event class, interface class, event search class, standard port class and custom port class. The event class is an event class in SystemC, which is used to notify and synchronize events between modules during the simulation process, for example, it can be of sc_svent type; the interface class is a pure virtual class, which describes the user interface of the channel, such as the read method interface, the write method interface, the channel inheritance and interface, etc., and implements the interface function in the interface, for example, it can be of sc_interface type; the event search class is an event class in SystemC, and the object of the event search class has a characteristic that its execution is a callback function in the end stage (the SystemC standard is defined as the end_of_elaboration() stage, which belongs to the subdivision stage within the construction stage), so it can be guaranteed that it is executed only after all ports are bound, thereby ensuring that the simulation error problem exemplified in the background will not occur, for example, it can be of sc_event_finder type; the standard port class is used to transmit the user access requirements from the module to the channel, and it can be logically considered that the standard port class is a pointer to the channel, for example, it can be of standard sc_port type, which is not limited in this embodiment.
[0035] Specifically, after determining the target process, the sensitive object type corresponding to the target process is determined according to the statement of the target process when it is registered. When it is determined that the statement of the target process when it is registered is an event between notification and synchronization modules during the simulation process, the sensitive object type corresponding to the target process is determined to be an event class; when it is determined that the statement of the target process when it is registered describes the user interface of the channel, such as a read method interface, a write method interface, a channel inheritance and interface, etc., and implements the interface function in the interface, the sensitive object type corresponding to the target process is determined to be an interface class; when it is determined that the statement of the target process when it is registered is that the object has a characteristic that its execution is a callback function in the end stage (the SystemC standard defines it as the end_of_elaboration() stage, which belongs to the subdivision stage within the construction stage), the sensitive object type corresponding to the target process is determined to be an event search class; when it is determined that the statement of the target process when it is registered is used to transmit user access requirements from the module to the channel, it can be logically considered that the standard port class is a pointer to the channel, and the sensitive object type corresponding to the target process is determined to be a standard port class, otherwise, the sensitive object type corresponding to the target process is determined to be a custom port class.
[0036] Step 103: Optimize the configuration of the target process according to the sensitive object type and the configuration rules corresponding to the sensitive object type.
[0037] In this step, different sensitive object types may correspond to different configuration rules.
[0038] Specifically, after the sensitive object type of the target process is determined, the configuration rule corresponding to the sensitive object type is determined according to the sensitive object type, and then the configuration of the target process is optimized according to the sensitive object type and the configuration rule corresponding to the sensitive object type.
[0039] The advantage of this setting is that it performs automatic judgment when configuring the corresponding sensitive object type of the target process, executes different configuration rules according to different sensitive object types, and avoids uncertainty problems during the simulation operation.
[0040] In a specific embodiment, after the target process is configured and optimized according to the sensitive object type and the configuration rules corresponding to the sensitive object type, it also includes: when it is determined that the target process is not an end process, returning to execute the step of determining the sensitive object type corresponding to the target process according to the target process, until the configuration optimization is completed when it is determined that the target process is an end process; wherein the end process is the last process executed.
[0041] In this step, the ending process is the last process executed in the process set.
[0042] Specifically, after the target process is configured and optimized according to the sensitive object type and the configuration rules corresponding to the sensitive object type, it is determined whether the target process is the last process executed in the process set. If it is determined that the target process is the last process executed in the process set, the configuration optimization is determined to be completed. If it is determined that the target process is not the end process, the step of determining the sensitive object type corresponding to the target process according to the target process is returned to be executed until the configuration optimization is completed when it is determined that the target process is the end process.
[0043] The advantage of this setting is that when there are multiple processes, each process can be configured and optimized to improve the execution efficiency of the process.
[0044] The process configuration optimization method provided by the present invention determines the target process; determines the sensitive object type corresponding to the target process according to the statement of the target process when it is registered; and optimizes the configuration of the target process according to the sensitive object type and the configuration rules corresponding to the sensitive object type. The technical solution of the present invention is used to solve the defects of the prior art that the uncertainty of the process during definition and registration leads to simulation errors or errors during operation. By judging the sensitive object type in the target process and optimizing the configuration of the target process according to the configuration rules corresponding to the sensitive object type, the correct configuration of the sensitive object type is guaranteed, the certainty of the process is improved, and the target process can run normally during the compilation and operation stages, thereby improving the efficiency and flexibility of the configuration.
[0045] Figure 2This is the second flow chart of the process configuration optimization method provided by the present invention. The process configuration optimization method provided by the present invention can be applied to the case of performing configuration optimization on the uncertainty problem in the process of executing the process by the SystemC kernel. The execution subject of this method can be an electronic device or a process configuration optimization device set in the electronic device. The process configuration optimization device can be implemented by software, hardware or a combination of both. Figure 2 As shown, the target process is further optimized according to the sensitive object type and the configuration rules corresponding to the sensitive object type. The method includes the following steps.
[0046] Step 201: Determine the target process.
[0047] Specifically, a process is randomly determined from the process set as the target process.
[0048] Step 202: Determine the sensitive object type corresponding to the target process according to the statement of the target process when it is registered.
[0049] Specifically, after determining the target process, the sensitive object type corresponding to the target process is determined according to the statement of the target process when it is registered. When it is determined that the statement of the target process when it is registered is an event between notification and synchronization modules during the simulation process, the sensitive object type corresponding to the target process is determined to be an event class; when it is determined that the statement of the target process when it is registered describes the user interface of the channel, such as a read method interface, a write method interface, a channel inheritance and interface, etc., and implements the interface function in the interface, the sensitive object type corresponding to the target process is determined to be an interface class; when it is determined that the statement of the target process when it is registered is that the object has a characteristic that its execution is a callback function in the end stage (the SystemC standard defines it as the end_of_elaboration() stage, which belongs to the subdivision stage within the construction stage), the sensitive object type corresponding to the target process is determined to be an event search class; when it is determined that the statement of the target process when it is registered is used to transmit user access requirements from the module to the channel, it can be logically considered that the standard port class is a pointer to the channel, and the sensitive object type corresponding to the target process is determined to be a standard port class, otherwise, the sensitive object type corresponding to the target process is determined to be a custom port class.
[0050] Step 203: When it is determined that the sensitive object type is an event class, an interface class, or an event search class, directly perform configuration optimization on the target process according to the direct configuration rule.
[0051] In this step, the sensitive object types include event types, interface types, and event lookup types. The event type can be, for example, the sc_svent type; the interface type can be, for example, the sc_interface type; the event lookup type can be, for example, the sc_event_finder type, which is not limited in this embodiment. The direct configuration rule is to directly configure the target process.
[0052] Specifically, when it is determined that the sensitive object type is an event type, no modification needs to be made to the process. According to the direct configuration rule, the sensitive table of the event type does not need to be modified, and the sensitive table of the target process is directly configured and optimized.
[0053] The sensitive table not only supports channels, interfaces, ports, etc. provided in the SystemC library, but also supports the configuration of user-defined types, and has good scalability.
[0054] Exemplarily, sc_event event_a represents defining an event; SC_METHOD(test_method) represents the definition and registration of a process; sensitive<<event_a represents the definition of a sensitive table.
[0055] Specifically, when it is determined that the sensitive object type is an interface type, no modification needs to be made to the process. According to the direct configuration rule, the sensitive table of the interface type does not need to be modified, and the target process is directly configured and optimized.
[0056] Exemplarily, a process is sensitive to an interface, SC_METHOD(test_method_1); sensitive<<a certain interface, for example, sensitive<<sc_fifo_in_if <int>; The process is sensitive to a channel, SC_METHOD (test_method; sensitive << a channel, for example sensitive < <sc_fifo <int>。
[0057] Specifically, when it is determined that the sensitive object type is the event search type, no modification needs to be made to the process. According to the direct configuration rule, the sensitive table of the event search type does not need to be modified, and the sensitive table of the target process is directly configured and optimized.
[0058] Exemplarily, a process is sensitive to an event search type, sc_event_finder event_finder_a; SC_METHOD(test_method); sensitive << event_finder_a.
[0059] Step 204, when it is determined that the sensitive object type is the standard port type, configure and optimize the target process according to the direct configuration rule or the callback function configuration rule.
[0060] In this step, the sensitive object type also includes the standard port type. The callback function configuration rule is to explicitly call the end-of-elaboration () function of the SystemC kernel construction phase in the implementation part of the model code, and register and configure the process within the callback function. At this time, the binding of the ports is completed, and then the sensitive table of the target process is uniformly configured in the end-of-elaboration callback function provided by the system.
[0061] Specifically, in the first method, configure and optimize the target process according to the direct configuration rule. When it is determined that the sensitive object type is the standard port type, the standard port type is used as the sensitive object. The port classes in the SystemC standard library all provide member functions with a default return value of the event search type. Then, the member function with a default return value of the event search type can be used as the sensitive object, which is equivalent to the event search type, and the target process is directly configured according to the direct configuration rule.
[0062] Exemplarily, the target process is sensitive to a standard fifo port class object that provides a default return value of the event search type, such as a port object of the sc_fifo_in type: SC_METHOD(test_method); sensitive << fifo_port_in.data_written(); return value sc_event_finde type (correct); Since this fifo class also provides a member function with a return value of the event type, an incorrect example is as follows: sensitive << fifo_port_in.data_written_event(); return value sc_evnet type (incorrect).
[0063] Specifically, the second method optimizes the configuration of the target process according to the configuration rules of calling the callback function. When the standard port class is used as a sensitive object, the end phase callback function of the SystemC kernel construction phase (i.e., end_of_elaboration() function) is called in the implementation part of the model code, and the process registration and configuration are implemented in the callback function. At this time, the port binding is completed, and then the sensitivity table of the target process is uniformly configured in the end phase callback function of the construction phase provided by the system.
[0064] Exemplarily, the target process is sensitive to a standard fifo port class object that provides a default return value of the event class, and the process definition and the configuration process of the sensitivity table are placed inside the end_of_elaboration() function; void end_of_elaboration() SC_METHOD(test_method); sensitive< <m_in_clk.posedge_event();scevent}。
[0065] This embodiment does not limit the above two methods.
[0066] Step 205: When it is determined that the sensitive object type is a custom port class, determine whether the custom port class provides a first return value.
[0067] In this step, the sensitive object type also includes a custom port class, wherein the first return value is a member function of the event search class.
[0068] Specifically, when it is determined that the sensitive object type is a custom port class, it is determined whether the custom port class provides a first return value, and when it is determined that the custom port class provides a member function of the event search class, step 206 is continued. When it is determined that the custom port class does not provide a member function of the event search class, step 207 is continued.
[0069] Step 206: When it is determined that the custom port class provides the first return value, the target process is configured and optimized according to the direct configuration rule.
[0070] Specifically, when it is determined that the custom port class provides a member function of the event search class and the default return value is the event search class, the target process is configured and optimized according to the direct configuration rule.
[0071] Step 207: When it is determined that the custom port class does not provide the first return value, determine whether the custom port class provides a second return value.
[0072] In this step, the second return value is a member function of the event class.
[0073] Specifically, when it is determined that the custom port class does not provide a member function of the event search class and the default return value is the event search class, determine whether the custom port class provides a second return value; when it is determined that the custom port class provides a member function of the event class and the default return value is the event class, continue to execute step 208; when it is determined that the custom port class does not provide a member function of the event class and the default return value is the event class, continue to execute step 209.
[0074] Step 208: When it is determined that the custom port class provides the second return value, the target process is configured and optimized according to the calling callback function configuration rule or the calling conversion logic configuration rule.
[0075] In this step, the conversion logic configuration rule is called to modify the return value of the member function from the event type to the event search type, and the process is directly configured.
[0076] Specifically, when it is determined that the custom port class provides the second return value, the target process is configured and optimized according to the callback function configuration rule or the conversion logic configuration rule. Or it is necessary to explicitly call the end-stage callback function of the SystemC kernel construction phase (i.e., end_of_elaboration() function) in the implementation part of the model code, and implement the registration and configuration of the process in the callback function. At this time, the port binding is completed, and then the sensitivity table of the target process is uniformly configured in the callback function of the callback function configuration rule at the end stage of the construction phase provided by the system.
[0077] For example, the custom port class is a user_define_fifo type port object, which only provides the data_changed_event() interface method, and the return value is sc_event; the target process is configured and optimized according to the call conversion logic configuration rule: a new interface method data_changed() is added to convert the return value of data_changed_event() into the sc_event_finder type; sc_event_finder&data_changed()const{return*(new sc_event_finder_t <user_define_fifo_if <type>>(*this,&user_define_fifo_if <type>::data_changed_event));}。
[0078] Then configure the sensitivity list as follows: SC_METHOD(test_method_5); sensitive << user_define_fifo.data_changed(); Or optimize the configuration of the target process according to the rule of configuring the callback function call: void end_of_elaboration() { SC_METHOD(test_method_5); sensitive << user_define_fifo.data_changed_event(); / / sc event}。
[0079] Step 209, when it is determined that the custom port class does not provide the second return value, the target process does not perform configuration optimization.
[0080] Specifically, when it is determined that the custom port class does not provide the member function of the event class, the target process does not perform configuration optimization.
[0081] In a specific embodiment, there is no order of execution for Step 203, Step 204, and Steps 205 - 209. Corresponding steps are executed according to the determined type of sensitive object, and this embodiment does not limit this.
[0082] The process configuration optimization method provided by the present invention determines a target process; determines the sensitive object type corresponding to the target process according to a statement of the target process when it is registered; when it is determined that the sensitive object type is an event class, an interface class or an event search class, directly performs configuration optimization on the target process according to a direct configuration rule; when it is determined that the sensitive object type is a standard port class, performs configuration optimization on the target process according to a direct configuration rule or a call callback function configuration rule; when it is determined that the sensitive object type is a custom port class, determines whether the custom port class provides a first return value; when it is determined that the custom port class provides the first return value, performs configuration optimization on the target process according to the direct configuration rule; when it is determined that the custom port class does not provide the first return value, determines whether the custom port class provides a second return value; when it is determined that the custom port class provides the second return value, performs configuration optimization on the target process according to a call callback function configuration rule or a call conversion logic configuration rule; when it is determined that the custom port class does not provide the second return value, the target process is not configured. The technical solution of the present invention is used to solve the defects in the prior art that the uncertainty in the process definition and registration leads to simulation errors or errors in the running process. By judging the sensitive object type in the target process and optimizing the configuration of the target process according to the configuration rules corresponding to the sensitive object type, the correct configuration of the sensitive object type is ensured, the certainty of the process is improved, and the target process can run normally during the compilation and running stages, thereby improving the efficiency and flexibility of the configuration.
[0083] The following is a description of a process configuration optimization device provided by the present invention. The process configuration optimization device described below and the process configuration optimization method described above can correspond to each other.
[0084] Figure 3 is a schematic diagram of the structure of the process configuration optimization device provided by the present invention, referring to Figure 3 As shown, the process configuration optimization device 300 includes: a process determination module 301, a type determination module 302, and a configuration optimization module 303.
[0085] The process determination module 301 is used to determine the target process.
[0086] The type determination module 302 is used to determine the sensitive object type corresponding to the target process according to the statement of the target process when it is registered.
[0087] The configuration optimization module 303 is used to optimize the configuration of the target process according to the sensitive object type and the configuration rules corresponding to the sensitive object type.
[0088] In an exemplary embodiment, the sensitive object types include an event class, an interface class, and an event lookup class.
[0089] In an exemplary embodiment, the configuration optimization module 303 is specifically used to: when it is determined that the sensitive object type is an event class, an interface class, or an event search class, directly optimize the configuration of the target process according to the direct configuration rule.
[0090] In an example embodiment, the sensitive object type also includes a standard port class.
[0091] In an exemplary embodiment, the configuration optimization module 303 is specifically used to: when it is determined that the sensitive object type is a standard port class, optimize the configuration of the target process according to a direct configuration rule or a callback function configuration rule.
[0092] In an exemplary embodiment, the sensitive object type also includes a custom port class.
[0093] In an exemplary embodiment, the configuration optimization module 303 is specifically used to: when it is determined that the sensitive object type is a custom port class, determine whether the custom port class provides a first return value; wherein the first return value is a member function of the event search class; when it is determined that the custom port class provides the first return value, optimize the target process according to the direct configuration rule; when it is determined that the custom port class does not provide the first return value, determine whether the custom port class provides a second return value; wherein the second return value is a member function of the event class; when it is determined that the custom port class provides the second return value, optimize the target process according to the call callback function configuration rule or the call conversion logic configuration rule.
[0094] In an exemplary embodiment, the device further includes: an optimization stopping module. The optimization stopping module is used to: when it is determined that the custom port class does not provide the second return value, the target process does not perform configuration optimization.
[0095] In an exemplary embodiment, the device further includes: an optimization loop module. The optimization loop module is used to: after optimizing the configuration of the target process according to the sensitive object type and the configuration rule corresponding to the sensitive object type, when it is determined that the target process is not an end process, return to execute the step of determining the sensitive object type corresponding to the target process according to the target process, until the configuration optimization ends when it is determined that the target process is an end process; wherein the end process is the last process executed.
[0096] The device of this embodiment can be used to execute the method of any embodiment in the embodiment of the process configuration optimization method side. Its specific implementation process and technical effects are similar to those in the embodiment of the process configuration optimization method side. For details, please refer to the detailed description in the embodiment of the process configuration optimization method side, which will not be repeated here.
[0097] Figure 4 is a schematic diagram of the structure of the electronic device provided by the present invention, such as Figure 4 As shown, the electronic device may include: a processor 410, a communication interface 420, a memory 430 and a communication bus 440, wherein the processor 410, the communication interface 420 and the memory 430 communicate with each other through the communication bus 440. The processor 410 may call the logic instructions in the memory 430 to execute the configuration optimization method of the process, the method comprising: determining the target process; determining the sensitive object type corresponding to the target process according to the statement of the target process when it is registered; and optimizing the configuration of the target process according to the sensitive object type and the configuration rules corresponding to the sensitive object type.
[0098] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0099] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the process configuration optimization method provided by the above methods, and the method includes: determining a target process; determining a sensitive object type corresponding to the target process based on a statement of the target process when registering; and optimizing the configuration of the target process based on the sensitive object type and the configuration rules corresponding to the sensitive object type.
[0100] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the configuration optimization method of the process provided by the above-mentioned methods. The method includes: determining a target process; determining a sensitive object type corresponding to the target process according to a statement of the target process when the target process is registered; and optimizing the configuration of the target process according to the sensitive object type and the configuration rules corresponding to the sensitive object type.
[0101] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0102] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0103] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.< / type> < / type> < / int> < / int>
Claims
1. A process configuration optimization method, characterized in that: include: Identify target processes; Determine the sensitive object type corresponding to the target process according to the statement of the target process when it is registered; The target process is configured and optimized according to the sensitive object type and the configuration rule corresponding to the sensitive object type.
2. The process configuration optimization method according to claim 1, characterized in that: The sensitive object types include event class, interface class and event search class; The optimizing the configuration of the target process according to the sensitive object type and the configuration rule corresponding to the sensitive object type includes: When it is determined that the sensitive object type is the event class, the interface class or the event search class, the target process is directly configured and optimized according to a direct configuration rule.
3. The process configuration optimization method according to claim 2, characterized in that: The sensitive object type also includes a standard port class, and the configuration optimization of the target process according to the sensitive object type and the configuration rule corresponding to the sensitive object type includes: When it is determined that the sensitive object type is the standard port class, the target process is configured and optimized according to the direct configuration rule or the callback function calling configuration rule.
4. The process configuration optimization method according to claim 3, characterized in that: The sensitive object type also includes a custom port class, and the configuration optimization of the target process according to the sensitive object type and the configuration rule corresponding to the sensitive object type includes: When it is determined that the sensitive object type is the custom port class, determining whether the custom port class provides a first return value; wherein the first return value is a member function of the event search class; When it is determined that the custom port class provides the first return value, optimizing the configuration of the target process according to the direct configuration rule; When it is determined that the custom port class does not provide the first return value, determining whether the custom port class provides a second return value; wherein the second return value is a member function of the event class; When it is determined that the custom port class provides the second return value, the target process is configured and optimized according to the calling callback function configuration rule or the calling conversion logic configuration rule.
5. The process configuration optimization method according to claim 4, characterized in that: Also includes: When it is determined that the custom port class does not provide the second return value, the target process does not perform configuration optimization.
6. The process configuration optimization method according to claim 1, characterized in that: After optimizing the configuration of the target process according to the sensitive object type and the configuration rule corresponding to the sensitive object type, the method further includes: When it is determined that the target process is not an end process, return to the step of determining the sensitive object type corresponding to the target process according to the target process, and the configuration optimization ends when it is determined that the target process is the end process; wherein the end process is the last process executed.
7. A process configuration optimization device, characterized in that: include: A process determination module, used to determine a target process; A type determination module, used to determine the sensitive object type corresponding to the target process according to the statement of the target process when it is registered; A configuration optimization module is used to optimize the configuration of the target process according to the sensitive object type and the configuration rules corresponding to the sensitive object type.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the configuration optimization method of the process as claimed in any one of claims 1 to 6 is implemented.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the configuration optimization method of the process according to any one of claims 1 to 6 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the configuration optimization method of the process according to any one of claims 1 to 6 is implemented.
