CN100517266C - Function call tracking system and method - Google Patents
Function call tracking system and method Download PDFInfo
- Publication number
- CN100517266C CN100517266C CNB2007101289502A CN200710128950A CN100517266C CN 100517266 C CN100517266 C CN 100517266C CN B2007101289502 A CNB2007101289502 A CN B2007101289502A CN 200710128950 A CN200710128950 A CN 200710128950A CN 100517266 C CN100517266 C CN 100517266C
- Authority
- CN
- China
- Prior art keywords
- output
- information
- module
- function
- focus
- 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.)
- Expired - Fee Related
Links
Images
Abstract
A function calling-on tracking method includes setting configuration file of configuration module and registering concerned point, assigning output grade and output position then outputting system information according to tracking parameter. The system used for realizing said method is also disclosed.
Description
Technical field
The present invention relates to software systems follows the tracks of and system's operation monitoring technology.
Background technology
Modern software systems problem to be solved becomes increasingly complex, and its scale and complexity are also more and more higher.At present, modularized design method is generally adopted in application system development.Software systems are made of each functional module, each sub-function module is finished single relatively specific function, the realization of the function point of each functional module is called by a series of function (method) and is finished, and function (method) is the minimum component units of sub-function module.The function that submodule need be realized is very single-minded, and the design of submodule realizes also simple relatively, and such method for designing helps designing easily, also is convenient to the multi-person synergy exploitation.Simultaneously, by the interface of well-designed intermodule, the change that makes a certain functional module is reduced to minimum level to the influence of other modules, and this effectively reduces improved workload of system upgrade and fallibility in the future.
Independent sub-function module does not have practical significance, each subfunction of system must be shared out the work and helped one another to realize the required work of finishing of software systems, this just needs to call mutually between them, coupling between each submodule is inevitable like this, and each submodule carries part and the irrelevant extra section of its Core Feature always.One of groundwork of modern procedures designer is exactly to seek the whole bag of tricks the degree of coupling between functional module is reduced to bottom line.
In the modern Application system, the designer needs on top of operational scheme, running status and the operational factor of system, reach such purpose, need add tracker at the focus place of system.When this focus activated, tracker can be according to the mode of hope, and the operational factor that the designer need be paid close attention to outputs to appointed positions with the form of expecting.Adopt in the modular design method designed system at one, the implementation of prior art is that the format that will comprise output information, outgoing position, output action itself etc. are organized in the functional module, and this module can be called tracking module.It externally only provides an entrance, i.e. ' tracking ' of tracker action.This tracking module is arranged on the focus place of internal system.The shortcoming of this scheme is as follows:
1, need all quote tracking module at each focus place, if focus is a lot, the workload of then designing and developing is very big;
2, at each focus place, tracker action is set is repetition, if the inlet of tracking module is realized changing, then need the tracker setting at every place in the modification system.When focus was a lot, the workload of modification was very big.If weigh the degree of coupling of business module and tracking module with the number of times that tracking is set, even if adopt modular design as can be seen, the degree of coupling also can the linear increase with the increase of focus.In other words, following function has spread with the increase of focus.
3, for cooperating tracking module work, where and how business module need be arranged on exports operational factor to assigned address, thereby, in business module, have with the irrelevant function of its Core Feature and realize existing.
How to address the aforementioned drawbacks, be purpose of the present invention.
Summary of the invention
The present invention proposes a kind of function call tracker and tracking, and the calling of function (method) of functional module minimum unit followed the tracks of.The present invention need not in business function inside tracker to be set, thereby solves the above-mentioned defective of prior art.
The invention provides a kind of function call tracker, this system mainly comprises following module:
Output module is used for rank and form output information according to appointment;
Configuration module is used to dispose the information of each focus and the information and the output rank of needs output;
Control module is used for the focus information setting tracker according to described configuration module configuration, and the information setting output format according to the needs of described configuration module configuration are exported communicates information to described output module.
Further, described control module comprises blocker, is used to register the function name that needs tracking, and before the function that need are followed the tracks of is called, notifies described control module.
The present invention also provides a kind of said system of utilizing to carry out the method that function call is followed the tracks of, and may further comprise the steps:
Step 1 is provided with the configuration file of configuration module, and the registration focus comprises function name that needs are tracked and affiliated object thereof, exports rank.Focus can have a plurality of.
Step 2 is provided with the configuration file of output module, specifies output rank and outgoing position.
Step 3, operation control module is when calling tracked function, according to tracking parameter output system information.
Further, described function call tracking, described step 1 specifically may further comprise the steps:
Further, described function call tracking, described step 3 specifically may further comprise the steps:
Step 31, described blocker is activated when function call takes place;
Step 32 need to judge whether output parameter, if need then carry out step 33, otherwise carry out step 34;
Step 33 is gathered function parameters information, organized formats output;
Step 34 need to judge whether the output rreturn value, if need then carry out step 35, otherwise carry out step 36;
Step 35 checks whether current function has rreturn value, if then organized formats output is arranged, otherwise does not export the information of rreturn value;
Step 36 is judged the current output information that whether has, and carry out step 37 if having then, otherwise carry out step 39, and this tackles end;
Step 37 reads the output class information specific to this focus from the focus configuration information from described configuration module;
Step 38 will be exported class information and output information passes to output module;
Step 39, this tackles end, waits for activation next time.
Compared with prior art, the present invention need not in business function inside tracker to be set, can realize system running states such as function or method call, operational factor are followed the tracks of, the degree of coupling of business function module and tracking module can be remained on steady state value, the increase with focus does not change, significantly reduced the degree of coupling between system business module and the tracking module, improved the maintainability of system, made system architecture more clear.
Description of drawings
Fig. 1 is the application synoptic diagram of tracker of the present invention;
Fig. 2 is that control module blocker of the present invention is set up process flow diagram;
Fig. 3 is the process flow diagram that control module of the present invention generates output information.
Embodiment
Below in conjunction with drawings and Examples technical scheme of the present invention is described in detail.
Fig. 1 is the application synoptic diagram of tracker of the present invention, and wherein filled box is the internal module of tracker, and imaginary circle is an external unit.Wherein configuration module 11 reads configuration file 10, obtains configuration information, comprises the object oriented at focus place, focus function (method) title, and the output information rank, whether output parameter exports rreturn value.If there are a plurality of focus, then all focus information data structure are discharged in proper order, pass to control module.
Control module is the core of native system, and it comprises two main processing logics, and one to be the focus configuration information that transmits according to configuration module generate the blocker of focus at business object, and another is to generate output information in blocker.Below in conjunction with the flow process of the control module of analyzing this function call tracker, explain tracking of the present invention in detail.
After setting configuration module and output module, operation control module at first will be created blocker.
Fig. 2 is the process that generates blocker.
Fig. 3 is the process that generates output information.
Whether step 302, Rule of judgment, current function need to follow the tracks of, if very then carry out step 303, otherwise carry out steps 310, and this tackles end;
Step 308 reads the specific output class information of this focus in the focus configuration information of self-configuring module always;
Step 309 is connected with output module, will export class information and output information passes to output module;
Certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection domain of the appended claim of the present invention.
Claims (3)
1, a kind of function call tracker is characterized in that, comprises with lower module:
Output module is used for output rank and form output information according to appointment;
Configuration module is used to dispose each focus information and output information and output class information; Described focus information comprises the object oriented at focus function name and focus place;
Control module, described control module is connected with described output module with described configuration module respectively, obtain the focus information of configuration module configuration, set up the blocker of the tracked function of needs according to the object oriented at focus place, registration needs tracked function name in described blocker, described blocker is before the tracked function call of needs, the notice control module, control module is according to the function name of registration and whether focus information decision exports and output tracking information how, and passs output module with output information and output stage supplementary biography.
2, function call tracker as claimed in claim 1 is characterized in that, described control module comprises blocker, is used to register the tracked function name of needs, and before the tracked function of needs is called, notifies described control module.
3, a kind of claim 1 or 2 described systems of utilizing carry out the method that function call is followed the tracks of, and it is characterized in that, may further comprise the steps:
Step 1 is provided with the configuration file of configuration module, and the registration focus comprises function name that needs are tracked and affiliated object oriented thereof, exports rank;
Step 2 is provided with the configuration file of output module, specifies described output rank and outgoing position;
Step 3, whether the control module retrieval also has untreated focus information, if have, then read in object oriented, search in current object blocker tabulation according to object oriented,, then create blocker according to object oriented if do not find already present blocker, and join in this blocker tabulation, registration needs tracked function name in blocker; Secondly, described blocker is activated when function call takes place, need to judge whether the parameter information of output function, if need then gather the output of function parameters information and organized formats, need to judge whether the rreturn value of output function, if need check then whether current function has rreturn value, if then organized formats output is arranged, judge the current output information that whether has, if the output class information that then reads from the focus configuration information of configuration module specific to this focus is arranged, to export class information and output information passes to output module, and finish this interception and wait for next time activation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2007101289502A CN100517266C (en) | 2007-07-27 | 2007-07-27 | Function call tracking system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2007101289502A CN100517266C (en) | 2007-07-27 | 2007-07-27 | Function call tracking system and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101089827A CN101089827A (en) | 2007-12-19 |
CN100517266C true CN100517266C (en) | 2009-07-22 |
Family
ID=38943191
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2007101289502A Expired - Fee Related CN100517266C (en) | 2007-07-27 | 2007-07-27 | Function call tracking system and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100517266C (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101246449B (en) * | 2008-02-25 | 2011-08-10 | 华为技术有限公司 | Tracking function invocation track method and device |
CN108446217A (en) * | 2018-02-09 | 2018-08-24 | 福建升腾资讯有限公司 | A kind of method and computer equipment controlling Debugging message output by sub-module |
-
2007
- 2007-07-27 CN CNB2007101289502A patent/CN100517266C/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN101089827A (en) | 2007-12-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102521137B (en) | Debugging in multicore architecture | |
CN105183698B (en) | A kind of control processing system and method based on multi-core DSP | |
CN104331366A (en) | Test case design efficiency promotion method and system | |
CN1818912A (en) | Scalable reconfigurable prototyping system and method | |
CN102722440A (en) | Debugging device of executive codes of embedded system, debugging method and embedded system | |
CN104348673B (en) | A kind of method of commissioning, master control borad and business board | |
CN102438010B (en) | For the method and apparatus of streaming data profiling | |
CN102306122A (en) | Automated testing method and equipment | |
CN109857684A (en) | The device, method and system of communication device board card slot bit address and type identification | |
CN102033741B (en) | North interface system and realization method thereof | |
US10091066B2 (en) | Integration method and system | |
CN101309178B (en) | Parsing method and apparatus for automatic exchanging optical network systematic log information | |
CN109933315A (en) | A kind of patterned transaction processing system and method | |
CN105701317A (en) | Method and system for correcting signal missing in schematic diagram designing | |
CN104050028A (en) | Method and apparatus to trigger and trace on-chip system fabric transactions within the primary scalable fabric | |
CN100517266C (en) | Function call tracking system and method | |
CN109815073B (en) | PXI platform-based high-speed serial port SRIO test method | |
CN102402455A (en) | Method and device for calling dynamic link library (DLL) | |
CN101604290A (en) | A kind of background module method of testing and background module test macro | |
CN102819488A (en) | Test processing device and test processing method | |
CN106997313A (en) | A kind of signal processing method of application program, system and terminal device | |
CN102130796A (en) | Power communication network detecting method based on reverse N-1 analysis and system thereof | |
CN101123474A (en) | A method for implementing automatic configuration of service type on optical conversion board | |
CN205091732U (en) | Automatic switching device for USB interface | |
CN104038388A (en) | Distributed automatic testing system and automatic testing method for Internet of Things |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20090722 Termination date: 20190727 |