|
[oprof-cvs] CVS: oprofile/pp op_time.cpp,1.76,1.77 oprofpp.cpp,1.90,1.91
From: Philippe Elie <phil_e@us...> - 2002-12-19 04:28
|
Update of /cvsroot/oprofile/oprofile/pp
In directory sc8-pr-cvs1:/tmp/cvs-serv19018
Modified Files:
op_time.cpp oprofpp.cpp
Log Message:
fix #656123 + minor formating fix.
regard,
Phil
Index: op_time.cpp
===================================================================
RCS file: /cvsroot/oprofile/oprofile/pp/op_time.cpp,v
retrieving revision 1.76
retrieving revision 1.77
diff -u -d -r1.76 -r1.77
--- op_time.cpp 14 Dec 2002 16:39:29 -0000 1.76
+++ op_time.cpp 19 Dec 2002 04:28:38 -0000 1.77
@@ -177,18 +177,18 @@
if ((options::counter & (1 << i)) != 0) {
// feel to rewrite with cout and its formated output
#if 1
- printf("%-9d ", count[i]);
+ printf("%-9d", count[i]);
double ratio = op_ratio(count[i], total_count[i]);
if (ratio < 10.00 / 100.0)
printf(" ");
- printf("%2.4f", ratio * 100);
+ printf(" %2.4f", ratio * 100);
ratio = op_ratio(count[i], app_count[i]);
if (ratio < 10.00 / 100.0)
printf(" ");
- printf("%2.4f", ratio * 100);
+ printf(" %2.4f", ratio * 100);
#else
cout << count[i] << " ";
Index: oprofpp.cpp
===================================================================
RCS file: /cvsroot/oprofile/oprofile/pp/oprofpp.cpp,v
retrieving revision 1.90
retrieving revision 1.91
diff -u -d -r1.90 -r1.91
--- oprofpp.cpp 14 Dec 2002 16:39:29 -0000 1.90
+++ oprofpp.cpp 19 Dec 2002 04:28:38 -0000 1.91
@@ -225,7 +225,7 @@
filelist.push_front(options::sample_file);
- bool first_file = true;
+ bool found_file = false;
list<string>::const_iterator it;
for (it = filelist.begin() ; it != filelist.end() ; ++it) {
@@ -265,7 +265,6 @@
options::symbol);
profile.output_header();
- first_file = false;
} else {
string app_name;
string lib_name;
@@ -276,9 +275,10 @@
lib_name, app_name, options::exclude_symbols,
options::symbol);
}
+ found_file = true;
}
- if (first_file) {
+ if (!found_file) {
cerr << "oprofpp: Cannot locate any samples file." << endl;
exit(EXIT_FAILURE);
}
|
| Thread | Author | Date |
|---|---|---|
| [oprof-cvs] CVS: oprofile/pp op_time.cpp,1.76,1.77 oprofpp.cpp,1.90,1.91 | Philippe Elie <phil_e@us...> |