#include "Per_Process_Consumer.hh"
Go to the source code of this file.
Functions | |
int | main (const unsigned int argc, const char **const argv) |
|
Definition at line 29 of file per-process-merge-main.cc.
00029 { 00030 00031 // Were the correct number of arguments passed? 00032 if (argc != 3) { 00033 00034 // No. Emit usage and exit. 00035 fprintf(stderr, "Usage: %s\n", argv[0]); 00036 fprintf(stderr, " <reference trace pathname>\n"); 00037 fprintf(stderr, " <kernel trace pathname>\n"); 00038 return 1; 00039 00040 } 00041 00042 // Create the trace consumer object. 00043 Per_Process_Consumer* consumer = 00044 new Per_Process_Consumer(argv[1], argv[2]); 00045 if (consumer == 0) { 00046 fprintf(stderr, 00047 "main(): Failed allocation of Per_Process_Consumer\n"); 00048 return 1; 00049 } 00050 00051 // Merge the traces. 00052 consumer->merge(); 00053 00054 // Eliminate the consumer object. 00055 delete consumer; 00056 consumer = 0; 00057 00058 // Exit successfully. 00059 return 0; 00060 00061 } // main |