perf.h File Reference

Contains functions for calculating and outputting simulation performance metrics. More...

#include <stdio.h>
#include "defines.h"

Go to the source code of this file.

Functions

void perf_output_inst_report (FILE *ofile)
 Generates a performance report on an instance basis to the specified output file.

Detailed Description

Contains functions for calculating and outputting simulation performance metrics.

Author:
Trevor Williams (phase1geo@gmail.com)
Date:
1/1/2006

Function Documentation

void perf_output_inst_report ( FILE *  ofile  ) 

Generates a performance report on an instance basis to the specified output file.

Parameters:
ofile File to output report information to

References curr_db, inst_link_s::inst, db_s::inst_head, inst_link_s::next, perf_output_inst_report_helper(), PROFILE, and PROFILE_END.

Referenced by command_score().

00137   { PROFILE(PERF_OUTPUT_INST_REPORT);
00138 
00139   inst_link* instl;  /* Pointer to current instance link */
00140 
00141   fprintf( ofile, "\nSIMULATION PERFORMANCE STATISTICS:\n\n" );
00142 
00143   instl = db_list[curr_db]->inst_head;
00144   while( instl != NULL ) {
00145     perf_output_inst_report_helper( ofile, instl->inst );
00146     instl = instl->next;
00147   }
00148 
00149   PROFILE_END;
00150 
00151 }

Generated on Sun Nov 21 00:55:40 2010 for Covered by  doxygen 1.6.3