Permalink
Browse files

add option -debug for '-run-profiler -with-profiler-details'

Signed-off-by: Sébastien Boisvert <sebastien.boisvert.3@ulaval.ca>
  • Loading branch information...
Sébastien Boisvert
Sébastien Boisvert committed Sep 25, 2013
1 parent 885e301 commit f620d24a1a99de081e27102d6a1680ceaae94a8b
Showing with 14 additions and 1 deletion.
  1. +3 −0 MANUAL_PAGE.txt
  2. +4 −0 code/Mock/Parameters.cpp
  3. +7 −1 code/application_core/Machine.cpp
View
@@ -291,6 +291,9 @@ DESCRIPTION:
-with-profiler-details
Shows number of messages sent and received in each methods during in each time slices (epochs). Needs -run-profiler.
+ -debug
+ Turns on -run-profiler and -with-profiler-details for debugging
+
-show-communication-events
Shows all messages sent and received.
View
@@ -1820,6 +1820,10 @@ void Parameters::showUsage(){
cout<<endl;
showOption("-with-profiler-details","Shows number of messages sent and received in each methods during in each time slices (epochs). Needs -run-profiler.");
cout<<endl;
+
+ showOption("-debug", "Turns on -run-profiler and -with-profiler-details for debugging");
+ cout << endl;
+
showOption("-show-communication-events","Shows all messages sent and received.");
cout<<endl;
showOption("-show-read-placement","Shows read placement in the graph during the extension.");
@@ -314,12 +314,18 @@ void Machine::start(){
m_partitioner.constructor(m_outboxAllocator,m_inbox,m_outbox,&m_parameters,m_switchMan);
- if(m_parameters.runProfiler())
+ if(m_parameters.runProfiler()) {
m_computeCore.enableProfiler();
+ }
if(m_parameters.hasOption("-with-profiler-details"))
m_computeCore.enableProfilerVerbosity();
+ if(m_parameters.hasOption("-debug")) {
+ m_computeCore.enableProfiler();
+ m_computeCore.enableProfilerVerbosity();
+ }
+
if(m_parameters.showCommunicationEvents())
m_computeCore.showCommunicationEvents();

0 comments on commit f620d24

Please sign in to comment.