the present invention provides a remote data collection facility that may be utilized for developers to monitor a program under test ( put ). a put is therefore a computer program or application that has been distributed to a client ( or other site ) for which the developer would like to monitor the execution remotely . this remote monitoring may be performed from pre - alpha through beta and final release . in a preferred embodiment , the present invention is incorporated in purevision ( pv ) which is available from pure software inc ., sunnyvale , calif . in the description that follows , the present invention will be described in reference to an ibm compatible computer running under one of the windows family of operating systems . the present invention , however , is not limited to any particular computer architecture or operating system . therefore , the description the embodiments that follow is for purposes of illustration and not limitation . fig1 illustrates an example of a computer system used to execute the software of the present invention . fig1 shows a computer system 1 which includes a monitor 3 , screen 5 , cabinet 7 , keyboard 9 , and mouse 11 . mouse 11 may have one or more buttons such as mouse buttons 13 . cabinet 7 houses a cd - rom drive 15 , a system memory and a hard drive ( see fig2 ) which may be utilized to store and retrieve software programs incorporating code that implements the present invention , data for use with the present invention , and the like . although a cd - rom 17 is shown as an exemplary computer readable storage medium , other computer readable storage media including floppy disks , tape , flash memory , system memory , and hard drives may be utilized . cabinet 7 also houses familiar computer components ( not shown ) such as a central processor , system memory , hard disk , and the like . fig2 shows a system block diagram of computer system 1 used to execute the software of the present invention . as in fig1 , computer system 1 includes monitor 3 and keyboard 9 . computer system 1 further includes subsystems such as a central processor 102 , system memory 104 , i / o controller 106 , display adapter 108 , removable disk 112 ( e . g ., cd - rom drive ), fixed disk 116 ( e . g ., hard drive ), network interface 118 , and speaker 120 . other computer systems suitable for use with the present invention may include additional or fewer subsystems . for example , another computer system could include more than one processor 102 ( i . e ., a multi - processor system ) or a cache memory . arrows such as 122 represent the system bus architecture of computer system 1 . however , these arrows are illustrative of any interconnection scheme serving to link the subsystems . for example , a local bus could be utilized to connect the central processor to the system memory and display adapter . computer system 1 shown in fig2 is but an example of a computer system suitable for use with the present invention . other configurations of subsystems suitable for use with the present invention will be readily apparent to one of ordinary skill in the art . fig3 is a block diagram of a distributed computer system where a server computer may remotely monitor execution of puts on client computers . a server computer 202 is in communication with multiple clients , of which clients 204 , 206 and 208 are shown . the server may communicate with the clients via transport mechanisms known in the art including http , email , network of lan or wan , and the like . additionally , the server and clients may communicate via a media like a floppy or tape as shown between the server and client 208 . the computer system that monitors a put will be designated a “ server ” and a computer system on which the put executes will be designed a “ client .” for simplicity , the server computer will be described as the computer system that performs development of the put and remote monitoring of execution of the put . however , the development and remote monitoring may be performed on entirely different computer systems and at different locations . a client executes the put which includes additional monitoring instructions for collecting data regarding the put execution . the collected data may be stored locally on the client until it is transferred to the server for analysis . the collected data is sent or transferred to the server via a transport mechanism . the present invention provides a platform independent application programming interface ( api ) for directing the data collection for an executing put . as shown , client 204 is operating under the unix operating system . in contrast , client 206 is operating under one of the family of windows operating systems . the api of the present invention ( pv api ) is portable as a same set of api calls apply to puts running on both operating systems . this functionality allows developers to create a single source tree across different platforms . although platform - specific api calls may be provided , these calls will be ignored if the platform is incompatible . fig4 is a high level flowchart of a process of remotely monitoring execution of a put . the flowchart is divided into a server - side and a client - side to indicate on which computer systems the steps are performed . at step 302 , the pv api is installed on the server computer for remotely monitoring the put . in a preferred embodiment , the pv api calls are stored in a dynamic - link library ( dll ). as will be discussed in more detail in reference to fig5 and 6 , hooks that are available in windows may be utilized to intercept the system calls . a similar mechanism may be utilized for unix systems . at least one pv api call is placed in the put source code at step 304 . the pv_start call may be added to the put source code to start monitoring of the put during execution . data will be collected regarding the execution and , in a preferred embodiment , the collected data will be automatically sent to the server . the data is typically collected until the put finishes execution . other pv api calls may be utilized to customize the data collection . thus , developers may dynamically change the data that will be collected over the application development cycle from pre - alpha to beta through final release . at step 306 , the put is compiled and linked into an executable computer program . after the put is a computer program that incorporates remote monitoring instructions , the put is sent to the client . the put may be sent to the client in any number of ways including networks and magnetic media like floppies . once the put is installed on the client , the put is executed at step 310 . although multi - tasking and multi - threaded applications perform tasks in parallel , each task or thread essentially operates by executing statements in sequential order . accordingly , in discussing this figure , all applications will be generalized to this sequential execution of statements . at step 312 , the next statement is retrieved . the client then determines if the statement is a pv api call at step 314 . if it is not , the put statement is executed at step 316 . a put statement is basically any statement that is not a pv api call for remote monitoring . the client calls the pv api specified by the statement at step 318 . there are numerous types of pv api calls that may be called including calls that perform the following : starting and ending a put run controlling the amount of data being collected logging unstructured data inserting simple per - run data inserting complex data fields platform - specific functions thus , there are a variety of pv api calls that may be made at step 318 . however , the goal of most of the calls revolves around data collection regarding the execution of the put . the pv api calls allow the developer to specify characteristics of the data that will be collected during a put run . for example , in addition to the developer being able to turn data collection on and off at locations in the put with pv_on and pv_off , the developer is also able to specify that data collected under a given type should be discarded ( e . g ., to reduce the amount of collected data that is sent to the server ). additionally , the developer may specify that data collected will be stored in a database table with the calls pv_dbaddstringtorow and pv_dbaddinttorow . thus , the developer is provided great flexibility in specifying what data will be collected and how the data will be available . at step 320 , it is determined whether the put is finished executing . if it is not , execution resumes at step 312 where the next statement is retrieved . otherwise , the client performs end - hook data collection at step 322 . in a preferred embodiment , end - hook is the mechanism in windows through which data is collected after the put terminates or crashes . in order to aid the developer in tracking down crashes , information regarding the hardware , operating system , put ( e . g ., version number ), and the like may be automatically collected to indicate the environment of the client . in a preferred embodiment , this information is automatically collected with a single api call , pv_start . once the data is collected regarding the put execution , the data is sent to the server at step 324 . once at the server , the data may be analyzed . the data may be analyzed to fix bugs in the put , track feature utilization , optimize execution of the put , and the like . fig5 illustrates a mechanism operating systems utilize to access routines in a system library . a call table 402 is kept in memory and associates system calls to routines in a system library 404 . for each call , a pointer indicates the routine in the system library that should be executed for the call . for example , one call in the table would be the exit ( ) call which would then result in executing a routine in the system library that exits or terminates the current process ( with exit codes ). in windows , the call table is also called the windows system table and the system library may be called the windows run - time dll . these structures are also available in unix and other operating systems . fig6 illustrates utilizing hooks to intercept system calls and pv api calls . utilizing hooks , a preferred embodiment of the invention intercepts the calls in the call table . a call table 452 is modified utilizing hooks to redirect the system calls to a pv library 454 . the pv library includes routines that include statements to facilitate remote monitoring of put execution . the routines in the pv library may also call routines in a system library 456 . in a preferred embodiment , the pv library is a windows dll . additionally , pv api calls are also added to call table 452 so that the appropriate routines in the pv library will be called . as an example , fig6 shows that a pv api call pv_endrunnow may cause the execution of the end_hook routine in the pv library . the pv_endrunnow terminates the data collection on the client but allows the put to continue execution . fig7 is a table of types of end - run - conditions for puts and the information that may be available in each case . correctly identifying and reporting the way a put finished execution provides significant information to a developer . in a preferred embodiment , there are seven ways in which a put may stop execution ( which are shown in the table of fig7 ): 1 . put normal exit — exiting by invoking a member of the exit family of routines or returning from the main routine 2 . put exec ( )— invoking a different executable by successfully calling exec 3 . put exception caught by developer — catching an exception or signal in an exception handler and invoking exit from the handler 5 . put dies via uncatchable event — encountering an uncatchable event ( e . g ., stack overflow or kill process ) 6 . developer ends run before put ends — pv api call to stop data collection ( pv_endrunnow ) 7 . purevision dies via an unexpected event — the data collection software of the present invention halts ( e . g ., power off or internal error ) all of the above end - of - run types except for 4 . would pass through the modified call table . the information available indicates the information the present invention may analyze and include in the data collected that will be sent to the server . fig8 is a high level flowchart of a process of end - of - run processing of a put . when an end - of - run ( i . e ., the end of data collection except for the final data collection for the end - of - run ) occurs , the routine end_hook is executed in the pv library at step 502 . the present invention includes a default for handing the end of run . by default the present invention automatically intercepts and reports end - of - run instances as follows . at step 504 , the put run is classified . the put run is classified as either a normal or abnormal run . in windows , an abnormal run is defined as a put that terminates with an uncaught exception or with a caught exception followed by a non - zero exit code . similarly , on unix an abnormal run is defined as a put that terminates with an uncaught signal or exits with a non - zero exit code . data is collected for the end - of - run at step 506 . as mentioned earlier , information regarding the hardware , operating system , put ( e . g ., version number ), user identifier , put start time , put execution duration , exit code , exit exception , and the like may be automatically collected to indicate the environment of the client at an end - of - run . additionally , in the event of an abnormal run , stack information of the client may be collected for analysis on the server . at step 508 , the collected data is sent to the server . the server may then remotely analyze the data it receives . if the end of the put is reached at step 510 , the put is exited at step 512 . otherwise , the put continues execution at step 514 . in a preferred embodiment , the collected data is automatically transmitted to the server without requiring the client to issue a command to send the collected data . although the present invention provides a default mechanism for handling end - of - run situations , it also allows the developer to customize end - of - run processing . the pv api pv_registerendhook allows a callback function to be defined that will be utilized instead of the default end - of - run processing . the custom end_hook processing is shown as step 516 in fig8 . fig9 is a high level flowchart of a process of performing remote debugging of a put on the server . some of the steps that may be utilized are not shown in the figure . for example , it is not shown that the put is linked into an executable program . however , these steps will be readily apparent to one of skill in the art . at step 552 , the put is compiled with the source code including pv api calls to collect data for remote debugging . a module map is created during compilation and it is stored at step 554 . the module map is essentially a table that for each module in the put source code contains the address and offset of every function in the module . typically , the module map is stored on nonvolatile storage ( e . g ., a hard drive ) on the server . the executable put is sent to the client at step 556 . on the client - side , the put is executed at step 558 . when an end - of - run is encountered , the end_hook directs the client save both the call stack and the module list at step 560 . call stack is a list of addresses of function calls that were sequentially invoked during the put execution . the call stack is therefore generated while the put runs . the module list is a list of modules , including modules in the executable and any dlls , along with the base address and size of each module . the module list is also created while the put runs . at step 562 , the client generates a module name / relative virtual address ( rva ) list . the module name / rva list is generated from the call stack and the module list . the module name / rva list shows the sequence of function calls as a list of module names and relative offsets into each module . typically , the module name / rva list is generated during end - of - run processing . the module name / rva list is sent to the server along with any other collected data at step 564 . on the server , a symbolic call stack is generated from the module map and the module name / rva list at step 566 . the symbolic call stack is the sequence of functions calls including the module name , function name , and offset into the function for each call . utilizing the symbolic call stack , the put may be remotely debugged on the server at step 568 . in a preferred embodiment , the present invention also reports uniqueness of the call stacks so that a developer may more quickly determine if the same problem is occurring on other clients &# 39 ; computers . fig1 is a high level flowchart of a process of remotely upgrading the version of a put . the present invention also provides bidirectional communication between the server and the client . the developer may inform the client of upgrades and / or automatically have new software ( e . g ., new products , versions or patches ) downloaded onto the client &# 39 ; s machine . as an example , step 602 shows a put running on the client computer . during execution , a pv api call ( e . g ., pv_start ) sends the put version number to the server at step 604 . the server receives the put version number and determines if the version is current at step 606 . if the version is not current , the current version ( or a patch ) may be downloaded to the client at step 608 . additionally , the client may be queried as to whether it is desirable to get an upgrade in the event that they would prefer to retain the older version for any number of reasons ( e . g ., stability ). whether a new version is downloaded or not , the put continues execution at step 610 . utilizing this process , the developer is able to accurately track which clients are running what versions of software . additionally , as the developer is able to more quickly upgrade older versions , the testing of the program is more efficient as clients do not continue to run older versions reporting old problems or bugs . fig1 is a block diagram of a bug tracker interfacing with a computer system of the present invention . the present invention may also interface with commercially available ( or ones created by the developer ) bug tracking software . a distributed system including a server computer 652 and multiple client computers 654 are shown . a bug tracking application 656 is designed to track the bugs that are found in the put and other information regarding the bug . when an event occurs during execution of the put that necessitates reporting ( e . g ., a bug ), a pv api call is utilized to collect the data for reporting the event to the bug tracking application . the bug tracking application may receive the information it requires directly from the clients or the clients may send information to the server with the server collecting the information . the server may then format the collected bug information and sends it to the bug tracking application . additionally , a pv api call may send collected data to more than one server if this is desirable for the developer . fig1 is a block diagram of a computer system remotely monitoring puts in a multi - tasking or multi - threaded environment . it is desirable for developers to know how two or more programs ( or threads ) interact in a multi - tasking ( or multi - threaded ) environment . for example , it may be useful to know which application is the bottleneck , the sequence of application calls or what percentage of processor time is consumed by each application . as shown , a server computer 702 is in communication with a client computers 704 and 706 . programs a and b are running on one client and program c is running on another client . although a and b are described as programs , they may also be threads of the same program . programs a , b and c are running concurrently and separate data is collected for each program ( although the data may be stored on the same hard driver , it is shown separate for clarity ). in a preferred embodiment , pv_start returns a handle that may be utilized to uniquely identify a program or thread . the other pv api calls may receive this handle as a parameter so that data for each program or thread is collected together . in a preferred embodiment , the data collected for each program includes timestamps as to when the program began running . additionally , information that indicates what program invoked another program may be collected . once this collected data is received by the server , the server will be able to reconstruct the sequence of program execution on the clients . fig1 is a block diagram of a computer system remotely monitoring computer programs incorporating code portions from multiple vendors . a put may include code portions or sections from multiple vendors . however , each vendor should receive information specific to the code that they produced . as shown a put 752 includes code portions from vendors a , b , c , and d . when the code for a specific vendor is entered , a pv_start call is made which returns a handle specifying the appropriate vendor ( e . g ., a ). other pv api calls may then be sent to the appropriate handle specifying which vendors &# 39 ; code has generated the call and in which file the collected data should be stored . thus , data for each vendor may be collected and stored separately ( although , of course , it may be on the same hard drive ). although the above has described modifying the source code to include pv api calls for data collection , the present is not limited to any specific method . for example , the present invention may utilize object code processing that inserts the data collection instructions into the object code of the put . fig1 shows an object code file augmented to include new data collecting instructions . a preexisting object code file 802 (“ oldfile . o ”) is augmented by an expansion means 804 to include data collecting instructions for the present invention . an augmented object code file 806 (“ newfile . o ”). typically , the expansion means is a general purpose computer like the one shown in fig1 . as the expansion means operates on object code , remote monitoring may be performed on the final executable product , not just those portions for which source code is available . the microfiche appendix includes source code for implementing an embodiment of the invention . the source is written in c ++ and is designed for an ibm compatible computer running under one of the windows family of operating systems . appendix a , a purevision unix & amp ; windows api specification , and appendix b , a purevision programmers &# 39 ; guide , are filed herewith as part of the application and are incorporated by reference for all purposes . while the above is a complete description of the preferred embodiments of the invention , various alternatives , modifications and equivalents may be used . it should be evident that the present invention is equally applicable by making appropriate modifications to the embodiments described above . therefore , the above description should not be taken as limiting the scope of the invention which is defined by the metes and bounds of the appended claims .