Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Diff of /pe_profiling/operf.cpp [44d156] .. [d840b9] Maximize Restore

  Switch to side-by-side view

--- a/pe_profiling/operf.cpp
+++ b/pe_profiling/operf.cpp
@@ -108,7 +108,7 @@
 bool separate_cpu;
 bool separate_thread;
 bool post_conversion;
-vector<string> evts;
+set<string> evts;
 }
 
 static const char * valid_verbose_vals[] = { "debug", "record", "convert", "misc", "sfile", "arcs", "all"};
@@ -1187,7 +1187,7 @@
 		case 'e':
 			event = strtok(optarg, ",");
 			do {
-				operf_options::evts.push_back(event);
+				operf_options::evts.insert(event);
 			} while ((event = strtok(NULL, ",")));
 			break;
 		case 'c':