CN116048522A - Function set construction method, information processing method and device and electronic equipment - Google Patents

Function set construction method, information processing method and device and electronic equipment Download PDF

Info

Publication number
CN116048522A
CN116048522A CN202310014837.0A CN202310014837A CN116048522A CN 116048522 A CN116048522 A CN 116048522A CN 202310014837 A CN202310014837 A CN 202310014837A CN 116048522 A CN116048522 A CN 116048522A
Authority
CN
China
Prior art keywords
function
information
target
name
source code
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.)
Pending
Application number
CN202310014837.0A
Other languages
Chinese (zh)
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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202310014837.0A priority Critical patent/CN116048522A/en
Publication of CN116048522A publication Critical patent/CN116048522A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/42Syntactic analysis
    • G06F8/427Parsing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3604Software analysis for verifying properties of programs

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Stored Programmes (AREA)

Abstract

The disclosure provides a method and a device for constructing a function set, an information processing method and a device, and electronic equipment, and can be applied to the technical field of computers and the financial field. The construction method of the function set comprises the following steps: in response to receiving a function set construction instruction, processing a plurality of pieces of source code information to be processed in the function set construction instruction to obtain function information corresponding to the source code information to be processed, wherein the source code information to be processed comprises at least one function name, and the function information comprises position information corresponding to the at least one function name, type information corresponding to the at least one function name and resource occupation information; determining function call relation information according to the position information corresponding to each of the at least one function name; and constructing a function set according to the function call relation information, the type information corresponding to the at least one function name and the resource occupation information corresponding to the at least one function name.

Description

Function set construction method, information processing method and device and electronic equipment
Technical Field
The present disclosure relates to the field of computer technology and the field of finance, and more particularly, to a method of constructing a function set, an information processing method and apparatus, an electronic device, a computer-readable storage medium, and a computer program product.
Background
With the development of computer technology, code (C) applied to an operating system o de) and programs (programs) are also increasing.
Code may refer to source files written by a programmer in a language supported by a development tool, and code may be used to describe a program. A program may refer to instructions that a computer can recognize and execute, and that the program may be used to characterize the actual operation described by the code. The program can be obtained by compiling or interpreting the code.
In the process of implementing the disclosed concept, the inventor finds that at least the following problems exist in the related art: in the actual running process of the operating system, because the developer does not have operating system knowledge, the efficiency and the accuracy of the abnormal code positioning are difficult to ensure.
Disclosure of Invention
In view of this, the present disclosure provides a method for constructing a function set, an information processing method and apparatus, an electronic device, a computer-readable storage medium, and a computer program product.
According to one aspect of the present disclosure, there is provided a method for constructing a function set, including:
processing source code information to be processed in the function set construction instruction in response to receiving the function set construction instruction to obtain function information corresponding to the source code information to be processed, wherein the source code information to be processed comprises at least one function name, and the function information comprises position information corresponding to each of the at least one function name, type information corresponding to each of the at least one function name and resource occupation information corresponding to each of the at least one function name;
determining function call relation information according to the position information corresponding to at least one function name; and
and constructing a function set according to the function call relation information, the type information corresponding to the at least one function name and the resource occupation information corresponding to the at least one function name.
According to an embodiment of the present disclosure, constructing the function set according to the function call relation information, the type information corresponding to each of the at least one function name, and the resource occupation information corresponding to each of the at least one function name includes:
Sequentially determining source information corresponding to each of the at least one function name according to the function call relation information and the type information corresponding to each of the at least one function name;
for a function corresponding to each of the at least one function name,
calling a preset function to process the function according to the source information and the resource occupation information to obtain a processing result corresponding to the function; and
and constructing the function set according to the processing result corresponding to the function.
According to an embodiment of the present disclosure, the above-described type information includes a first function type and a second function type.
According to an embodiment of the present disclosure, the sequentially determining the source information corresponding to each of the at least one function name according to the function call relation information and the type information corresponding to each of the at least one function name includes:
for a function corresponding to each of the at least one function name,
determining the source information of the function as a kernel under the condition that the type information characterizes the function as belonging to a first function type;
under the condition that the type information characterizes that the function belongs to a second function type, source identification detection is carried out on the function to obtain a source identification detection result;
Under the condition that the source identification is detected by the source identification detection result characterization, determining the source information of the function as a dynamic link library; and
and determining the source information of the function as an executable file under the condition that the source identification is not detected by the source identification detection result.
According to an embodiment of the present disclosure, the method for constructing a function set further includes:
when the source information of the function is determined to be the executable file, performing character detection on the function name corresponding to the function to obtain a character detection result; and
and under the condition that the character detection result represents that the function name comprises a first preset character, determining that the function call relation information comprises the dynamic link library.
According to an embodiment of the disclosure, the source information includes a kernel, a dynamic link library, and an executable file, and the preset functions include a first preset function and a second preset function.
According to an embodiment of the present disclosure, calling a preset function to process the function according to the source information and the resource occupation information, and obtaining a processing result corresponding to the function includes:
And according to the source information and the resource occupation information, calling the first preset function to process the function, and obtaining a first processing result corresponding to the function.
According to an embodiment of the present disclosure, constructing the function set according to the processing result corresponding to the function includes:
in case it is determined that the above-mentioned first processing result satisfies the first preset condition,
constructing the function set to be searched according to the function of which the source information is the kernel;
constructing a candidate dynamic link function set to be searched according to the source information as a function of the dynamic link library; and
and constructing the dynamic link function set to be searched according to the candidate dynamic link function set to be searched.
According to an embodiment of the present disclosure, the method for constructing a function set further includes:
when the first processing result is determined to not meet the first preset condition, calling the second preset function to process the function, and obtaining a second processing result corresponding to the function;
determining a calling function according to the function calling relation information under the condition that the second processing result meets a second preset condition;
According to the source information of the calling function and the resource occupation information of the calling function, calling the preset function to process the calling function, and obtaining a processing result corresponding to the calling function; and
and constructing the function set according to the processing result corresponding to the calling function.
According to an embodiment of the disclosure, the method for constructing a function set further includes, before the processing, in response to receiving a construction instruction for the function set, the source code information to be processed in the construction instruction to obtain function information corresponding to the source code information to be processed:
acquiring original source code information to be processed, wherein the original source code information to be processed comprises at least one original source code sub-information to be processed; and
for each of the at least one original pending source code sub-information,
and in response to detecting that the original to-be-processed source code sub-information comprises a second preset character, determining the original to-be-processed source code sub-information as the to-be-processed source code information.
According to an embodiment of the present disclosure, determining the function call relationship information according to the location information corresponding to each of the at least one function name includes:
Determining association relation information corresponding to at least one function name according to the position information corresponding to the at least one function name; and
and determining the function call relation information according to the association relation information corresponding to at least one function name.
According to an embodiment of the present disclosure, the processing, in response to receiving a build instruction for a function set, to-be-processed source code information in the build instruction, to obtain function information corresponding to the to-be-processed source code information includes:
and calling an analysis tool to analyze the to-be-processed source code information to obtain the function information corresponding to the to-be-processed source code information.
According to an aspect of the present disclosure, there is provided an information processing method including:
in response to receiving an information processing request, acquiring target source code information to be processed and a target function set according to the information processing request, wherein the information processing request comprises target source code position information corresponding to the target source code information to be processed, and the target function set is associated with the target source code position information;
Processing the target to-be-processed source code information according to the target function set to obtain at least one target function name; and
determining target output information according to the at least one target function name, wherein the target output information comprises target position information corresponding to the at least one target function name, target type information corresponding to the at least one target function name and target resource occupation information corresponding to the at least one target function name;
according to an embodiment of the present disclosure, the above-described objective function set is constructed using a construction method according to the above-described function set.
According to an embodiment of the present disclosure, the set of objective functions includes a set of dynamic link functions to be searched and a set of functions to be searched.
According to an embodiment of the present disclosure, processing the target to-be-processed source code information according to the set of objective functions to obtain at least one objective function name includes:
processing the target to-be-processed source code information according to the to-be-searched function set to obtain at least one first intermediate target function name;
Processing the at least one first intermediate objective function name according to the dynamic link function set to be searched to obtain a second intermediate objective function name corresponding to the at least one first intermediate objective function name; and
and determining the at least one objective function name according to the at least one first intermediate objective function name and the second intermediate objective function names corresponding to the at least one first intermediate objective function name.
According to an embodiment of the disclosure, the processing the at least one first intermediate objective function name according to the set of dynamic link functions to be searched to obtain a second intermediate objective function name corresponding to the at least one first intermediate objective function name includes:
for each of the at least one first intermediate object function name,
according to the dynamic link function set to be searched, matching a first intermediate objective function name corresponding to the first intermediate objective function to obtain a matching result; and
and under the condition that the matching result represents that the dynamic link function set to be searched comprises the first intermediate objective function name, determining the second intermediate objective function name associated with the first intermediate objective function name according to the dynamic link function set to be searched.
According to another aspect of the present disclosure, there is provided a function set constructing apparatus, including:
the first processing module is used for processing the source code information to be processed in the function set construction instruction in response to receiving the function set construction instruction to obtain function information corresponding to the plurality of source code information to be processed, wherein the source code information to be processed comprises at least one function name, and the function information comprises position information corresponding to the at least one function name, type information corresponding to the at least one function name and resource occupation information corresponding to the at least one function name;
the first determining module is used for determining function call relation information according to the position information corresponding to each of the at least one function name; and
and the construction module is used for constructing a function set according to the function call relation information, the type information corresponding to the at least one function name and the resource occupation information corresponding to the at least one function name.
According to another aspect of the present disclosure, there is provided an information processing apparatus including:
The first acquisition module is used for responding to the received information processing request, acquiring target source code information to be processed and a target function set according to the information processing request, wherein the information processing request comprises target source code position information corresponding to the target source code information to be processed, and the target function set is associated with the target source code position information;
the second processing module is used for processing the target source code information to be processed according to the target function set to obtain at least one target function name; and
and the second determining module is used for determining target output information according to the at least one target function name, wherein the target output information comprises target position information corresponding to each of the at least one target function name, target type information corresponding to each of the at least one target function name and target resource occupation information corresponding to each of the at least one target function name.
According to an embodiment of the present disclosure, the above-described objective function set is constructed using a construction method according to the above-described function set.
According to another aspect of the present disclosure, there is provided an electronic device including:
One or more processors;
a memory for storing one or more instructions,
wherein the one or more instructions, when executed by the one or more processors, cause the one or more processors to implement a method as described in the present disclosure.
According to another aspect of the present disclosure, there is provided a computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to implement a method as described in the present disclosure.
According to another aspect of the present disclosure, there is provided a computer program product comprising computer executable instructions which, when executed, are adapted to carry out the method as described in the present disclosure.
According to the embodiment of the disclosure, since the function information is obtained by processing the source code information to be processed in the function set construction instruction, the location information, the type information, and the resource occupation information corresponding to each of the at least one function name can be automatically determined. On the basis, because the function call relation information is determined according to the position information corresponding to at least one function name, and the function set is constructed according to the function call relation information, the type information corresponding to at least one function name and the resource occupation information, the technical problem that the efficiency and the accuracy of abnormal code positioning are difficult to ensure due to the fact that developers do not have operating system knowledge in the related art is at least partially solved, the communication cost of the developers and system operation and maintenance personnel is reduced, and the efficiency and the accuracy of abnormal code positioning are further improved.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent from the following description of embodiments thereof with reference to the accompanying drawings in which:
FIG. 1 schematically illustrates a system architecture of a building method, an information processing method, to which a set of functions may be applied, according to an embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow chart of a method of building a set of functions according to an embodiment of the disclosure;
FIG. 3 schematically illustrates an example schematic diagram of a construction process of a function set according to an embodiment of the disclosure;
FIG. 4 schematically illustrates an example schematic diagram of sequentially determining source information corresponding to each of at least one function name according to function call relationship information and type information corresponding to each of at least one function name according to an embodiment of the present disclosure;
FIG. 5 schematically illustrates an example schematic diagram of constructing a function set from function call relationship information, type information corresponding to each of at least one function name, and resource occupancy information corresponding to each of at least one function name, according to an embodiment of the present disclosure;
FIG. 6 schematically illustrates a flow chart of an information processing method according to an embodiment of the present disclosure;
FIG. 7 schematically illustrates an example schematic diagram of an information processing process according to an embodiment of the present disclosure;
FIG. 8 schematically illustrates a block diagram of a construction apparatus of a function set according to an embodiment of the disclosure;
fig. 9 schematically shows a block diagram of an information processing apparatus according to an embodiment of the present disclosure; and
fig. 10 schematically shows a block diagram of an electronic device adapted to implement a method of constructing a set of functions, a method of processing information, according to an embodiment of the disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is only exemplary and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the present disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. In addition, in the following description, descriptions of well-known structures and techniques are omitted so as not to unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and/or the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It should be noted that the terms used herein should be construed to have meanings consistent with the context of the present specification and should not be construed in an idealized or overly formal manner.
Where expressions like at least one of "A, B and C, etc. are used, the expressions should generally be interpreted in accordance with the meaning as commonly understood by those skilled in the art (e.g.," a system having at least one of A, B and C "shall include, but not be limited to, a system having a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.). Where a formulation similar to at least one of "A, B or C, etc." is used, in general such a formulation should be interpreted in accordance with the ordinary understanding of one skilled in the art (e.g. "a system with at least one of A, B or C" would include but not be limited to systems with a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
In the technical scheme of the disclosure, the acquisition, storage, application and the like of the related personal information of the user all conform to the regulations of related laws and regulations, necessary security measures are taken, and the public order harmony is not violated.
In the technical scheme of the disclosure, the authorization or consent of the user is obtained before the personal information of the user is obtained or acquired.
A code may be a regular hierarchy of information represented in discrete form by characters, symbols, or signal symbols. The program can be run on an electronic computer and is an informatization tool meeting certain requirements of people.
For the problem that it is difficult to locate an abnormal code position where the resource utilization rate of the program is too high due to code abnormality, the following two methods are generally adopted in the related art:
mode one: the developer analyzes the application log, determines the current business, and analyzes the processing logic of the source code according to the development experience of the developer so as to realize the positioning of the abnormal code.
Mode two: and the developer performs problem reproduction according to the service scene of the actual problem, and the system operation and maintenance personnel monitors and analyzes the problem process to realize the positioning of the abnormal code.
However, in implementing the concepts of the present disclosure, the inventors found that there are at least the following problems in the related art: in the actual running process of the operating system, the program is easy to have the problem of over-high resource utilization rate due to possible defects of codes. In addition, because the developer does not have operating system knowledge, it is difficult to locate the location of the abnormal code.
In order to at least partially solve the technical problems in the related art, the disclosure provides a method for constructing a function set, an information processing method, an information processing device and electronic equipment, which can be applied to the field of computer technology and the field of finance. The construction method of the function set comprises the following steps: in response to receiving a function set construction instruction, processing source code information to be processed in the function set construction instruction to obtain function information corresponding to the source code information to be processed, wherein the source code information to be processed comprises at least one function name, and the function information comprises position information corresponding to the at least one function name, type information corresponding to the at least one function name and resource occupation information; determining function call relation information according to the position information corresponding to each of the at least one function name; and constructing a function set according to the function call relation information, the type information corresponding to at least one function name and the resource occupation information corresponding to at least one function name.
It should be noted that the method for constructing a function set, the method for processing information and the device for processing information provided in the embodiments of the present disclosure may be used in the computer technical field and the financial field, for example, in the network technical field. The method for constructing the function set, the method for processing the information and the device for processing the information provided by the embodiment of the disclosure can be applied to any field except the technical field of computers and the financial field, for example, the technical field of information security. The application fields of the method for constructing the function set, the method for processing information and the device provided by the embodiment of the disclosure are not limited.
Fig. 1 schematically illustrates a system architecture of a construction method, an information processing method, to which a function set can be applied according to an embodiment of the present disclosure. It should be noted that fig. 1 is only an example of a system architecture to which embodiments of the present disclosure may be applied to assist those skilled in the art in understanding the technical content of the present disclosure, but does not mean that embodiments of the present disclosure may not be used in other devices, systems, environments, or scenarios.
As shown in fig. 1, a system architecture 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used as a medium to provide communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired and/or wireless communication links, and the like.
The user may interact with the server 105 via the network 104 using the terminal devices 101, 102, 103 to receive or send messages or the like. Various communication client applications may be installed on the terminal devices 101, 102, 103, such as shopping class applications, web browser applications, search class applications, instant messaging tools, mailbox clients and/or social platform software, to name a few.
The terminal devices 101, 102, 103 may be a variety of electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 105 may be a server providing various services, such as a background management server (by way of example only) providing support for websites browsed by users using the terminal devices 101, 102, 103. The background management server may analyze and process the received data such as the user request, and feed back the processing result (e.g., the web page, information, or data obtained or generated according to the user request) to the terminal device.
It should be noted that, the method for constructing a function set and the method for processing information provided by the embodiments of the present disclosure may be generally executed by the server 105. Accordingly, the construction apparatus of the function set and the information processing apparatus provided by the embodiments of the present disclosure may be generally disposed in the server 105. The construction method of the function set, the information processing method provided by the embodiments of the present disclosure may also be performed by a server or a server cluster that is different from the server 105 and is capable of communicating with the terminal devices 101, 102, 103 and/or the server 105. Accordingly, the construction means of the function set, the information processing means provided by the embodiments of the present disclosure may also be provided in a server or a server cluster different from the server 105 and capable of communicating with the terminal devices 101, 102, 103 and/or the server 105. Alternatively, the construction method of the function set and the information processing method provided by the embodiments of the present disclosure may be performed by the terminal apparatus 101, 102, or 103, or may be performed by another terminal apparatus different from the terminal apparatus 101, 102, or 103. Accordingly, the construction means and the information processing means of the function set provided by the embodiments of the present disclosure may also be provided in the terminal device 101, 102, or 103, or in another terminal device different from the terminal device 101, 102, or 103.
It should be understood that the number of terminal devices, networks and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
It should be noted that the sequence numbers of the respective operations in the following methods are merely representative of the operations for the purpose of description, and should not be construed as representing the order of execution of the respective operations. The method need not be performed in the exact order shown unless explicitly stated.
Fig. 2 schematically illustrates a flow chart of a method of constructing a set of functions according to an embodiment of the disclosure.
As shown in fig. 2, the method 200 of constructing the function set includes operations S210 to S230.
In operation S210, in response to receiving the function set construction instruction, the source code information to be processed in the function set construction instruction is respectively processed, so as to obtain function information corresponding to the source code information to be processed. The source code information to be processed includes at least one function name, and the function information includes location information corresponding to each of the at least one function name, type information corresponding to each of the at least one function name, and resource occupation information corresponding to each of the at least one function name.
In operation S220, function call relationship information is determined according to the location information corresponding to each of the at least one function name.
In operation S230, a function set is constructed according to the function call relationship information, the type information corresponding to each of the at least one function name, and the resource occupation information corresponding to each of the at least one function name.
According to the embodiment of the disclosure, the code for generating the function set construction instruction may be written in the script in advance, and the target terminal may run the script to generate the function set construction instruction in response to detecting the function set construction operation performed by the user using the target terminal. The target terminal can send the function set construction instruction to the server so that the server can process the source code information to be processed corresponding to the function set construction operation according to the function set construction instruction to construct and obtain the function set.
According to the embodiment of the disclosure, after receiving the function set construction instruction, the source code position information to be processed may be determined according to the function set construction instruction. And acquiring initial source code information to be processed from the data source according to the source code position information to be processed. The data source may include at least one of: local databases, cloud databases, and network resources. For example, a data interface may be invoked. And acquiring the initial source code information to be processed from the data source by utilizing the data interface.
According to the embodiment of the disclosure, after the initial to-be-processed source code information is obtained, the initial to-be-processed source code information may be processed to obtain the to-be-processed source code information. The source code information to be processed may refer to source code information including at least one function name. Each of the at least one function name may be used to indicate a different function. The functions may include a C language function (C Language Function). For example, the C language function may include at least one of: character library functions, mathematical functions, directory functions, process functions, diagnostic functions, interface subroutine functions, operation functions, and time-date functions.
According to the embodiment of the disclosure, after the source code information to be processed is obtained, a first preset analysis tool may be called, and at least one function name in the source code information to be processed is respectively processed to obtain resource occupation information corresponding to the at least one function name. The resource occupation information may be used to characterize resource information occupied by a function corresponding to the function name. The resources may include at least one of: resources associated with a central processing unit (Central Processing Unit, CPU), resources associated with a graphics processor (Graphics Processing Unit, GPU), and resources associated with a Field programmable gate array (Field-Programmable Gate Array, FPGA), etc.
According to the embodiment of the disclosure, after the source code information to be processed is obtained, a second preset analysis tool may be called, and at least one function name in the source code information to be processed is respectively processed to obtain location information and type information corresponding to the at least one function name. The location information may be used to characterize where the function corresponding to the function name is located in the source code information to be processed. The type information may be used to characterize a function type that the function corresponding to the function name has. The first preset parsing tool and the second preset parsing tool may be set according to actual service requirements, which is not limited herein. For example, the first preset resolving tool and the second preset resolving tool may be the same. Alternatively, the first preset resolving tool and the second preset resolving tool may be different.
According to an embodiment of the present disclosure, after obtaining the location information, the type information, and the resource occupation information, respectively corresponding to the at least one function name, the function call relationship information may be determined according to the location information, respectively corresponding to the at least one function name. The function call relationship information may be used to characterize call relationships between the target function and other functions. For example, the function call relationship information may include a function call stack. A function call stack may refer to a memory region used to save the running state of a function. In a function call stack, a calling function (i.e., a Caller) and a called function (i.e., a Callee) may be stacked according to a call relationship, growing from a high address to a low address of a memory.
According to the embodiment of the disclosure, after the function call relation information is obtained, a function set may be constructed according to the function call relation information, the type information and the resource occupation information. The set of functions may include at least one function. The set of functions may include at least one of: the method comprises a function set to be searched, a candidate dynamic link function set to be searched and a dynamic link function set to be searched.
According to the embodiment of the disclosure, since the function information is obtained by processing the source code information to be processed in the function set construction instruction, the location information, the type information, and the resource occupation information corresponding to each of the at least one function name can be automatically determined. On the basis, because the function call relation information is determined according to the position information corresponding to at least one function name, and the function set is constructed according to the function call relation information, the type information corresponding to at least one function name and the resource occupation information, the technical problem that the efficiency and the accuracy of abnormal code positioning are difficult to ensure due to the fact that developers do not have operating system knowledge in the related art is at least partially solved, the communication cost of the developers and system operation and maintenance personnel is reduced, and the efficiency and the accuracy of abnormal code positioning are further improved.
The method 200 for constructing a function set according to an embodiment of the present invention is further described below with reference to fig. 3 to 5.
According to an embodiment of the present disclosure, the method for constructing a function set described above may further include the following operations.
And acquiring original source code information to be processed. The original source code information to be processed includes at least one original source code sub-information to be processed. For each of the at least one original to-be-processed source code sub-information, determining the original to-be-processed source code sub-information as to-be-processed source code information in response to detecting that the original to-be-processed source code sub-information includes a second preset character.
According to the embodiment of the disclosure, the code for generating the to-be-processed source code information acquisition instruction can be written in the script in advance, and the target terminal can run the script to generate the to-be-processed source code information acquisition instruction in response to detection of the to-be-processed source code information acquisition operation initiated by the user by using the target terminal. The target terminal can send the to-be-processed source code information acquisition instruction to the server so that the server can process the original to-be-processed source code information corresponding to the to-be-processed source code information acquisition operation according to the to-be-processed source code information acquisition instruction to obtain the to-be-processed source code information. For example, the to-be-processed source code information acquisition instruction may be sent to a Linux system command execution function, and the command execution function is called to acquire the to-be-processed source code information.
According to the embodiment of the disclosure, after receiving the to-be-processed source code information acquisition instruction, the position information of the original to-be-processed source code can be determined according to the to-be-processed source code information instruction. And acquiring the original source code information to be processed from the data source according to the position information of the original source code to be processed. The source code information obtaining instruction to be processed can be set according to actual service requirements, and is not limited herein. For example, the source code information retrieval instruction to be processed may include at least one of: sampling frequency, acquisition time, process identification number and location information.
For example, the source code information acquisition instruction to be processed may be "a perfecrod-F99-a-g-p 15078-sleep 60&", in which case "—f99" may characterize the sampling frequency as 99 hz, "-sleep 60" may characterize the acquisition time as 60 seconds, and "—p15078" may characterize the process identification number as 15078.
According to the embodiment of the disclosure, after the original source code information to be processed is obtained, for at least one original source code sub-information to be processed in the original source code information to be processed, character detection processing may be performed on each original source code sub-information to be processed, so as to obtain a first detection result. And under the condition that the first detection result characterizes the original source code sub-information to be processed comprises a second preset character, the original source code sub-information to be processed can be determined to be the source code information to be processed. The second preset character may be set according to an actual service requirement, which is not limited herein. For example, the second preset character may include: "%", "[" and "]".
According to an embodiment of the present disclosure, in a case where the first detection result characterizes the original to-be-processed source code sub-information including the third preset character, the original to-be-processed source code sub-information may be determined as annotation information. The third preset character may be set according to an actual service requirement, which is not limited herein. For example, the third preset character may include "#".
According to embodiments of the present disclosure, after the source code information to be processed is obtained, the source code information to be processed may be stored into a data source. The data source may include at least one of: local databases, cloud databases, and network resources. For example, the source code information to be processed may be named with a process number +. Data suffix and stored in an info folder.
According to the embodiment of the disclosure, since the to-be-processed source code information is determined according to the original to-be-processed source code sub-information under the condition that the original to-be-processed source code sub-information is detected to comprise the second preset character, the to-be-processed source code information can be automatically determined according to the original to-be-processed source code information, and therefore the efficiency of acquiring the to-be-processed source code information is improved.
According to an embodiment of the present disclosure, operation S210 may include the following operations.
And calling an analysis tool to analyze the source code information to be processed to obtain function information corresponding to the source code information to be processed.
According to the embodiment of the disclosure, the parsing tool may be set according to actual service requirements, which is not limited herein, so long as the parsing tool is capable of parsing the source code information to be processed. For example, the parsing tool may be a Linux performance analysis tool perf. The call situation and the resource consumption situation in the process can be obtained by using the perf. If the parsing tool is a perf, the perf may be used to perform a first parsing process on the source code information to be processed, so as to obtain text information corresponding to the source code information to be processed. And performing second analysis processing on the text information by using the perf to obtain function information corresponding to the source code information to be processed.
According to an embodiment of the present disclosure, operation S220 may include the following operations.
And determining association relation information corresponding to each of the at least one function name according to the position information corresponding to each of the at least one function name. And determining function call relation information according to the association relation information corresponding to at least one function name.
According to an embodiment of the present disclosure, after obtaining the location information corresponding to each of the at least one function name, the association relationship information corresponding to each of the at least one function name may be determined according to the location information corresponding to each of the at least one function name. The association relationship information may be used to characterize an association relationship between a function corresponding to at least one function name and other functions. For example, the association relation information corresponding to the function a may include the function B and the function C.
According to an embodiment of the present disclosure, after determining the association relationship information corresponding to each of the at least one function name, the function call relationship information may be determined according to the association relationship information corresponding to each of the at least one function name. For example, the function call relationship information corresponding to function a may include function a- > function B- > function C, in which case it may be characterized that function a called function B and function B called function C.
FIG. 3 schematically illustrates an example schematic diagram of a construction process of a function set according to an embodiment of the disclosure.
As shown in fig. 3, in 300, raw source code information 301 to be processed may be obtained. The original source code information 301 may include at least one original source code sub-information 3011. In response to detecting that the original to-be-processed source code sub-information 3011 includes the second preset character, the original to-be-processed source code sub-information 3011 may be determined to be the to-be-processed source code information 302.
The source code information 302 to be processed may include at least one function name. The at least one function name may include a function name 3021, a function name 3022, a function name 302M. M may be an integer greater than or equal to 1, M ε {1,2, …, (M-1), M }.
The parsing tool may be invoked to parse the source code information 302 to be processed to obtain function information 3031 corresponding to the function name 3021, function information 3032 corresponding to the function name 3022, function information 303M corresponding to the function name 302M, and function information 303M corresponding to the function name 302M.
The association relation information 3041 corresponding to the function name 3021 may be determined from the position information 30311 in the function information 3031 corresponding to the function name 3021. The association relation information 3042 corresponding to the function name 3022 is determined from the position information 30321 in the function information 3032 corresponding to the function name 3022. By analogy, from the position information 303ml in the function information 303m corresponding to the function name 302m, the association relation information 304m corresponding to the function name 302m is determined. By analogy, from the position information 303M1 in the function information 303M corresponding to the function name 302M, the association relation information 304M corresponding to the function name 302M is determined.
The function call relationship information 305 may be determined from the association relationship information 3041, the association relationship information 3042, the..the association relationship information 304M.
The function set 306 can be constructed from the function call relation information 305, the type information 30312, the resource occupation information 30313 in the function information 3031 corresponding to the function name 3021, the type information 30322, the resource occupation information 30323, the..the type information 303M2, the resource occupation information 303M3, the type information 303M2, the resource occupation information 303M3 in the function information 303M corresponding to the function name 302M, and the function information 3032 corresponding to the function name 3022.
According to an embodiment of the present disclosure, operation S230 may include the following operations.
And sequentially determining source information corresponding to each of the at least one function name according to the function call relation information and the type information corresponding to each of the at least one function name. And calling a preset function to process the function according to the source information and the resource occupation information aiming at the function corresponding to each function name in at least one function name, so as to obtain a processing result corresponding to the function. And constructing a function set according to the processing result corresponding to the function.
According to the embodiment of the disclosure, the function corresponding to each of the at least one function name may be determined as the target function according to the function call relation information. And determining source information of the objective function according to the type information corresponding to the objective function. The source information may include at least one of: a Kernel (i.e., kernel), a dynamic link library (Dynamic Link Library, DLL), and an Executable File (Exe).
According to the embodiment of the disclosure, after determining the source information corresponding to each of the at least one function name, a preset function may be called to process the function according to the source information and the resource occupation information corresponding to each of the at least one function name, so as to obtain a processing result corresponding to the function. The preset function may include at least one of: a first preset function and a second preset function. For example, a first preset function may be called to process the function, so as to obtain an initial processing result corresponding to the function. After the initial processing result is obtained, a second preset function can be called to process the initial processing result, and a processing result corresponding to the function is obtained. The first preset function and the second preset function may be set according to actual service requirements, which is not limited herein. The first preset function and the second preset function may be performance optimization functions.
According to the embodiments of the present disclosure, after the processing result corresponding to the function is obtained, the function set may be constructed according to the processing result corresponding to the function. The function set may include at least one function name, and resource occupation information corresponding to each of the at least one function name.
According to the embodiment of the disclosure, since the source information is determined according to the function call relation information and the type information corresponding to each of the at least one function name, the processing result corresponding to the function can be automatically obtained by according to the source information and the resource occupation information. On the basis, the function set is constructed according to the processing result corresponding to the function, so that the efficiency and accuracy of constructing the function set are improved.
According to an embodiment of the present disclosure, sequentially determining source information corresponding to each of the at least one function name according to the function call relationship information and the type information corresponding to each of the at least one function name may include the following operations.
For a function corresponding to each of the at least one function name, determining source information of the function as a kernel in the case that the type information characterizing function belongs to the first function type. And under the condition that the type information characterization function belongs to the second function type, performing source identification detection on the function to obtain a source identification detection result. And under the condition that the source identification detection result represents that the source identification is detected, determining the source information of the function as a dynamic link library. And determining the source information of the function as an executable file under the condition that the source identification detection result indicates that the source identification is not detected.
According to an embodiment of the present disclosure, the type information may include a first function type and a second function type.
According to the embodiment of the present disclosure, the first function type and the second function type may be set according to actual service requirements, which is not limited herein. For example, in the case where the type information includes "[ k ]", it may be determined that the type information characterization function belongs to the first function type. In case the type information comprises "[ ]", it may be determined that the type information characterizing function belongs to the second function type.
According to an embodiment of the present disclosure, in a case where it is determined that the type information characterizing function belongs to the first function type, source information of the function may be determined as a kernel. And under the condition that the type information characterization function is determined to belong to the second function type, source identification detection can be carried out on the function to obtain a source identification detection result. The source identifier detection result may characterize whether an incoming source identifier is detected. The specific manner of source identification and source identification detection may be set according to actual service requirements, and is not limited herein. For example, the source identifier may be ". So", and similarity detection may be performed on function information of the function according to the source identifier, to obtain a source identifier detection result. In the case that the source identifier is detected by the source identifier detection result characterization, the source information of the function can be determined to be a dynamic link library. In the case where the source identifier detection result indicates that the source identifier is not detected, the source information of the function may be determined to be an executable file.
According to embodiments of the present disclosure, similarity may be used to characterize the degree of similarity between source identification versus function information of a function. The relationship between the value of the similarity and the similarity degree may be configured according to the actual service requirement, which is not limited herein. For example, the greater the value of similarity, the greater the degree of similarity between the function information that may characterize the source identification versus the function. Conversely, the less similar the source identity is between function information for a function. The similarity detection mode can be configured according to actual service requirements, and is not limited herein. For example, the similarity may include at least one of: a literal similarity-based method, a text similarity-based method, an entity similarity-based method, and the like. The method based on literal similarity may include at least one of: edit distance, dice coefficient, and Jaccard similarity, etc. The text similarity based method may include at least one of: cosine similarity, relative entropy, KL (Kullback-Leibler, KL) divergence, probability model similarity, and the like.
The method 200 of constructing a set of functions described above may further include the following operations according to an embodiment of the present disclosure.
And under the condition that the source information of the function is determined to be an executable file, performing character detection on the function name corresponding to the function to obtain a character detection result. And under the condition that the character detection result represents that the function name comprises a first preset character, determining that the function call relation information comprises a dynamic link library.
According to embodiments of the present disclosure, the character detection result may be used to characterize whether the first preset character is included in the function name. The specific manner of the first preset character and the character detection may be configured according to the actual service requirement, which is not limited herein. For example, the first preset character may be "@", in which case, the character similarity detection process may be performed on the function name according to the first preset character, to obtain a character detection result.
According to an embodiment of the present disclosure, in a case where the character detection result characterizes the first preset character is included in the function name, it may be determined that the function call relationship information includes a dynamic link library. The function call relation information comprises that the dynamic link library can characterize the functions in the dynamic link library are called in the application process of the target function. In the case that the character detection result characterizes that the first preset character is not included in the function name, it may be determined that the function call relationship information includes an executable file.
According to the embodiment of the disclosure, the source information comprises at least one of a kernel, a dynamic link library and an executable file according to the type information and the source identification detection, so that the source information corresponding to at least one function name is automatically determined, and the efficiency and the accuracy of source information determination construction are improved.
Fig. 4 schematically illustrates an example schematic diagram of sequentially determining source information corresponding to each of at least one function name according to function call relationship information and type information corresponding to each of at least one function name according to an embodiment of the present disclosure.
As shown in fig. 4, in 400, after function information 401 corresponding to source code information to be processed is obtained, operation S410 may be performed.
In operation S410, the type information characterization function belongs to the first function type? If yes, determining the source information of the function as a kernel 402; if not, operation S420 is performed.
In operation S420, the type information characterization function belongs to the second function type? If yes, performing source identification detection on the function to obtain a source identification detection result 403, and after obtaining the source identification detection result 403, performing operation S430; if not, ending the source information determining process.
In operation S430, the source identifier detection result characterizes the detection of the source identifier? If yes, determining the source information of the function as a dynamic link library 404; if not, the source information of the function is determined to be executable file 405.
According to the embodiment of the disclosure, according to the source information and the resource occupation information, calling a preset function to process the function, and obtaining a processing result corresponding to the function may include the following operations.
And calling a first preset function to process the function according to the source information and the resource occupation information, and obtaining a first processing result corresponding to the function.
According to an embodiment of the present disclosure, constructing a function set according to a processing result corresponding to a function may include the following operations.
Under the condition that the first processing result meets the first preset condition, constructing a function set to be searched according to the function taking the source information as the kernel. And constructing a candidate dynamic link function set to be searched according to the source information as a function of the dynamic link library. And constructing a dynamic link function set to be searched according to the candidate dynamic link function set to be searched.
According to embodiments of the present disclosure, the source information may include kernels, dynamically linked libraries, and executable files. The preset functions may include a first preset function and a second preset function.
According to the embodiment of the disclosure, after determining source information corresponding to each of at least one function, a function corresponding to each of the at least one function name may be processed by calling a first preset function according to the source information and the resource occupation information, so as to obtain a first processing result corresponding to the function. The first processing result may be used to characterize whether the resource occupation information of the function meets a first preset condition. The first preset function and the first preset condition may be configured according to actual service requirements, which is not limited herein. For example, the first preset function may be "is_can_optimal", and the processing logic of the first preset function may include determining whether the resource occupation information of the current function has an optimal space, in which case the first preset condition may include the resource occupation information being greater than or equal to a first preset threshold. For example, the first preset threshold may be set to 5%.
According to the embodiment of the disclosure, under the condition that the first processing result meets the first preset condition, it can be determined that the resource occupation information of the current function has a tuning space. And under the condition that the first processing result does not meet the first preset condition, determining that the resource occupation information of the current function does not have a tuning space.
According to an embodiment of the present disclosure, the set of functions to be searched may include at least one function to be searched. The function to be searched may include a function whose source information is a kernel. The set of dynamic link functions to be searched may include at least one dynamic link function to be searched. The dynamic link function to be searched may include a function whose source information is a dynamic link library.
The method 200 of constructing a set of functions described above may further include the following operations according to an embodiment of the present disclosure.
And under the condition that the first processing result does not meet the first preset condition, calling a second preset function to process the function, and obtaining a second processing result corresponding to the function. And under the condition that the second processing result meets the second preset condition, determining to call the function according to the function call relation information. And calling a preset function to process the calling function according to the source information of the calling function and the resource occupation information of the calling function, so as to obtain a processing result corresponding to the calling function. And constructing a function set according to the processing result corresponding to the calling function.
According to the embodiment of the disclosure, under the condition that the current function is determined to have no tuning space, a second preset function can be called to process the function according to the source information and the resource occupation information, and a second processing result corresponding to the function is obtained. The second processing result may be used to characterize whether the resource occupation information of the function meets a second preset condition. The second preset function and the second preset condition may be configured according to actual service requirements, which is not limited herein. For example, the second preset function may be "is continue analyse", and the processing logic of the second preset function may include determining whether there is an optimization space for the resource occupation information of the calling function related to the current function. The resource occupation information of the calling function related to the current function can be determined according to the difference between the total resource occupation information and the resource occupation information of the current function. In this case, the second preset condition may include the resource occupation information being greater than or equal to a second preset threshold. For example, the second preset threshold may be set to 5%.
According to the embodiment of the disclosure, in the case that the second processing result is determined to meet the second preset condition, it may be determined that the resource occupation information of the calling function related to the current function has a tuning space. And under the condition that the second processing result does not meet the second preset condition, determining that the resource occupation information of the calling function related to the current function does not have a tuning space.
According to the embodiment of the disclosure, since the first processing result is obtained by calling the first preset function to process the function, the function set to be searched and the dynamic link function set to be searched can be constructed according to the source information under the condition that the first processing result meets the first preset condition, and therefore efficiency of function set construction is improved. On the basis, the second processing result is obtained by calling a second preset function to process the function, and under the condition that the second processing result meets the second preset condition, the calling function can be determined according to the function calling relation information, and the function set is constructed according to the calling function, so that the accuracy of function set construction is improved.
Fig. 5 schematically illustrates an example schematic diagram of constructing a function set according to function call relation information, type information corresponding to at least one function name each, and resource occupation information corresponding to at least one function name each according to an embodiment of the present disclosure.
As shown in fig. 5, in 500, a first preset function may be called to process a function according to source information 501 and resource occupation information 502, so as to obtain a first processing result 503 corresponding to the function. After the first processing result 503 is obtained, operation S510 may be performed.
In operation S510, the first processing result satisfies the first preset condition? If yes, a function set 5041 to be searched can be constructed according to the function taking the source information 501 as the kernel; constructing a candidate dynamic link function set 5042 to be searched according to the source information 501 as a function of the dynamic link library; from the candidate set of dynamic link functions to be searched 5042, a set of dynamic link functions to be searched 5043 is constructed. If not, a second preset function may be called to process the function, so as to obtain a second processing result 505 corresponding to the function. After the second processing result 505 is obtained, operation S520 may be performed.
Executing operation S520, the second processing result satisfies the second preset condition? If yes, the calling function 506 can be determined according to the function calling relation information; calling a preset function to process the calling function 506, and obtaining a processing result 507 corresponding to the calling function 506; the function set 504 is constructed from the processing result 507 corresponding to the call function 506. If not, the function set construction process may end.
The above is only an exemplary embodiment, but is not limited thereto, and other function set construction methods known in the art may be included as long as the efficiency and accuracy of the abnormal code location can be improved.
Fig. 6 schematically shows a flowchart of an information processing method according to an embodiment of the present disclosure.
As shown in fig. 6, the information processing method 600 includes operations S610 to S630.
In response to receiving the information processing request, target pending source code information and a set of objective functions are acquired according to the information processing request in operation S610. The information processing request includes target source code location information corresponding to target to-be-processed source code information, and the set of target functions is associated with the target source code location information.
In operation S620, the target source code information to be processed is processed according to the set of objective functions, to obtain at least one objective function name.
In operation S630, target output information is determined according to at least one target function name. The target output information includes target position information corresponding to each of the at least one target function name, target type information corresponding to each of the at least one target function name, and target resource occupation information corresponding to each of the at least one target function name.
According to an embodiment of the present disclosure, the set of objective functions may be constructed using the construction method 200 of the set of functions.
According to the embodiment of the disclosure, the code for generating the information processing request may be written in the script in advance, and the target terminal may run the script to generate the information processing request in response to detecting the information processing operation initiated by the user with the target terminal. The target terminal may send an information processing request to the server, so that the server obtains the target to-be-processed source code information and the target function set according to the information processing request.
According to an embodiment of the present disclosure, after receiving an information processing request, target source code location information may be determined according to the information processing request. And acquiring target to-be-processed source code information and a target function set from the data source according to the target source code position information. The data source may include at least one of: local databases, cloud databases, and network resources. For example, a data interface may be invoked. And acquiring target to-be-processed source code information and a target function set from a data source by utilizing a data interface. The set of objective functions may include at least one of: the method comprises a function set to be searched, a candidate dynamic link function set to be searched and a dynamic link function set to be searched.
According to the embodiment of the disclosure, after the set of objective functions is obtained, matching processing may be performed on the source code information to be processed according to the set of objective functions, so as to obtain at least one objective function name.
According to an embodiment of the present disclosure, after obtaining at least one objective function name, objective output information corresponding to each of the at least one objective function name may be determined according to the at least one objective function name. The target output information may include target location information, target type information, and target resource occupancy information. The target location information may be used to characterize the location of the target function corresponding to the target function name in the target to-be-processed source code information. The object type information may be used to characterize a function type that the object function has corresponding to the object function name. The target resource occupation information may be used to characterize resource information occupied by the target function corresponding to the target function name.
According to an embodiment of the present disclosure, the target output information may further include association relation information corresponding to the target function name and function call relation information corresponding to the target function name. After the target output information is determined, the target output information can be displayed for a developer to locate a function with excessively high resource occupation information, and analysis, evaluation and code optimization are performed.
According to the embodiment of the disclosure, since at least one objective function name is obtained by processing the objective to-be-processed source code information according to the objective function set, the objective function name in the objective to-be-processed source code information can be automatically determined, so that the efficiency of positioning the abnormal code is improved, and the efficiency of information processing is further improved. On the basis, because the target output information is determined according to at least one target function name, the target position information, the target type information and the target resource occupation information corresponding to the target function name are automatically determined according to the target function name, so that the positioning accuracy of the abnormal code is improved, and the information processing accuracy is further improved.
An information processing method 600 according to an embodiment of the present invention is further described below with reference to fig. 7.
According to an embodiment of the present disclosure, operation S620 may include the following operations.
And processing the target to-be-processed source code information according to the to-be-searched function set to obtain at least one first intermediate target function name. And respectively processing at least one first intermediate objective function name according to the dynamic link function set to be searched to obtain second intermediate objective function names respectively corresponding to the at least one first intermediate objective function name. At least one objective function name is determined based on the at least one first intermediate objective function name and a second intermediate objective function name corresponding to each of the at least one first intermediate objective function name.
According to an embodiment of the present disclosure, according to a set of dynamically linked functions to be searched, processing at least one first intermediate objective function name respectively, and obtaining second intermediate objective function names corresponding to the at least one first intermediate objective function name respectively may include the following operations.
And matching the first intermediate objective function names corresponding to the first intermediate objective function according to the dynamic link function set to be searched for each first intermediate objective function name in the at least one first intermediate objective function name to obtain a matching result. And under the condition that the matching result represents that the dynamic link function set to be searched comprises the first intermediate objective function name, determining a second intermediate objective function name associated with the first intermediate objective function name according to the dynamic link function set to be searched.
According to an embodiment of the present disclosure, the set of objective functions may include a set of dynamic link functions to be searched and a set of functions to be searched.
According to the embodiment of the disclosure, at least one function to be searched in the function set to be searched can be sequentially determined as a target function to be searched according to the function set to be searched, and traversing processing is performed on the target source code information to obtain a first intermediate target function name matched with the target function name to be searched according to the target function name to be searched corresponding to the target function to be searched.
According to an embodiment of the present disclosure, after the first intermediate objective function name is obtained, the first intermediate objective function name and the location information corresponding to the first intermediate objective function name may be stored in association to the objective file. At least one dynamic link function to be searched in the dynamic link function set to be searched can be sequentially determined to be a target dynamic link function to be searched according to the dynamic link function set to be searched, and traversing processing is carried out on the first intermediate target function name and position information corresponding to the first intermediate target function name according to the target dynamic link function name corresponding to the target dynamic link function to be searched, so that a second intermediate target function name matched with the target dynamic link function name to be searched is obtained.
According to an embodiment of the present disclosure, after obtaining the first intermediate objective function name and the second intermediate objective function name, the first intermediate objective function in the objective file and the second intermediate objective function in the set of dynamically linked functions to be searched may be associated to determine the objective function.
Fig. 7 schematically illustrates an example schematic diagram of an information processing procedure according to an embodiment of the present disclosure.
As shown in fig. 7, in 700, in response to receiving an information processing request 701, target pending source code information 703 and a set of target functions 702 may be acquired from target source code location information 7011 in the information processing request 701. The set of objective functions 702 may include a set of functions to be searched 7021 and a set of dynamically linked functions to be searched 7022.
The target pending source code information 703 may be processed according to the set of pending search functions 7021 to obtain at least one first intermediate object function name 704. According to the set of dynamic link functions 7022 to be searched, the at least one first intermediate objective function name 704 is processed respectively, and a second intermediate objective function name 705 corresponding to each of the at least one first intermediate objective function name 704 is obtained.
At least one objective function name 706 is determined from the at least one first intermediate objective function name 704 and a second intermediate objective function name 705 corresponding to each of the at least one first intermediate objective function name 704. The target output information 707 is determined based on the at least one target function name 706.
The above is only an exemplary embodiment, but is not limited thereto, and other information processing methods known in the art may be included as long as the efficiency and accuracy of information processing can be improved.
Fig. 8 schematically shows a block diagram of a construction apparatus of a function set according to an embodiment of the present disclosure.
As shown in fig. 8, the construction apparatus 800 of the function set may include a first processing module 801, a first determining module 802, and a construction module 803.
The first processing module 801 is configured to process, in response to receiving a construction instruction for a function set, to-be-processed source code information in the function set construction instruction, to obtain function information corresponding to the to-be-processed source code information. The source code information to be processed includes at least one function name, and the function information includes location information corresponding to each of the at least one function name, type information corresponding to each of the at least one function name, and resource occupation information corresponding to each of the at least one function name.
The first determining module 802 is configured to determine function call relationship information according to location information corresponding to each of the at least one function name.
A construction module 803, configured to construct a function set according to the function call relation information, the type information corresponding to each of the at least one function name, and the resource occupation information corresponding to each of the at least one function name.
According to an embodiment of the present disclosure, the building module 803 may include a first determination unit, a first processing unit, and a first building unit.
And the first determining unit is used for sequentially determining source information corresponding to each of the at least one function name according to the function call relation information and the type information corresponding to each of the at least one function name.
For a function corresponding to each of the at least one function name,
and the first processing unit is used for calling a preset function to process the function according to the source information and the resource occupation information, and obtaining a processing result corresponding to the function.
And the first construction unit is used for constructing the function set according to the processing result corresponding to the function.
According to an embodiment of the present disclosure, the type information includes a first function type and a second function type.
According to an embodiment of the present disclosure, the first determination unit may include a first determination subunit, a detection subunit, a second determination subunit, and a third determination subunit.
For a function corresponding to each of the at least one function name,
and the first determination subunit is used for determining that the source information of the function is a kernel under the condition that the type information characterization function belongs to the first function type.
And the detection subunit is used for carrying out source identification detection on the function under the condition that the type information characterization function belongs to the second function type to obtain a source identification detection result.
And the second determining subunit is used for determining that the source information of the function is a dynamic link library under the condition that the source identification is detected by the source identification detection result characterization.
And the third determining subunit is used for determining that the source information of the function is an executable file under the condition that the source identification is not detected by the source identification detection result.
The function set constructing apparatus 800 may further include a character detecting module and a third determining module according to an embodiment of the present disclosure.
And the character detection module is used for carrying out character detection on the function name corresponding to the function under the condition that the source information of the function is determined to be the executable file, so as to obtain a character detection result.
And the third determining module is used for determining that the function call relation information comprises a dynamic link library under the condition that the character detection result represents that the function name comprises a first preset character.
According to an embodiment of the present disclosure, the source information includes a kernel, a dynamic link library, and an executable file, and the preset functions include a first preset function and a second preset function.
According to an embodiment of the present disclosure, the first processing unit may comprise a processing subunit.
And the processing subunit is used for calling a first preset function to process the function according to the source information and the resource occupation information, and obtaining a first processing result corresponding to the function.
According to an embodiment of the present disclosure, the first build unit may include a first build subunit, a second build subunit, and a third build subunit.
In the case where it is determined that the first processing result satisfies the first preset condition,
the first construction subunit is used for constructing a function set to be searched according to the function taking the source information as the kernel.
And the second construction subunit is used for constructing a candidate dynamic link function set to be searched for as a function of the dynamic link library according to the source information.
And the third construction subunit is used for constructing the dynamic link function set to be searched according to the candidate dynamic link function set to be searched.
According to an embodiment of the present disclosure, the building module 803 includes a second processing unit, a second determining unit, a third processing unit, and a second building unit.
And the second processing unit is used for calling a second preset function to process the function under the condition that the first processing result does not meet the first preset condition, so as to obtain a second processing result corresponding to the function.
And the second determining unit is used for determining a calling function according to the function calling relation information under the condition that the second processing result meets the second preset condition.
And the third processing unit is used for calling a preset function to process the calling function according to the source information of the calling function and the resource occupation information of the calling function, and obtaining a processing result corresponding to the calling function.
And the second construction unit is used for constructing the function set according to the processing result corresponding to the calling function.
The construction apparatus 800 of a function set may further include a second acquisition module and a fourth determination module according to an embodiment of the present disclosure.
And the second acquisition module is used for acquiring the original source code information to be processed. The original source code information to be processed comprises at least one original source code sub-information to be processed; and
And a fourth determining module, configured to determine, for each of the at least one original to-be-processed source code sub-information, the original to-be-processed source code sub-information as to-be-processed source code information in response to detecting that the original to-be-processed source code sub-information includes the second preset character.
According to an embodiment of the present disclosure, the first determination module 802 may include a third determination unit and a fourth determination unit.
And a third determining unit, configured to determine association relationship information corresponding to each of the at least one function name according to the location information corresponding to each of the at least one function name.
And the fourth determining unit is used for determining function call relation information according to the association relation information corresponding to at least one function name.
According to an embodiment of the present disclosure, the first processing module 801 may include a fourth processing unit.
And the fourth processing unit is used for calling an analysis tool, and respectively analyzing the plurality of source code information to be processed to obtain function information corresponding to the plurality of source code information to be processed.
Fig. 9 schematically shows a block diagram of an information processing apparatus according to an embodiment of the present disclosure.
As shown in fig. 9, the information processing apparatus 900 may include a first acquisition module 901, a second processing module 902, and a second determination module 903.
The first obtaining module 901 is configured to obtain, in response to receiving the information processing request, target source code information to be processed and a set of target functions according to the information processing request. The information processing request includes target source code location information corresponding to target to-be-processed source code information, and the set of target functions is associated with the target source code location information.
And the second processing module 902 is configured to process the target source code information to be processed according to the set of objective functions, so as to obtain at least one objective function name.
A second determining module 903, configured to determine target output information according to at least one target function name. The target output information includes target position information corresponding to each of the at least one target function name, target type information corresponding to each of the at least one target function name, and target resource occupation information corresponding to each of the at least one target function name.
According to an embodiment of the present disclosure, the set of objective functions is constructed using the construction means 800 according to the set of functions.
According to an embodiment of the present disclosure, the set of objective functions includes a set of dynamic link functions to be searched and a set of functions to be searched.
According to an embodiment of the present disclosure, the second processing module 902 may include a fifth processing unit, a sixth processing unit, and a fifth determining unit.
And the fifth processing unit is used for processing the target source code information to be processed according to the function set to be searched to obtain at least one first intermediate target function name.
And the sixth processing unit is used for respectively processing the at least one first intermediate objective function name according to the dynamic link function set to be searched to obtain a second intermediate objective function name corresponding to the at least one first intermediate objective function name.
And a fifth determining unit, configured to determine at least one objective function name according to the at least one first intermediate objective function name and a second intermediate objective function name corresponding to each of the at least one first intermediate objective function name.
According to an embodiment of the present disclosure, the fifth determining unit may include a matching subunit and a fourth determining subunit.
For each of the at least one first intermediate object function name,
and the matching subunit is used for matching the first intermediate objective function name corresponding to the first intermediate objective function according to the dynamic link function set to be searched to obtain a matching result.
And the fourth determining subunit is used for determining a second intermediate objective function name associated with the first intermediate objective function name according to the dynamic link function set to be searched when the matching result represents that the first intermediate objective function name is included in the dynamic link function set to be searched.
Any number of modules, sub-modules, units, sub-units, or at least some of the functionality of any number of the sub-units according to embodiments of the present disclosure may be implemented in one module. Any one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be implemented as split into multiple modules. Any one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be implemented at least in part as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system-on-chip, a system-on-substrate, a system-on-package, an Application Specific Integrated Circuit (ASIC), or in any other reasonable manner of hardware or firmware that integrates or encapsulates the circuit, or in any one of or a suitable combination of three of software, hardware, and firmware. Alternatively, one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be at least partially implemented as computer program modules, which when executed, may perform the corresponding functions.
For example, any of the first processing module 801, the first determining module 802, the constructing module 803, the first acquiring module 901, the second processing module 902, and the second determining module 903 may be combined in one module/unit/sub-unit, or any of the modules/units/sub-units may be split into a plurality of modules/units/sub-units. Alternatively, at least some of the functionality of one or more of these modules/units/sub-units may be combined with at least some of the functionality of other modules/units/sub-units and implemented in one module/unit/sub-unit. According to embodiments of the present disclosure, at least one of the first processing module 801, the first determination module 802, the construction module 803, the first acquisition module 901, the second processing module 902, and the second determination module 903 may be implemented at least in part as hardware circuitry, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system-on-chip, a system-on-substrate, a system-on-package, an Application Specific Integrated Circuit (ASIC), or any other reasonable manner in which circuitry is integrated or packaged, such as hardware or firmware, or any one of three implementations of software, hardware, and firmware, or any suitable combination of several of these. Alternatively, at least one of the first processing module 801, the first determination module 802, the construction module 803, the first acquisition module 901, the second processing module 902, and the second determination module 903 may be at least partially implemented as a computer program module, which when executed may perform the corresponding functions.
It should be noted that, the portion of the function set constructing apparatus in the embodiment of the present disclosure corresponds to the portion of the function set constructing method in the embodiment of the present disclosure, and the description of the portion of the function set constructing apparatus specifically refers to the portion of the function set constructing method, which is not described herein. The information processing apparatus portion in the embodiment of the present disclosure corresponds to the information processing method portion in the embodiment of the present disclosure, and the description of the information processing apparatus portion specifically refers to the information processing method portion and is not described herein.
Fig. 10 schematically shows a block diagram of an electronic device adapted to implement a method of constructing a set of functions, a method of processing information, according to an embodiment of the disclosure. The electronic device shown in fig. 10 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
As shown in fig. 10, a computer electronic device 1000 according to an embodiment of the present disclosure includes a processor 1001 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 1002 or a program loaded from a storage section 1009 into a Random Access Memory (RAM) 1003. The processor 1001 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or an associated chipset and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), or the like. The processor 1001 may also include on-board memory for caching purposes. The processor 1001 may include a single processing unit or multiple processing units for performing different actions of the method flows according to embodiments of the present disclosure.
In the RAM1003, various programs and data necessary for the operation of the electronic apparatus 1000 are stored. The processor 1001, the ROM 1002, and the RAM1003 are connected to each other by a bus 1004. The processor 1001 performs various operations of the method flow according to the embodiment of the present disclosure by executing programs in the ROM 1002 and/or the RAM 1003. Note that the program may be stored in one or more memories other than the ROM 1002 and the RAM 1003. The processor 1001 may also perform various operations of the method flow according to the embodiments of the present disclosure by executing programs stored in the one or more memories.
According to an embodiment of the disclosure, the electronic device 1000 may also include an input/output (I/O) interface 1005, the input/output (I/O) interface 1005 also being connected to the bus 1004. The electronic device 1000 may also include one or more of the following components connected to the I/O interface 1005: an input section 1006 including a keyboard, a mouse, and the like; an output portion 1007 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), etc., and a speaker, etc.; a storage portion 1008 including a hard disk or the like; and a communication section 1009 including a network interface card such as a LAN card, a modem, or the like. The communication section 1009 performs communication processing via a network such as the internet. The drive 1010 is also connected to the I/O interface 1005 as needed. A removable medium 1011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like, is installed as needed in the drive 1010, so that a computer program read out therefrom is installed as needed in the storage section 1008.
According to embodiments of the present disclosure, the method flow according to embodiments of the present disclosure may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable storage medium, the computer program comprising program code for performing the method shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 1009, and/or installed from the removable medium 1011. The above-described functions defined in the system of the embodiments of the present disclosure are performed when the computer program is executed by the processor 1001. The systems, devices, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
The present disclosure also provides a computer-readable storage medium that may be embodied in the apparatus/device/system described in the above embodiments; or may exist alone without being assembled into the apparatus/device/system. The computer-readable storage medium carries one or more programs which, when executed, implement methods in accordance with embodiments of the present disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium. Examples may include, but are not limited to: 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), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, 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.
For example, according to embodiments of the present disclosure, the computer-readable storage medium may include ROM 1002 and/or RAM1003 and/or one or more memories other than ROM 1002 and RAM1003 described above.
Embodiments of the present disclosure also include a computer program product comprising a computer program comprising program code for performing the methods provided by the embodiments of the present disclosure, the program code for causing an electronic device to implement the methods of constructing and information processing the sets of functions provided by the embodiments of the present disclosure when the computer program product is run on the electronic device.
The above-described functions defined in the system/apparatus of the embodiments of the present disclosure are performed when the computer program is executed by the processor 901. The systems, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
In one embodiment, the computer program may be based on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted in the form of signals on a network medium, distributed, and downloaded and installed via the communication section 1009, and/or installed from the removable medium 1011. The computer program may include program code that may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
According to embodiments of the present disclosure, program code for performing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, such computer programs may be implemented in high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. Programming languages include, but are not limited to, such as Java, c++, python, "C" or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. Those skilled in the art will appreciate that the features recited in the various embodiments of the disclosure and/or in the claims may be combined in various combinations and/or combinations, even if such combinations or combinations are not explicitly recited in the disclosure. In particular, the features recited in the various embodiments of the present disclosure and/or the claims may be variously combined and/or combined without departing from the spirit and teachings of the present disclosure. All such combinations and/or combinations fall within the scope of the present disclosure.
The embodiments of the present disclosure are described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the embodiments cannot be used advantageously in combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be made by those skilled in the art without departing from the scope of the disclosure, and such alternatives and modifications are intended to fall within the scope of the disclosure.

Claims (17)

1. A method of constructing a set of functions, comprising:
processing source code information to be processed in the function set construction instruction to obtain function information corresponding to the source code information to be processed in response to receiving the function set construction instruction, wherein the source code information to be processed comprises at least one function name, and the function information comprises position information corresponding to the at least one function name, type information corresponding to the at least one function name and resource occupation information corresponding to the at least one function name;
determining function call relation information according to the position information corresponding to the at least one function name; and
And constructing a function set according to the function call relation information, the type information corresponding to the at least one function name and the resource occupation information corresponding to the at least one function name.
2. The method of claim 1, wherein the constructing a function set according to the function call relation information, the type information corresponding to each of the at least one function name, and the resource occupation information corresponding to each of the at least one function name comprises:
sequentially determining source information corresponding to at least one function name according to the function call relation information and the type information corresponding to the at least one function name;
for a function corresponding to each of the at least one function name,
according to the source information and the resource occupation information, a preset function is called to process the function, and a processing result corresponding to the function is obtained; and
and constructing the function set according to the processing result corresponding to the function.
3. The method of claim 2, wherein the type information includes a first function type and a second function type;
Wherein, the determining the source information corresponding to the at least one function name in turn according to the function call relation information and the type information corresponding to the at least one function name includes:
for a function corresponding to each of the at least one function name,
determining that the source information of the function is a kernel under the condition that the type information characterizes that the function belongs to a first function type;
under the condition that the type information characterizes that the function belongs to a second function type, source identification detection is carried out on the function, and a source identification detection result is obtained;
under the condition that the source identification is detected by the source identification detection result representation, determining that the source information of the function is a dynamic link library; and
and determining the source information of the function as an executable file in the condition that the source identification is not detected by the source identification detection result.
4. A method according to claim 3, further comprising:
under the condition that the source information of the function is determined to be the executable file, character detection is carried out on the function name corresponding to the function, and a character detection result is obtained; and
And under the condition that the character detection result represents that the function name comprises a first preset character, determining that the function call relation information comprises the dynamic link library.
5. The method of any of claims 2 to 4, wherein the source information comprises a kernel, a dynamic link library, and an executable file, the preset functions comprising a first preset function and a second preset function;
the step of calling a preset function to process the function according to the source information and the resource occupation information, and the step of obtaining a processing result corresponding to the function comprises the following steps:
according to the source information and the resource occupation information, calling the first preset function to process the function, and obtaining a first processing result corresponding to the function;
wherein, the constructing the function set according to the processing result corresponding to the function includes:
in case it is determined that the first processing result satisfies a first preset condition,
constructing the function set to be searched according to the function of which the source information is the kernel;
constructing a candidate dynamic link function set to be searched for according to the source information as a function of the dynamic link library; and
And constructing the dynamic link function set to be searched according to the candidate dynamic link function set to be searched.
6. The method of claim 5, further comprising:
under the condition that the first processing result does not meet the first preset condition, calling the second preset function to process the function to obtain a second processing result corresponding to the function;
determining a calling function according to the function calling relation information under the condition that the second processing result meets a second preset condition;
calling the preset function to process the calling function according to the source information of the calling function and the resource occupation information of the calling function, and obtaining a processing result corresponding to the calling function; and
and constructing the function set according to the processing result corresponding to the calling function.
7. The method of any of claims 1 to 6, further comprising, prior to said processing the source code information to be processed in the build instruction in response to receiving the build instruction for a function set, obtaining function information corresponding to the source code information to be processed:
Acquiring original source code information to be processed, wherein the original source code information to be processed comprises at least one piece of original source code sub-information to be processed; and
for each of the at least one original pending source code sub-information,
and in response to detecting that the original to-be-processed source code sub-information comprises a second preset character, determining the original to-be-processed source code sub-information as the to-be-processed source code information.
8. The method according to any one of claims 1 to 7, wherein the determining function call relation information according to the location information corresponding to each of the at least one function name comprises:
determining association relation information corresponding to at least one function name according to the position information corresponding to the at least one function name; and
and determining the function call relation information according to the association relation information corresponding to the at least one function name.
9. The method according to any one of claims 1 to 8, wherein, in response to receiving a build instruction for a function set, processing source code information to be processed in the build instruction, resulting in function information corresponding to the source code information to be processed includes:
And calling an analysis tool to analyze the to-be-processed source code information to obtain the function information corresponding to the to-be-processed source code information.
10. An information processing method, comprising:
in response to receiving an information processing request, acquiring target source code information to be processed and a target function set according to the information processing request, wherein the information processing request comprises target source code position information corresponding to the target source code information to be processed, and the target function set is associated with the target source code position information;
processing the target to-be-processed source code information according to the target function set to obtain at least one target function name; and
determining target output information according to the at least one target function name, wherein the target output information comprises target position information corresponding to the at least one target function name, target type information corresponding to the at least one target function name and target resource occupation information corresponding to the at least one target function name;
wherein the set of objective functions is constructed using the method according to any one of claims 1 to 9.
11. The method of claim 10, wherein the set of objective functions comprises a set of dynamic link functions to be searched and a set of functions to be searched;
the processing the target to-be-processed source code information according to the target function set to obtain at least one target function name includes:
processing the target to-be-processed source code information according to the to-be-searched function set to obtain at least one first intermediate target function name;
according to the dynamic link function set to be searched, respectively processing the at least one first intermediate objective function name to obtain a second intermediate objective function name corresponding to the at least one first intermediate objective function name; and
and determining the at least one objective function name according to the at least one first intermediate objective function name and the second intermediate objective function names corresponding to the at least one first intermediate objective function name.
12. The method of claim 11, wherein the processing the at least one first intermediate objective function name according to the set of dynamic link functions to be searched to obtain a second intermediate objective function name corresponding to the at least one first intermediate objective function name, respectively, includes:
For each of the at least one first intermediate object function name,
according to the dynamic link function set to be searched, matching a first intermediate objective function name corresponding to the first intermediate objective function to obtain a matching result; and
and under the condition that the matching result represents that the dynamic link function set to be searched comprises the first intermediate objective function name, determining the second intermediate objective function name associated with the first intermediate objective function name according to the dynamic link function set to be searched.
13. A function set constructing apparatus, comprising:
the first processing module is used for processing source code information to be processed in the function set construction instruction in response to receiving the construction instruction for the function set to obtain function information corresponding to the source code information to be processed, wherein the source code information to be processed comprises at least one function name, and the function information comprises position information corresponding to the at least one function name, type information corresponding to the at least one function name and resource occupation information corresponding to the at least one function name;
The first determining module is used for determining function call relation information according to the position information corresponding to each of the at least one function name; and
and the construction module is used for constructing a function set according to the function call relation information, the type information corresponding to at least one function name and the resource occupation information corresponding to at least one function name.
14. An information processing apparatus comprising:
the first acquisition module is used for responding to a received information processing request, and acquiring target source code information to be processed and a target function set according to the information processing request, wherein the information processing request comprises target source code position information corresponding to the target source code information to be processed, and the target function set is associated with the target source code position information;
the second processing module is used for processing the target source code information to be processed according to the target function set to obtain at least one target function name; and
the second determining module is used for determining target output information according to the at least one target function name, wherein the target output information comprises target position information corresponding to the at least one target function name, target type information corresponding to the at least one target function name and target resource occupation information corresponding to the at least one target function name;
Wherein the set of objective functions is constructed using the method according to any one of claims 1 to 9.
15. An electronic device, comprising:
one or more processors;
a memory for storing one or more instructions,
wherein the one or more instructions, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1 to 9 or claims 10 to 12.
16. A computer readable storage medium having stored thereon executable instructions which when executed by a processor cause the processor to implement the method of any of claims 1 to 9 or 10 to 12.
17. A computer program product comprising computer executable instructions for implementing the method of any one of claims 1 to 9 or 10 to 12 when executed.
CN202310014837.0A 2023-01-05 2023-01-05 Function set construction method, information processing method and device and electronic equipment Pending CN116048522A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310014837.0A CN116048522A (en) 2023-01-05 2023-01-05 Function set construction method, information processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310014837.0A CN116048522A (en) 2023-01-05 2023-01-05 Function set construction method, information processing method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN116048522A true CN116048522A (en) 2023-05-02

Family

ID=86126954

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310014837.0A Pending CN116048522A (en) 2023-01-05 2023-01-05 Function set construction method, information processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN116048522A (en)

Similar Documents

Publication Publication Date Title
US10871954B2 (en) Controlled deployment of application feature
US20120137291A1 (en) Placing a virtual machine on a target hypervisor
CN111611144B (en) Method, apparatus, computing device, and medium for processing performance test data
US11934287B2 (en) Method, electronic device and computer program product for processing data
US10997228B2 (en) Comparing tables with semantic vectors
WO2020199659A1 (en) Method and apparatus for determining push priority information
CN113271307B (en) Data assembling method, device, computer system and storage medium
CN110895587B (en) Method and device for determining target user
CN112214770B (en) Malicious sample identification method, device, computing equipment and medium
CN116483888A (en) Program evaluation method and device, electronic equipment and computer readable storage medium
CN116702752A (en) File data processing method, device, equipment and storage medium
CN113515271B (en) Service code generation method and device, electronic equipment and readable storage medium
CN116048522A (en) Function set construction method, information processing method and device and electronic equipment
CN114780361A (en) Log generation method, device, computer system and readable storage medium
CN111784174A (en) Method and device for managing risk policy based on user portrait and electronic equipment
CN115190008B (en) Fault processing method, fault processing device, electronic equipment and storage medium
CN116382703B (en) Software package generation method, code development method and device, electronic equipment and medium
CN116401319B (en) Data synchronization method and device, electronic equipment and computer readable storage medium
KR20140043556A (en) Apparatus and method for analyzing system usage
CN115421873A (en) Dictionary construction method, and file evaluation method, device and equipment based on dictionary
CN111913737B (en) Method, device, equipment and storage medium for constructing data service interface
CN117873554A (en) Software release method, device and equipment
CN116955324A (en) Information processing method, service processing method and device and electronic equipment
CN116541029A (en) Method and device for generating application program installation package, electronic equipment and storage medium
CN108536362B (en) Method and device for identifying operation and server

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