version 1.6, 2002/03/25 16:30:55 |
version 1.7, 2003/04/05 14:34:32 |
|
|
{ |
{ |
char kirkbuffer[ BUFSIZ ]; |
char kirkbuffer[ BUFSIZ ]; |
|
|
sprintf( kirkbuffer , "[%d]" , np -> index ); |
snprintf(kirkbuffer, sizeof kirkbuffer, "[%d]" , np -> index ); |
printf( "%-6.6s %5.1f %7.2f %11.2f" , kirkbuffer , |
printf( "%-6.6s %5.1f %7.2f %11.2f" , kirkbuffer , |
100 * ( np -> propself + np -> propchild ) / printtime , |
100 * ( np -> propself + np -> propchild ) / printtime , |
np -> propself / hz , np -> propchild / hz ); |
np -> propself / hz , np -> propchild / hz ); |
|
|
{ |
{ |
char kirkbuffer[ BUFSIZ ]; |
char kirkbuffer[ BUFSIZ ]; |
|
|
sprintf(kirkbuffer , "[%d]" , cyclep->index); |
snprintf(kirkbuffer, sizeof kirkbuffer, "[%d]" , cyclep->index); |
printf("%-6.6s %5.1f %7.2f %11.2f %7ld", kirkbuffer, |
printf("%-6.6s %5.1f %7.2f %11.2f %7ld", kirkbuffer, |
100 * (cyclep->propself + cyclep->propchild) / printtime, |
100 * (cyclep->propself + cyclep->propchild) / printtime, |
cyclep->propself / hz, cyclep->propchild / hz, cyclep->npropcall); |
cyclep->propself / hz, cyclep->propchild / hz, cyclep->npropcall); |
|
|
for ( j = i; j < todo ; j += index ) { |
for ( j = i; j < todo ; j += index ) { |
nlp = namesortnlp[ j ]; |
nlp = namesortnlp[ j ]; |
if ( nlp -> printflag ) { |
if ( nlp -> printflag ) { |
sprintf( peterbuffer , "[%d]" , nlp -> index ); |
snprintf(peterbuffer, sizeof peterbuffer, "[%d]" , nlp -> index ); |
} else { |
} else { |
sprintf( peterbuffer , "(%d)" , nlp -> index ); |
snprintf(peterbuffer, sizeof peterbuffer, "(%d)" , nlp -> index ); |
} |
} |
if ( j < nnames ) { |
if ( j < nnames ) { |
printf( "%6.6s %-19.19s" , peterbuffer , nlp -> name ); |
printf( "%6.6s %-19.19s" , peterbuffer , nlp -> name ); |
} else { |
} else { |
printf( "%6.6s " , peterbuffer ); |
printf( "%6.6s " , peterbuffer ); |
sprintf( peterbuffer , "<cycle %d>" , nlp -> cycleno ); |
snprintf(peterbuffer, sizeof peterbuffer, "<cycle %d>" |
|
, nlp -> cycleno ); |
printf( "%-19.19s" , peterbuffer ); |
printf( "%-19.19s" , peterbuffer ); |
} |
} |
} |
} |