CN111562954B - Data processing method and device, storage medium and processor - Google Patents

Data processing method and device, storage medium and processor Download PDF

Info

Publication number
CN111562954B
CN111562954B CN202010420447.XA CN202010420447A CN111562954B CN 111562954 B CN111562954 B CN 111562954B CN 202010420447 A CN202010420447 A CN 202010420447A CN 111562954 B CN111562954 B CN 111562954B
Authority
CN
China
Prior art keywords
variable
target object
tracking
preset
aiming
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010420447.XA
Other languages
Chinese (zh)
Other versions
CN111562954A (en
Inventor
梁伟何
胡浩源
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202010420447.XA priority Critical patent/CN111562954B/en
Publication of CN111562954A publication Critical patent/CN111562954A/en
Application granted granted Critical
Publication of CN111562954B publication Critical patent/CN111562954B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4488Object-oriented
    • G06F9/4492Inheritance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4488Object-oriented
    • G06F9/449Object-oriented method invocation or resolution

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Devices For Executing Special Programs (AREA)

Abstract

The invention discloses a data processing method and device, a storage medium and a processor. The data processing method comprises the following steps: carrying out self-defining processing on a preset variable to obtain a target object, wherein the preset variable is a variable used in a preset programming language, the preset programming language is an interpretation script language, and the target object is an object needing variable tracking; determining a tracking mode based on an operation type of an operation aiming at a preset variable, wherein the tracking mode is used for carrying out variable tracking on a target object; and performing variable tracking operation on the target object based on the tracking mode. The invention solves the technical problem of lower efficiency of the mode for carrying out variable tracking in the related technology.

Description

Data processing method and device, storage medium and processor
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a data processing method and apparatus, a storage medium, and a processor.
Background
Python variable tracking is implemented based on the multi-inheritance mechanism of Python and the built-in type rewritable nature of Python. Python is a support of multiple inheritance mechanisms, firstly, a base class can be defined for recording inheritance relationships and obtaining variable change stacks, then a new type is defined, the type corresponds to the built-in variable type of Python, and the new type is inherited to the defined base class and the corresponding built-in type, so that a new type object can record variable change stacks and inherit all operations of the built-in type. Then, all operations of the built-in type are rewritten in the new type, so that the operations of the built-in type correspond to the operations of the built-in type, and custom operations can be added. The existing variable tracking method mainly tracks the variable change process layer by upwards layer through breakpoints or log printing. Although the existing methods are well applied in conventional codes. However, when the call levels of the variables are more and the logic is more and more complex, the existing method is inefficient, and may not be familiar with the code in some cases, and it is difficult to find a change path of a variable, and in addition, it is difficult to search for a reference relationship by using a scripting language, so that the method of tracking the variable layer by layer is very inefficient.
Aiming at the problem that the efficiency of the mode for carrying out variable tracking in the related art is relatively low, no effective solution is proposed at present.
Disclosure of Invention
The embodiment of the invention provides a data processing method and device, a storage medium and a processor, which at least solve the technical problem that the efficiency of a mode for carrying out variable tracking in the related technology is lower.
According to an aspect of an embodiment of the present invention, there is provided a data processing method, including: carrying out self-defining processing on a preset variable to obtain a target object, wherein the preset variable is a variable used in a preset programming language, the preset programming language is an interpretation script language, and the target object is an object needing variable tracking; determining a tracking mode based on an operation type of the operation aiming at the preset variable, wherein the tracking mode is used for carrying out variable tracking on the target object; and executing variable tracking operation on the target object based on the tracking mode.
Optionally, the operation types include: and the device can be operated in a heavy load mode and can not be operated in a heavy load mode.
Optionally, the determining the tracking mode based on the operation type of the operation for the preset variable includes: and when the operation type of the operation aiming at the preset variable is reloadable operation, determining that the tracking mode is to reload the operation aiming at the preset variable aiming at the target object.
Optionally, the performing variable tracking operation on the target object based on the tracking mode includes: and reloading the operation aiming at the preset variable aiming at the target object, and recording all the operations executed aiming at the target object in a storage area corresponding to the target object.
Optionally, the reloading the operation for the preset variable for the target object, and recording all the operations performed for the target object in the storage area corresponding to the target object, including: when the operation for the preset variable is reloaded for the target object, the operation for the target object is obtained through an attribute setting function, and all the operations executed for the target object are recorded in a storage area corresponding to the target object.
Optionally, the reloadable operation includes at least one of: a numeric operation in a numeric type variable, a type conversion operation in a numeric type variable, an insert operation in a non-numeric type; the non-reloadable operation includes at least: assignment operations in value type variables.
Optionally, after the variable tracking operation is performed on the target object based on the tracking mode, the data processing method includes: acquiring a tracking path of the target object; and determining a modification area of the target object based on the tracking path to obtain a tracking result aiming at the preset variable.
According to another aspect of the embodiment of the present invention, there is also provided a data processing apparatus, including: the self-defining processing unit is used for carrying out self-defining processing on a preset variable to obtain a target object, wherein the preset variable is a variable used in a preset programming language, the preset programming language is an interpretation script language, and the target object is an object needing variable tracking; the determining unit is used for determining a tracking mode based on the operation type of the operation aiming at the preset variable, wherein the tracking mode is used for carrying out variable tracking on the target object; and the execution unit is used for executing variable tracking operation on the target object based on the tracking mode.
Optionally, the operation types include: and the device can be operated in a heavy load mode and can not be operated in a heavy load mode.
Optionally, the determining unit includes: and the first determining module is used for determining that the tracking mode is to reload the operation aiming at the preset variable aiming at the target object when the operation type of the operation aiming at the preset variable is reloadable operation.
Optionally, the execution unit includes: and the recording module is used for reloading the operation aiming at the preset variable aiming at the target object and recording all the operations executed aiming at the target object in a storage area corresponding to the target object.
Optionally, the reloading the operation for the preset variable for the target object, and recording all the operations performed for the target object in the storage area corresponding to the target object, including: when the operation for the preset variable is reloaded for the target object, the operation for the target object is obtained through an attribute setting function, and all the operations executed for the target object are recorded in a storage area corresponding to the target object.
Optionally, the reloadable operation includes at least one of: a numeric operation in a numeric type variable, a type conversion operation in a numeric type variable, an insert operation in a non-numeric type; the non-reloadable operation includes at least: assignment operations in value type variables.
Optionally, the data processing device includes: the first acquisition unit is used for acquiring a tracking path of the target object after the variable tracking operation is performed on the target object based on the tracking mode; and the second acquisition unit is used for determining a modification area of the target object based on the tracking path to obtain a tracking result aiming at the preset variable.
According to another aspect of the embodiments of the present invention, there is provided a storage medium including a stored program, where the program, when executed, controls a device in which the storage medium is located to perform the method for processing data according to any one of the above.
According to another aspect of the embodiment of the present invention, there is provided a processor, where the processor is configured to execute a program, and when the program is executed, perform a method for processing data according to any one of the foregoing methods.
In the embodiment of the invention, a target object is obtained by carrying out self-defining processing on a preset variable, wherein the preset variable is a variable used in a preset programming language, the preset programming language is an interpretation script language, and the target object is an object needing variable tracking; determining a tracking mode based on an operation type of an operation aiming at a preset variable, wherein the tracking mode is used for carrying out variable tracking on a target object; and performing variable tracking operation on the target object based on the tracking mode. By the data processing method provided by the embodiment of the invention, the variable tracking mode for performing variable tracking on the target object obtained by converting the preset variable is determined based on the operation type of the operation aiming at the preset variable, so that the target object is subjected to variable tracking, the technical effect of improving the efficiency of performing variable tracking on the target object is achieved, and the technical problem that the efficiency of the mode for performing variable tracking in the related technology is relatively low is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
FIG. 1 is a flow chart of a method of processing data according to an embodiment of the invention;
fig. 2 is a schematic diagram of a data processing apparatus according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an embodiment of the present invention, there is provided a method embodiment of a data processing method, it should be noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different from that herein.
Fig. 1 is a flowchart of a data processing method according to an embodiment of the present invention, and as shown in fig. 1, the data processing method includes the steps of:
Step S102, carrying out self-defining processing on a preset variable to obtain a target object, wherein the preset variable is a variable used in a preset programming language, the preset programming language is an interpretation script language, and the target object is an object needing variable tracking.
In this embodiment, the preset variable may be integer type, character type, floating point type, or the like.
Alternatively, the preset programming language may be Python.
In an alternative embodiment, the preset variable may be subjected to a custom process based on the application scenario and the application requirement, so as to obtain the target object. That is, the original floating point type, character type, integer type, etc. of the preset variable can be converted into the required type based on the application requirement, and the target object can be obtained.
Step S104, determining a tracking mode based on the operation type of the operation aiming at the preset variable, wherein the tracking mode is used for carrying out variable tracking on the target object.
It should be noted that, in the embodiment of the present invention, the tracking manner for different operation types is different.
Step S106, variable tracking operation is performed on the target object based on the tracking mode.
As can be seen from the above, in the embodiment of the present invention, the preset variable may be subjected to the custom processing to obtain the target object, where the preset variable is a variable used in a preset programming language, the preset programming language is an interpreted scripting language, and the target object is an object that needs to be subjected to variable tracking; determining a tracking mode based on an operation type of an operation aiming at a preset variable, wherein the tracking mode is used for carrying out variable tracking on a target object; the variable tracking operation is executed on the target object based on the tracking mode, so that the variable tracking mode for performing variable tracking on the target object obtained by converting the preset variable is determined based on the operation type of the operation on the preset variable, the target object is subjected to variable tracking, and the technical effect of improving the efficiency of performing variable tracking on the target object is achieved.
It should be noted that, in the embodiment of the present invention, the tracking manner may be determined based on the operation type of the operation for the preset variable, and further, the variable tracking manner is performed on the target object based on the determined tracking manner, so that the change of each layer of function to the variable can be seen without performing log printing layer by layer on at least one operation performed on the target object, thereby improving the efficiency of variable tracking.
Therefore, the data processing method provided by the embodiment of the invention solves the technical problem that the efficiency of the mode for carrying out variable tracking in the related technology is lower.
It should be noted that, in the embodiment of the present invention, the operation types may include: and the device can be operated in a heavy load mode and can not be operated in a heavy load mode.
According to the above embodiment of the present invention, in step S104, determining the tracking manner based on the operation type of the operation for the preset variable may include: when the operation type of the operation aiming at the preset variable is reloadable operation, determining that the tracking mode is to reload the operation aiming at the preset variable aiming at the target object.
For example, in an embodiment of the present invention, a new type of object, i.e., a target object, may be instantiated at the entry of a program. Then, acquiring all operations which can be executed by the preset variable, and determining whether the operations are reloadable operations or not; when these operations are reloadable operations, it may be determined that the tracking manner of tracking the target object is to reload the operation for the preset variable for the target object, so that the operation possessed by the preset variable may be performed on the target object as well.
According to the above embodiment of the present invention, in step S106, a variable tracking operation is performed on a target object based on a tracking manner, including: and reloading the operation aiming at the preset variable aiming at the target object, and recording all the operations executed aiming at the target object in a storage area corresponding to the target object.
In this embodiment, all operations performed by the target object, for example, a numeric operation in a numeric type variable, a type conversion operation in a numeric type variable, and an insert operation in a non-numeric type, may be recorded in a storage area (e.g., stack) to which the target object corresponds.
In an embodiment of the invention, for a numerical type variable: the operations of the numerical type variables are mainly: 1) Assignment operation (no heavy load): for example, x=1, x=y; 2) Numerical manipulation (reloadable): for example, x=x+1, x+=1; 3) Type conversion (reloadable): x=float (x).
For reloadable operations, the operations may be reloaded, and may be recorded when the value is modified, e.g., an add reload plus operator, a sub reload minus operator.
For non-numeric type variables: also, list, tuple, dict, str, bool, if there is an add-subtract multiply-divide operation, the operation is reloaded, and then other operation methods are rewritten. Such as list append, insert. So that all operations of the list can be recorded.
In an alternative embodiment, reloading the operation for the preset variable for the target object, and recording all the operations performed for the target object in the storage area corresponding to the target object, including: when the operation for the preset variable is reloaded for the target object, the operation for the target object is acquired through the attribute setting function, and all the operations executed for the target object are recorded in the storage area corresponding to the target object.
In the above embodiment, when the operation for the preset variable is reloaded for the target object, the attribute setting function, for example, the_ setattr _method of class, can be rewritten, so that the whole change process of the target object can be tracked, and log is not required to be tracked and printed layer by layer.
In the embodiment of the invention, the change of the variable is mainly intercepted by using a_ setattr _method; that is, once the variable is modified, the_ setattr _method must be called, so that the operation for the target object can be obtained through the attribute setting function, and all the operations performed for the target object are recorded in the storage area corresponding to the target object.
In addition, for the hook direct assignment operation: since the assignment statement cannot be reloaded, other ways to record for assignment operations are used. If the variable is a member of a variety of classes, such as: x=x (), x.a =100, such operations can be recorded by overriding the attribute set function_ setattr _for class X.
In an alternative embodiment, the reloadable operation includes at least one of: a numeric operation in a numeric type variable, a type conversion operation in a numeric type variable, an insert operation in a non-numeric type; the non-reloadable operation includes at least: assignment operations in value type variables.
It should be noted that, in the embodiment of the present invention, the current call stack may be mainly obtained, then the information required by the corresponding variable value, the file name, the line number, the operation code, etc. is recorded, the inheritance method of the base class is called once for each operation of the variable, and the operation result is recorded in the list of the base class.
In an alternative embodiment, after performing a variable tracking operation on the target object based on the tracking manner, the processing method of data may include: acquiring a tracking path of a target object; and determining a modification area of the target object based on the tracking path to obtain a tracking result aiming at the preset variable.
Wherein the tracking path records the operations performed on the target object, so that a modification area of the target object can be determined based on the tracking path, where the modification area mainly refers to the modified position of the target object, for example, which places of the target object are modified, and which modifications are performed.
In the embodiment of the invention, the preset variable can be subjected to the self-defining treatment, namely, the self-defining type can be carried out again for the preset variable, and after the self-defining type is carried out, the preset variable can be flexibly operated, and the operation executed for the preset variable is recorded, so that the tracking of the preset variable is realized.
As can be seen from the above, the target object is obtained by packaging the preset variable, so in the embodiment of the present invention, the tracking of the target object is actually the tracking of the preset variable.
By the data processing method provided by the embodiment of the invention, the modification of the variable can be intercepted from the source, so that the variable tracking becomes more efficient and clear, the change of each layer of function to the variable can be seen without the need of log printing layer by layer, and the variable tracking efficiency is improved.
According to another aspect of the embodiment of the present invention, there is provided a data processing apparatus, fig. 2 is a schematic diagram of the data processing apparatus according to the embodiment of the present invention, and as shown in fig. 2, the data processing apparatus includes: the customization processing unit 21, the determining unit 23 and the executing unit 25. The data processing apparatus will be described in detail below.
The custom processing unit 21 is configured to perform custom processing on a preset variable to obtain a target object, where the preset variable is a variable used in a preset programming language, the preset programming language is an interpreted script language, and the target object is an object that needs to perform variable tracking.
A determining unit 23, configured to determine a tracking manner based on an operation type of an operation for a preset variable, where the tracking manner is used for performing variable tracking on the target object.
The execution unit 25 is configured to perform a variable tracking operation on the target object based on the tracking manner.
Here, it should be noted that the customization processing unit 21, the determining unit 23, and the executing unit 25 correspond to steps S102 to S106 in the embodiment, and the foregoing units are the same as examples and application scenarios implemented by the corresponding steps, but are not limited to those disclosed in the foregoing embodiments. It should be noted that the above-described elements may be implemented as part of an apparatus in a computer system such as a set of computer-executable instructions.
As can be seen from the above, in the above embodiment of the present application, the user-defined processing unit may be used to perform user-defined processing on a preset variable to obtain a target object, where the preset variable is a variable used in a preset programming language, the preset programming language is an interpreted scripting language, and the target object is an object that needs to be tracked by the variable; determining a tracking mode by utilizing a determining unit based on the operation type of the operation aiming at the preset variable, wherein the tracking mode is used for carrying out variable tracking on the target object; and performing variable tracking operation on the target object based on the tracking mode by using the execution unit. The data processing device provided by the embodiment of the application realizes the purpose of determining the variable tracking mode for performing variable tracking on the target object obtained by converting the preset variable based on the operation type of the operation aiming at the preset variable so as to perform variable tracking on the target object, achieves the technical effect of improving the efficiency of performing variable tracking on the target object, and further solves the technical problem of lower efficiency of the mode for performing variable tracking in the related technology.
In an alternative embodiment, the operation types include: and the device can be operated in a heavy load mode and can not be operated in a heavy load mode.
In an alternative embodiment, the determining unit comprises: the first determining module is used for determining that the tracking mode is to reload the operation aiming at the preset variable aiming at the target object when the operation type of the operation aiming at the preset variable is reloadable operation.
In an alternative embodiment, an execution unit includes: and the recording module is used for reloading the operation aiming at the preset variable aiming at the target object and recording all the operations executed aiming at the target object in the storage area corresponding to the target object.
In an alternative embodiment, reloading the operation for the preset variable for the target object, and recording all the operations performed for the target object in the storage area corresponding to the target object, including: when the operation for the preset variable is reloaded for the target object, the operation for the target object is acquired through the attribute setting function, and all the operations executed for the target object are recorded in the storage area corresponding to the target object.
In an alternative embodiment, the reloadable operation includes at least one of: a numeric operation in a numeric type variable, a type conversion operation in a numeric type variable, an insert operation in a non-numeric type; the non-reloadable operation includes at least: assignment operations in value type variables.
In an alternative embodiment, the data processing apparatus includes: the first acquisition unit is used for acquiring a tracking path of the target object after performing variable tracking operation on the target object based on a tracking mode; the second acquisition unit is used for determining a modification area of the target object based on the tracking path and obtaining a tracking result aiming at the preset variable.
According to another aspect of the embodiments of the present invention, there is provided a storage medium including a stored program, wherein the program controls a device in which the storage medium is located to perform the method of processing data according to any one of the above.
According to another aspect of the embodiment of the present invention, there is further provided a processor, configured to execute a program, where the program executes the method for processing data according to any one of the above methods.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, for example, may be a logic function division, and may be implemented in another manner, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a usb disk, a read-only memory (ROM), a random access memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.

Claims (9)

1. A method of processing data, comprising:
carrying out self-defining processing on a preset variable to obtain a target object, wherein the preset variable is a variable used in a preset programming language, the preset programming language is an interpretation script language, and the target object is an object needing variable tracking;
Determining a tracking mode based on an operation type of the operation aiming at the preset variable, wherein the tracking mode is used for carrying out variable tracking on the target object;
Performing variable tracking operation on the target object based on the tracking mode;
Wherein the determining the tracking manner based on the operation type of the operation for the preset variable includes:
When the operation type of the operation aiming at the preset variable is reloadable operation, determining that the tracking mode is to reload the operation aiming at the preset variable aiming at the target object;
Wherein, based on the tracking mode, variable tracking operation is executed on the target object, including: when the operation of reloading the preset variable aiming at the target object is performed, the function is set through the rewriting attribute so as to track the preset variable.
2. The method of claim 1, wherein the operation types include: and the device can be operated in a heavy load mode and can not be operated in a heavy load mode.
3. The method of claim 2, wherein performing a variable tracking operation on the target object based on the tracking manner comprises:
And reloading the operation aiming at the preset variable aiming at the target object, and recording all the operations executed aiming at the target object in a storage area corresponding to the target object.
4. A method according to claim 3, characterized in that the method further comprises:
And when the operation for the preset variable is reloaded for the target object, acquiring the operation for the target object through the attribute setting function.
5. The method of claim 2, wherein the reloadable operation comprises at least one of: a numeric operation in a numeric type variable, a type conversion operation in a numeric type variable, an insert operation in a non-numeric type;
The non-reloadable operation includes at least: assignment operations in value type variables.
6. The method according to any one of claims 1 to 5, characterized in that after the variable tracking operation is performed on the target object based on the tracking manner, the method comprises:
acquiring a tracking path of the target object;
And determining a modification area of the target object based on the tracking path to obtain a tracking result aiming at the preset variable.
7. A data processing apparatus, comprising:
the self-defining processing unit is used for carrying out self-defining processing on a preset variable to obtain a target object, wherein the preset variable is a variable used in a preset programming language, the preset programming language is an interpretation script language, and the target object is an object needing variable tracking;
the determining unit is used for determining a tracking mode based on the operation type of the operation aiming at the preset variable, wherein the tracking mode is used for carrying out variable tracking on the target object;
the execution unit is used for executing variable tracking operation on the target object based on the tracking mode;
Wherein the determining unit is further configured to determine the tracking manner based on the operation type of the operation for the preset variable by: when the operation type of the operation aiming at the preset variable is reloadable operation, determining that the tracking mode is to reload the operation aiming at the preset variable aiming at the target object;
Wherein the execution unit is further configured to perform a variable tracking operation on the target object based on the tracking manner by: when the operation of reloading the preset variable aiming at the target object is performed, the function is set through the rewriting attribute so as to track the preset variable.
8. A storage medium comprising a stored program, wherein the program, when run, controls a device in which the storage medium is located to perform the method of processing data according to any one of claims 1 to 6.
9. A processor for running a program, wherein the program when run performs the method of processing data according to any one of claims 1 to 6.
CN202010420447.XA 2020-05-18 2020-05-18 Data processing method and device, storage medium and processor Active CN111562954B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010420447.XA CN111562954B (en) 2020-05-18 2020-05-18 Data processing method and device, storage medium and processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010420447.XA CN111562954B (en) 2020-05-18 2020-05-18 Data processing method and device, storage medium and processor

Publications (2)

Publication Number Publication Date
CN111562954A CN111562954A (en) 2020-08-21
CN111562954B true CN111562954B (en) 2024-04-19

Family

ID=72071023

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010420447.XA Active CN111562954B (en) 2020-05-18 2020-05-18 Data processing method and device, storage medium and processor

Country Status (1)

Country Link
CN (1) CN111562954B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB201314585D0 (en) * 2013-08-14 2013-09-25 Micro Focus Ip Dev Ltd Processing for application program deployment
CN108062326A (en) * 2016-11-08 2018-05-22 北京国双科技有限公司 A kind of update recording method of data message and device
CN108270604A (en) * 2016-12-30 2018-07-10 北京亿阳信通科技有限公司 A kind of method for tracing and system of business datum change
CN109634574A (en) * 2018-12-20 2019-04-16 武汉精立电子技术有限公司 Variable based on microkernel architecture monitors method and system in real time

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB201314585D0 (en) * 2013-08-14 2013-09-25 Micro Focus Ip Dev Ltd Processing for application program deployment
CN108062326A (en) * 2016-11-08 2018-05-22 北京国双科技有限公司 A kind of update recording method of data message and device
CN108270604A (en) * 2016-12-30 2018-07-10 北京亿阳信通科技有限公司 A kind of method for tracing and system of business datum change
CN109634574A (en) * 2018-12-20 2019-04-16 武汉精立电子技术有限公司 Variable based on microkernel architecture monitors method and system in real time

Also Published As

Publication number Publication date
CN111562954A (en) 2020-08-21

Similar Documents

Publication Publication Date Title
KR101036679B1 (en) Test case inheritance controlled via attributes
US9940108B2 (en) Automated merging in a software development environment
CN111090433B (en) Data processing method, device and storage medium
CN111414377B (en) Method, device and storage medium for processing structured query statement
CN112685410B (en) Business rule checking method, device, computer equipment and storage medium
CN110032568B (en) Data structure reading and updating method and device, and electronic equipment
US7340725B1 (en) Smart test attributes and test case scenario in object oriented programming environment
US11422917B2 (en) Deriving software application dependency trees for white-box testing
US20080196009A1 (en) Apparatus and method for componentizing legacy system
CN111984666A (en) Database access method and device, computer readable storage medium and computer equipment
CN111562954B (en) Data processing method and device, storage medium and processor
CN112631763A (en) Program changing method and device of host program
AU2018248380A1 (en) System and method for providing supplemental functionalities to a computer program
CN110134434B (en) Application generation processing method and system and application generation system
CN116841906A (en) Intelligent contract detection method and device and electronic equipment
CN113495829A (en) Automatic interface testing method and system
CN116155934A (en) Method, device, electronic equipment and storage medium for intelligent contract call account book
US20200117432A1 (en) User interface resource file optimization
US10657476B2 (en) Just in time compilation (JIT) for business process execution
CN113961238A (en) Object conversion method and device, electronic equipment and storage medium
Ceccato et al. Data model reverse engineering in migrating a legacy system to Java
CN111638904B (en) Data configuration restoration method and device and readable storage medium
CN112035161B (en) Applet release verification method and parallel release method
CN110045985B (en) Targetlink model calibration parameter setting method, device, equipment and medium
WO2022215185A1 (en) Code correction device and code correction method

Legal Events

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