CN105740120A - Shared memory based real-time monitoring and control method and system for software running process - Google Patents

Shared memory based real-time monitoring and control method and system for software running process Download PDF

Info

Publication number
CN105740120A
CN105740120A CN201410766205.0A CN201410766205A CN105740120A CN 105740120 A CN105740120 A CN 105740120A CN 201410766205 A CN201410766205 A CN 201410766205A CN 105740120 A CN105740120 A CN 105740120A
Authority
CN
China
Prior art keywords
shared drive
variable
monitored
control
value
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.)
Granted
Application number
CN201410766205.0A
Other languages
Chinese (zh)
Other versions
CN105740120B (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.)
Institute of Software of CAS
Original Assignee
Institute of Software of CAS
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 Institute of Software of CAS filed Critical Institute of Software of CAS
Priority to CN201410766205.0A priority Critical patent/CN105740120B/en
Publication of CN105740120A publication Critical patent/CN105740120A/en
Application granted granted Critical
Publication of CN105740120B publication Critical patent/CN105740120B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention relates to a shared memory based real-time monitoring and control method and system for software running process, which can be used for dynamically acquiring a variable value, a software running state and various parameters in a software program during the software running process and supporting real-time control of software execution flow. By the method and the system, the variable value, the software running state and various parameters in the software program can be periodically collected, and the execution flow is controlled in real time; during real-time data collection, a shared memory is only needed to be periodically read, the corresponding data in the shared memory is acquired, the related software running state can be acquired, the running of a current program is not needed to be stopped, and the influence on the program is reduced; and during real-time control of the execution flow, the real-time control of the execution flow is achieved by changing the control variable value of the shared memory. The invention provides a simple shared memory management interface easy to use, and the collection of the soft running state and the control of the execution flow can be supported better.

Description

Software running process based on shared drive is monitored and control method and system in real time
Technical field
The invention belongs to areas of information technology, particularly relate to the method that software running process is monitored in real time and controlled, it is possible to be applied to development technique field and the software error debugging field of various monitoring software.
Background technology
In software development and running, it usually needs understand the ruuning situation of software, and when making a mistake, mistake is carried out quickly location and reparation, thus providing service reliably.But, in reality, software often only exports the result needed for user, and user is fully transparent by most global or local variable.Therefore, if running into mistake on stream, it is necessary to shut down procedure, debug;Running encounters problems, it is necessary to out of service, carry out mistake investigation and location.In this process, developer relies only on abnormal, daily record or debugging acid searching, the Wrong localization that system is dished out, simultaneously need to the operation of time out program.These operations have impact on reliability of service, even brings unnecessary loss to user.In certain special cases, owing to the executable program of Debug version with the addition of substantial amounts of assistant adjustment information, its runnability is a greater impact, it is thus possible to cause that Debug version does not have mistake, and Release version there will be the problem that mistake is even collapsed.It addition, substantial amounts of assistant adjustment information is likely to when causing occurring mistake, only destroying and do not affect the tune-up data that program performs, thus causing that Debug version does not have the mistake relevant to software, Release version then there will be the problem that mistake is even collapsed.Therefore, under non-debugging enironment, obtaining software operation state even control software design in real time is very important for developer, especially for the developer relating to key foundation software development, the method that the present invention proposes provides a kind of software debugging method that can play effect of crucial importance for them.
In software running process, each locally or globally variable value and change directly or indirectly reflect software real-time running state, additionally, correlated variables can be increased at software inhouse software operation state to be added up or record, successful number of times or the total time that in record a period of time, certain function performs is sent as increased socket data in a statistics of variable network transmission.The monitoring of these variate-values, control are contributed to developer and grasps current running software situation, finds out the performance bottleneck of software.The more important thing is, when software errors, by the monitoring to variate-value, control in conjunction with rational flow process, can the dynamic Wrong localization position of helper developer, without suspending the operation of software, it is prevented effectively from the problem that Debug version cannot reappear mistake because with the addition of substantial amounts of assistant adjustment information simultaneously.Thus namely saving the debugging time, it also avoid the inconvenience brought to user out of service.
Therefore, for ensureing the errors present of positioning software quick, dynamic, provide the user reliable service, it is necessary to software running process is carried out real-time monitoring, software execution flow journey is carried out real-time control.
Summary of the invention
The present invention is directed to the mistake lookup in software running process, location requirement, design and propose a kind of software running process based on shared drive and monitor in real time and control method and system.
In software system research and development and system operation, it will usually run into the problem that mistake is searched and positioned.In order to ensure when not stopping running software, mistake be made a look up and positions, it is necessary to software running process is carried out real-time monitoring, carrying out real-time control to performing flow process.It addition, at some special occasions, it is impossible to use Debug version to debug, in this case, how software running process is carried out monitoring and control in real time and be particularly important.Such as, software goes wrong in user scene execution process, and is difficult under the test environment reproduce, and writes daily record meeting extreme influence software performance simultaneously, now needs software running process carries out monitoring in real time and controls, and carries out Commissioning Analysis on this basis.For another example, Debug version is no problem, and when Release version can collapse, it is also desirable to software running process is carried out monitoring in real time and controls.The monitoring of software and control generally require another program displays monitoring result and transmission control information, namely need an independent monitoring programme.In an operating system, program is run with the form of process.Data between monitoring programme and monitored program transmit substantially communication between process.In monitoring process, the variable of system or program is numerous, and renewal speed is generally very fast, and therefore, data exchange must have higher handling capacity, and this is that pipeline, semaphore, message queue can not meet very well.In addition, when Commissioning Analysis software bug, sometimes need the execution flow process of software is controlled in software running process, thus defining the code region at bug place, therefore, how dynamically the execution flow process of control software design is also the technical issues that need to address of the present invention.
The present invention is directed to this kind of technical problem, propose a kind of software running process general, based on shared drive to monitor in real time and the technical solution controlled, give software running process to monitor in real time and the detailed architecture controlled and interface, on the one hand, can the R&D work of simplified system or program monitoring software, save the research and development time;On the other hand, it is possible to meet that developer is quick, the demand of dynamic Wrong localization.
As it is shown in figure 1, this technical solution relates generally to three parts: 1, shared drive structure;2, shared-memory management interface;3, shared drive read-write.Monitoring programme and monitored program create shared drive by calling shared-memory management interface, obtain the mapping of shared drive, shared drive is mapped on the predefined structure comprising monitored variable, hereafter, by the variate-value in shared drive just can be operated by the read-write operation of this structure.By shared drive read-write operation, the value of variable to be monitored or statistical variable is write shared drive by monitored program, and reads control variable value from shared drive;Monitoring programme periodically reads the value of variable to be monitored or statistical variable, shows user or stores, and the value of on-demand write control variable.It should be noted that the stationary problem not accounting for shared drive in this technical solution, this is because the renewal speed of variable to be monitored is fast, data volume is big, and in a read cycle of monitoring programme, variate-value to be monitored may repeatedly be covered by new value.
In the development phase, first developer creates the structure being made up of variable to be monitored and statistical variable.Then, injecting codes in monitored program, complete in shared drive, write to be monitored and the value of statistical variable, the value reading control variable and execution control routine function;In monitoring programme, read cycle is set, writes reading code, control routine and result treatment code, reading and control result are showed user or store.
At initial phase, monitored routine call shared-memory management interface creates shared drive, is mapped to by shared drive on the structure of development phase definition;Monitor call shared-memory management interface obtains the identifier of shared drive, is mapped to by shared drive on the structure of development phase definition.Subsequently, can pass through to access this structure in monitoring programme with monitored program and realize the read-write operation to shared drive.It is concrete as shown in Figure 2 that shared drive initializes flow process.
In real-time monitoring process, monitored program updates the variate-value corresponding in shared drive with statistical variable to be monitored according to injecting codes;Monitoring programme regularly reads the relevant variable value in shared drive, and shows end user or store.When monitored program runs to the code that developer injects, update the value of variable to be monitored or statistical variable, and by the write operation to structure, variate-value corresponding in amendment shared drive, the numerical value completing variable to be monitored and statistical variable updates;Structure is periodically performed read operation by monitoring programme, obtain the value of variable to be monitored corresponding in shared drive and statistical variable, and monitoring result shows user or write real-time data base carry out history data store, for showing, follow the tracks of, review running software change procedure, thus advantageously in analyzing and debugging code.The flow process of monitored program is concrete as it is shown on figure 3, the flow process of monitoring program is concrete as shown in Figure 4.
In flow control procedure, the value of monitoring programme amendment control variable, monitored program determines to perform flow process according to the value of control variable, it is achieved real-time Row control.Control variable value according to the actual requirements, by structure is performed write operation, is write in shared drive by monitoring programme;When monitored program goes to the control routine being previously implanted, by structure is carried out read operation, obtain the value of corresponding control variable, and this value and control condition are contrasted, if meeting control condition, then perform control, the execution flow process of change program, otherwise, original flow process is continued executing with.The flow process of controlled processing procedure sequence is concrete as it is shown in figure 5, the flow process controlling program is concrete as shown in Figure 6.
Corresponding to above method, the real-time Monitoring and control system of the software running process based on shared drive of the present invention, including monitoring programme, monitored program, shared drive and shared-memory management interface;Monitored routine call shared-memory management interface creates shared drive, and monitor call shared-memory management interface obtains shared drive;When monitoring of software, the value of variable to be monitored or statistical variable is write shared drive by monitored program, and for monitoring of software running, monitoring programme reads the value of variable to be monitored or statistical variable, shows user or stores;When control software design, the value of control variable is write shared drive by monitoring programme, and monitored program reads control variable value from shared drive, determines to perform flow process according to the value of control variable, it is achieved real-time Row control.
According to above technical solution it can be seen that the method have the advantages that
1, the present invention proposes the software running process based on shared drive and monitors in real time and control method, can in software running process the obtaining the variate-value of software, software operation state and various parameter and the execution flow process of software controlled in real time of cycle, thus greatly facilitating the location of mistake of monitored program, save the time of mistake debugging, and be the situation that mistake only just occurs at Release version, it is provided that the method for a kind of auxiliary code analysis debugging.
2, the medium that the present invention exchanges using shared drive as data, it is possible to quickly respond renewal and the read-write operation of mass data, decrease the delay that monitored program is brought because updating variate-value to be monitored, reduce the impact on monitored program.Meanwhile, monitoring programme only interacts with shared drive with monitored program, reduces the coupling of program.
3, the invention provides succinct shared-memory management interface, developer only need to define the structure comprising variable to be monitored, and is incorporated herein the interface of offer, can create a monitoring programme.Reduce the Innovation Input of monitoring system, save the research and development time.
Accompanying drawing explanation
Fig. 1 is the overview flow chart of the inventive method;
Fig. 2 is shared drive initialization flowchart;
Fig. 3 is the flow chart of monitored program;
Fig. 4 is the flow chart of monitoring program;
Fig. 5 is the flow chart of controlled processing procedure sequence;
Fig. 6 is the flow chart of control program.
Detailed description of the invention
Understandable for enabling the above-mentioned purpose of the present invention, feature and advantage to become apparent from, below by specific embodiment, the present invention will be further described.
1, to be monitored with control variable structure
To be monitored as follows with the definition of control variable structure:
Wherein, intValue, charValue, floatValue etc. are self-defining variable, these variablees can comprise the locally or globally variable in software code, the self-defining statistical variable of research staff, is likely to, for performing the control variable of Row control and other, the auxiliary variable that uses.Variable in this structure according to demand, can be increased, revise and delete by research staff.
2, shared-memory management interface method realizes
Shared-memory management interface achieves establishment and the acquisition of shared drive, and is mapped to by shared drive on an exercisable structure of this thread.The invention provides this interface implementing under Linux environment and under Windows environment.It is defined as follows:
(1) under Linux environment, shared-memory management interface method realizes
intInitShmInfo(void**pp_myParam,int*p_myShm_id,key_tmyShm_key,size_tmyShm_size);
Wherein, pp_myParam points to deposit to be monitored and control variable structure pointer pointer, for returning the pointer pointing to shared drive;P_myShm_id returns the reference identifier of shared drive, for the cleaning operation of shared drive;Key_t type is SYSVIPC key assignments, defines, substantially int data type in Linux header file types.h;MyShm_key is the key assignments of shared drive, and whether the shared drive for judging correspondence is created, and monitoring programme must be identical with the key assignments of monitored program;Size_t type is to define in standard C storehouse, is unsignedint data type, is longunsignedint data type in 64 systems in 32 systems;MyShm_size is the size in shared drive region.The return value of this interface is integer type, and return value is 0, represents that shared drive creates successfully, and successfully obtains the structure pointer pointing to shared drive;Return value is-1, represents and creates or obtain shared drive failure;Return value is-2, represents shared drive and the connection failure with control variable structure to be monitored, and research staff obtains the structure pointer failure pointing to shared drive, it is impossible to by the operational access shared drive to structure.
It is as follows that shared-memory management interface method implements code:
In the implementing of the method, 5th row is for creating or obtain the reference identifier of shared drive, wherein IPC_CREAT represents the shared drive then newly-built shared drive that if there is no key assignments is equal with myShm_key, otherwise, returns the identifier of this shared drive.6th row judges whether shared drive creates or obtain successfully, if it fails, then return-1, otherwise, continues executing with.9th be about to shared drive be mapped to be monitored with on control variable structure, if it fails, then perform the 11st row, return-2, otherwise, be assigned to p_myShm_id in the 12nd reference identifier being about to shared drive, return to and call function.If interface does not make a mistake in the process of implementation, then perform the 14th row, return 0.After this interface successful execution, can pass through to access the pp_myParam structure pointed to, shared drive is written and read operation.
(2) under Windows environment, shared-memory management interface method realizes
intInitShmInfo(void**pp_myParam,HANDLE*ghMapObjectHandle,LPCTSTRlpName,DWORDsize);
Wherein, pp_myParam points to deposit to be monitored and control variable structure pointer pointer, for returning the pointer pointing to shared drive;HANDLE type is the concept in Windows operating system, and it uses a unique integer value to carry out the different instances of the different objects in identification application and homogeneous object;GhMapObjectHandle returns the file mapping handle of shared drive, can be used for the cleaning operation of shared drive;LPCTSTR type is constchar* type, is used for representing UNICODE character string;LpName is shared drive title, and monitoring programme must be identical with shared drive title in monitored program.DWORD type is unsignedlong type;Size is the size in shared drive region.The return value of this interface is integer type, and return value is 0, represents that shared drive creates successfully, and successfully obtains the structure pointer pointing to shared drive;Return value is-1, represents and creates or obtain shared drive failure;Return value is-2, represents the view failure setting up file, and research staff cannot obtain the pointer of operation shared drive.
It is as follows that shared-memory management interface method implements code:
In the implementing of the method, the 7th~14 row is provided with the access rights of shared drive;16~21 row create shared drive;If creating unsuccessfully, then perform the 24th row, return-1;27th~30 row, is mapped to file data the address space of process, returns the pointer pointing to shared drive;If mapping unsuccessfully, then perform the 33rd row, return-2.35th row points to the pointer of shared drive for returning;36th row is for returning the file mapping handle of shared drive.If interface does not make a mistake in the process of implementation, then perform the 38th row, return 0.After this interface successful execution, can pass through to access the pp_myParam structure pointed to, shared drive is written and read operation.
3. concrete application scenarios and realize method
Method provided by the invention is in use, it is necessary first to definition comprises the structure DataCollectionAndControl with control variable to be monitored, and this structure defines in dataSet.h header file, and particular content is as follows:
Wherein, the 2nd~12 behavior is to be monitored with control variable structure, can comprise the locally or globally variable in software code, the self-defining statistical variable of research staff, is likely to, for performing the control variable of Row control and other, the auxiliary variable that uses.Developer can increase, revise and delete variable therein according to demand.14th row is the global structure body pointer for pointing to shared drive.14th row is other definition being likely to the constant, variable and the function that need in monitoring programme and monitored program.
Method provided by the invention can be played a positive role in following application scenarios:
(1) which step determining program goes to
It is as follows that monitored program implements code:
After monitored program performs initialization, according to the code that the 3rd, 5,7,9,11 row inject, monitored program is gone to which step and is written in shared drive with the form of numerical value.Monitoring programme after initialization, periodically reads the value of iProcessPosition, if the currency of iProcessPosition is k and meets k=i, then illustrates that function ProcessI-1 is finished, is about to perform function ProcessI.If the iProcessPosition read always remains as k after some time, then illustrate that function ProcessI there is a problem.
(2) number of times that certain condition is satisfied is added up
It is as follows that monitored program implements code:
Monitored function obtains the function return value of Boolean type after performing initialization at the 3rd row, and the 4th result being about to return, as Rule of judgment, adds up the number of times that this condition is satisfied.If condition is true, then performs the 5th row, statistical value is added one, corresponding variate-value in amendment shared drive.Otherwise perform eighth row, continue executing with the original code of monitored program or function.Monitor function after initialization, by periodically reading the value of iSatifiedTimes, it is possible to obtain the number of times that certain condition is satisfied, in network programming, the number of times of data transmission fails.Number of times is met, it is possible to whether effective discriminant function function is executed correctly or current network condition etc. by adding up.
(3) currency of certain locally or globally variable is obtained
It is as follows that monitored program implements code:
After monitored program performs initialization, the 4th row have updated the value of local variable localParam.5th last look being about to localParam is stored in shared drive.6th row continues executing with original code or function.Monitoring programme after initialization, by periodically reading the value of fCurrentValue in shared drive, can get the value of current local variable localParam.May be used for the currency of the locally or globally variable that monitoring developer is concerned about, come whether determining program correctly performs with this.
(4) the execution time of certain section of code is added up
It is as follows that monitored program implements code:
After monitored program performs initialization, obtain, at the 5th row, the time that code starts to perform.7th row obtains the time that code performs to terminate.8th~9 row calculates the time that code performs, and unit is ms.10th be about to code the execution time write shared drive in dependent variable.The execution time of code has been added up by the 12nd row, code is added up the execution time write shared drive in dependent variable.After monitoring programme initializes, by periodically reading the value of fCostTime, it is possible to obtain the time that code performs, thus the execution speed of certain section of code is analyzed, draw the position that the possibility of program is wrong or to be optimized.One execution period shorter code is likely to, after being frequently executed, the bottleneck forming software performance.Therefore, fTotalTime is adopted to record accumulative execution time of certain section of code, by this time is analyzed, it is thus achieved that the average performance times of this function in the unit interval, it is possible to effectively to find in program and the most easily make a mistake or position to be optimized.
(5) control whether certain section of code performs
It is as follows that monitored program implements code:
After monitoring programme performs initialization, the value of monitored variable is write in shared drive.Monitored program after initialization, reads the control variable value in shared drive at the 3rd row.Using the variate-value Rule of judgment as the 4th row, if condition is true, then performs the 6th line function, otherwise, skip the 6th line code, directly execution eighth row code.The execution of certain section of code, the location of auxiliary software error can be effectively controlled by the method.During as bIsGonaProcess being set to TRUE in monitoring programme, software performs failure;When being set to FALSE, software runs succeeded, and illustrates that mistake is likely in Process1.
(6) in multiple execution branches, one is selected
It is as follows that monitored program implements code:
The variable controlling branching selection after initialization, is write in shared drive by monitoring programme.After monitored program initialization, read the control variable value in shared drive at the 3rd row.And using the value of the control variable condition as branching selection in the 4th row, if the value of processChoice is i, then perform code corresponding to casei.By the method can the execution flow process of control software design careful, efficient, thus the errors present of more accurate positioning software.Use the method for different scenes, most suitable carrying into execution a plan can be selected for software dynamically simultaneously, optimize the efficiency of software.As in data sorting scene, it is possible to the data acquisition system being different by control variable specifies most suitable sort method.
(7) the execution condition of certain section of code is changed
It is as follows that monitored program implements code:
Execution condition after initialization, is write shared drive by monitoring programme.After monitored program initialization, read the value of execution condition at the 3rd row.And compare at the 4th row and local variable, if satisfying condition, performing the 6th line code, otherwise performing eighth row code.Can the condition that is performed of control routine by the method.The value being modified local variable may cause program to perform the change of result to the execution controlling program, and causing can not correct wrongheaded source.Now, execution condition it is modified, it is possible to the execution flow process of effective control software design, it is to avoid the mistake that the value because revising local variable is brought.
Above example is only limited in order to technical scheme to be described; technical scheme can be modified or equivalent replacement by those of ordinary skill in the art; without deviating from the spirit and scope of the present invention, protection scope of the present invention should be as the criterion with described in claim.

Claims (10)

1. monitoring in real time and a control method based on the software running process of shared drive, its step includes:
1) monitored routine call shared-memory management interface creates shared drive, and monitor call shared-memory management interface obtains shared drive;
2) when monitoring of software, the value of variable to be monitored or statistical variable is write shared drive by monitored program, and for monitoring of software running, monitoring programme reads the value of variable to be monitored or statistical variable, shows user or stores;
3) when control software design, the value of control variable is write shared drive by monitoring programme, and monitored program reads control variable value from shared drive, determines to perform flow process according to the value of control variable, it is achieved real-time Row control.
2. the method for claim 1, it is characterised in that: step 1) create the structure being made up of variable to be monitored and statistical variable, after creating shared drive, shared drive is mapped on this predefined structure comprising monitored variable.
3. method as claimed in claim 1 or 2, it is characterised in that: injecting codes in monitored program, complete in shared drive, write to be monitored and the value of statistical variable, the value reading control variable and execution control routine function;In monitoring programme, read cycle is set, writes reading code, control routine and result treatment code, reading and control result are showed user or store.
4. method as claimed in claim 3, it is characterized in that: step 2) in, when monitored program runs to the code of injection, update the value of variable to be monitored or statistical variable, and by the write operation to structure, variate-value corresponding in amendment shared drive, the numerical value completing variable to be monitored and statistical variable updates;Structure is periodically performed read operation by monitoring programme, obtain the value of variable to be monitored corresponding in shared drive and statistical variable, and monitoring result shows user or write real-time data base carry out history data store, it is used for showing, follows the tracks of, reviews running software change procedure.
5. method as claimed in claim 3, it is characterised in that: step 3) in, control variable value according to the actual requirements, by structure is performed write operation, is write in shared drive by monitoring programme;When monitored program goes to the control routine being previously implanted, by structure is carried out read operation, obtain the value of corresponding control variable, and this value and control condition are contrasted, if meeting control condition, then perform control, the execution flow process of change program, otherwise, original flow process is continued executing with.
6. the method for claim 1, it is characterised in that described shared-memory management interface realizes under Linux environment, specifically:
intInitShmInfo(void**pp_myParam,int*p_myShm_id,key_tmyShm_key,size_tmyShm_size);
Wherein, pp_myParam points to deposit to be monitored and control variable structure pointer pointer, for returning the pointer pointing to shared drive;P_myShm_id returns the reference identifier of shared drive, for the cleaning operation of shared drive;MyShm_key is the key assignments of shared drive, and whether the shared drive for judging correspondence is created, and monitoring programme must be identical with the key assignments of monitored program;MyShm_size is the size in shared drive region.
7. the method for claim 1, it is characterised in that described shared-memory management interface realizes under a windows environment, specifically:
intInitShmInfo(void**pp_myParam,HANDLE*ghMapObjectHandle,LPCTSTRlpName,DWORDsize);
Wherein, pp_myParam points to deposit to be monitored and control variable structure pointer pointer, for returning the pointer pointing to shared drive;GhMapObjectHandle returns the file mapping handle of shared drive, can be used for the cleaning operation of shared drive;LpName is shared drive title, and monitoring programme must be identical with shared drive title in monitored program, and size is the size in shared drive region.
8. the real-time Monitoring and control system of the software running process based on shared drive adopting method described in claim 1, it is characterised in that include monitoring programme, monitored program, shared drive and shared-memory management interface;Monitored routine call shared-memory management interface creates shared drive, and monitor call shared-memory management interface obtains shared drive;When monitoring of software, the value of variable to be monitored or statistical variable is write shared drive by monitored program, and for monitoring of software running, monitoring programme reads the value of variable to be monitored or statistical variable, shows user or stores;When control software design, the value of control variable is write shared drive by monitoring programme, and monitored program reads control variable value from shared drive, determines to perform flow process according to the value of control variable, it is achieved real-time Row control.
9. system as claimed in claim 8, it is characterised in that: also include the structure being made up of variable to be monitored and statistical variable, after creating shared drive, shared drive is mapped on this predefined structure comprising monitored variable.
10. method according to any one of claim 1-7 is for one or more in following application scenarios: which step determining program goes to, add up the number of times that certain condition is satisfied, obtain the currency of certain locally or globally variable, add up the execution time of certain section of code, control whether certain section of code performs, multiple execution branches select one, changes the execution condition of certain section of code.
CN201410766205.0A 2014-12-11 2014-12-11 The monitoring in real time of software running process based on shared drive and control method and system Active CN105740120B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410766205.0A CN105740120B (en) 2014-12-11 2014-12-11 The monitoring in real time of software running process based on shared drive and control method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410766205.0A CN105740120B (en) 2014-12-11 2014-12-11 The monitoring in real time of software running process based on shared drive and control method and system

Publications (2)

Publication Number Publication Date
CN105740120A true CN105740120A (en) 2016-07-06
CN105740120B CN105740120B (en) 2018-08-17

Family

ID=56240764

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410766205.0A Active CN105740120B (en) 2014-12-11 2014-12-11 The monitoring in real time of software running process based on shared drive and control method and system

Country Status (1)

Country Link
CN (1) CN105740120B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106155865A (en) * 2016-08-01 2016-11-23 浪潮(北京)电子信息产业有限公司 A kind of CPI acquisition methods, system and process performance judgement system in real time
CN107015798A (en) * 2017-03-13 2017-08-04 深圳市鑫君特智能医疗器械有限公司 A kind of method and system of monitoring program variate-value
CN108121653A (en) * 2016-11-29 2018-06-05 华为技术有限公司 The method and device of test program performance
CN108255622A (en) * 2018-01-17 2018-07-06 郑州云海信息技术有限公司 The method and system that a kind of SMASH CLP functions are realized
CN109240128A (en) * 2018-11-26 2019-01-18 山东大学 A kind of new energy supply of cooling, heating and electrical powers real-time emulation system and method
WO2019071535A1 (en) * 2017-10-12 2019-04-18 深圳市汇顶科技股份有限公司 Computer storage medium, and program running monitoring method and device
CN110502438A (en) * 2019-07-31 2019-11-26 惠州市德赛西威汽车电子股份有限公司 A kind of adjustment method of Linux application program
CN110914768A (en) * 2017-06-07 2020-03-24 布鲁克斯自动化(德国)有限公司 Method for controlling PLC using PC program
CN110928768A (en) * 2019-10-22 2020-03-27 深圳市盛弘电气股份有限公司 Program tracking method and system based on linux shared memory data mirror image
CN111143218A (en) * 2019-12-27 2020-05-12 深圳市共进电子股份有限公司 Log debugging method and device suitable for 5G embedded equipment and readable storage medium
CN111324527A (en) * 2019-12-09 2020-06-23 许华敏 Device and method for testing interrupt program through data acquisition mode
CN111367788A (en) * 2019-12-09 2020-07-03 许华敏 Test method for random execution program

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1728106A (en) * 2004-07-26 2006-02-01 中兴通讯股份有限公司 Method for positioning malfunction of application program
CN101719260A (en) * 2009-12-01 2010-06-02 中国建设银行股份有限公司 Data monitoring method, data monitoring system and monitoring service terminal
CN102831053A (en) * 2011-06-17 2012-12-19 阿里巴巴集团控股有限公司 Scheduling method and device for test execution
CN102929186A (en) * 2012-09-14 2013-02-13 北京科技大学 Method for implementing data communication between model system and Web monitor screen
CN102955721A (en) * 2011-08-16 2013-03-06 阿里巴巴集团控股有限公司 Device and method for pressure generation for testing
CN103777930A (en) * 2012-10-19 2014-05-07 阿里巴巴集团控股有限公司 Output, acquiring and monitoring methods and devices for internal information of program

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1728106A (en) * 2004-07-26 2006-02-01 中兴通讯股份有限公司 Method for positioning malfunction of application program
CN101719260A (en) * 2009-12-01 2010-06-02 中国建设银行股份有限公司 Data monitoring method, data monitoring system and monitoring service terminal
CN102831053A (en) * 2011-06-17 2012-12-19 阿里巴巴集团控股有限公司 Scheduling method and device for test execution
CN102955721A (en) * 2011-08-16 2013-03-06 阿里巴巴集团控股有限公司 Device and method for pressure generation for testing
CN102929186A (en) * 2012-09-14 2013-02-13 北京科技大学 Method for implementing data communication between model system and Web monitor screen
CN103777930A (en) * 2012-10-19 2014-05-07 阿里巴巴集团控股有限公司 Output, acquiring and monitoring methods and devices for internal information of program

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
程姚根: "《ChinaUnix论坛》", 31 May 2012 *

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106155865A (en) * 2016-08-01 2016-11-23 浪潮(北京)电子信息产业有限公司 A kind of CPI acquisition methods, system and process performance judgement system in real time
CN108121653A (en) * 2016-11-29 2018-06-05 华为技术有限公司 The method and device of test program performance
CN107015798A (en) * 2017-03-13 2017-08-04 深圳市鑫君特智能医疗器械有限公司 A kind of method and system of monitoring program variate-value
CN110914768B (en) * 2017-06-07 2023-06-30 布鲁克斯自动化(德国)有限公司 Method for controlling PLC using PC program
CN110914768A (en) * 2017-06-07 2020-03-24 布鲁克斯自动化(德国)有限公司 Method for controlling PLC using PC program
WO2019071535A1 (en) * 2017-10-12 2019-04-18 深圳市汇顶科技股份有限公司 Computer storage medium, and program running monitoring method and device
CN108255622A (en) * 2018-01-17 2018-07-06 郑州云海信息技术有限公司 The method and system that a kind of SMASH CLP functions are realized
CN109240128A (en) * 2018-11-26 2019-01-18 山东大学 A kind of new energy supply of cooling, heating and electrical powers real-time emulation system and method
CN110502438A (en) * 2019-07-31 2019-11-26 惠州市德赛西威汽车电子股份有限公司 A kind of adjustment method of Linux application program
CN110928768A (en) * 2019-10-22 2020-03-27 深圳市盛弘电气股份有限公司 Program tracking method and system based on linux shared memory data mirror image
CN111324527A (en) * 2019-12-09 2020-06-23 许华敏 Device and method for testing interrupt program through data acquisition mode
CN111367788A (en) * 2019-12-09 2020-07-03 许华敏 Test method for random execution program
CN111324527B (en) * 2019-12-09 2023-08-11 武汉滨湖电子有限责任公司 Device and method for testing interrupt program in data acquisition mode
CN111143218A (en) * 2019-12-27 2020-05-12 深圳市共进电子股份有限公司 Log debugging method and device suitable for 5G embedded equipment and readable storage medium
CN111143218B (en) * 2019-12-27 2024-03-26 深圳市共进电子股份有限公司 Log debugging method and device suitable for 5G embedded equipment and readable storage medium

Also Published As

Publication number Publication date
CN105740120B (en) 2018-08-17

Similar Documents

Publication Publication Date Title
CN105740120A (en) Shared memory based real-time monitoring and control method and system for software running process
CN101763280B (en) System, method and computerized application system for executable code of control system
US9021440B1 (en) System and method for automated test script generation
CN102103497B (en) Finite state machine actuating device and method, and method for establishing and using finite state machine
CN102915242A (en) Method for implementing code programming by graphical operations
CN109876445B (en) High-decoupling guiding method and system based on behavior tree
CN105683924A (en) Debugging native code by transitioning from execution in native mode to execution in interpreted mode
CN107562937A (en) Method and apparatus for managing process data
CN103440457B (en) Based on the binary program analytic system of process simulation
CN109101237A (en) The encryption Compilation Method and device of code
CN103631712B (en) A kind of medelling software critical behavior tracking based on memory management
CN105446725A (en) Method and system for model driven development
CN104346274A (en) Program debugger and program debugging method
CN104937548A (en) Dynamic graph performance monitoring
US20210157711A1 (en) System and method for controlled data extraction in computer networks
CN103154883A (en) Decoding instructions from multiple instruction sets
CN110825412B (en) LabVIEW-based controller program refreshing system and method
CN104919427A (en) Dynamic component performance monitoring
CN113296786B (en) Data processing method, device, electronic equipment and storage medium
CN105094780A (en) Information correlation method and device
CN116820908A (en) Locust-based performance test method, device, equipment and medium
CN112604273B (en) Data-driven game system function loading method, device and storage medium
US8856186B1 (en) Object grouping for garbage collecting
CN105843659B (en) Method and system for implementing embedded C compiler
CN104778071A (en) Intelligent rule multi-language type interpretation system and creation method for same

Legal Events

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