test_start_one Subroutine

public subroutine test_start_one()

Arguments

None

Calls

proc~~test_start_one~~CallsGraph proc~test_start_one test_start_one assertequal assertequal proc~test_start_one->assertequal none~finalize~3 BaseProfiler%finalize proc~test_start_one->none~finalize~3 none~get_num_meters BaseProfiler%get_num_meters proc~test_start_one->none~get_num_meters none~start~84 TimeProfiler%start proc~test_start_one->none~start~84 none~finalize~15 AbstractMeter%finalize none~finalize~3->none~finalize~15 none~get_meter~4 MeterNode%get_meter none~finalize~3->none~get_meter~4 none~pop_back~6 MeterNodeStack%pop_back none~finalize~3->none~pop_back~6 none~get_num_nodes~2 MeterNode%get_num_nodes none~get_num_meters->none~get_num_nodes~2 none~start_self~2 StubProfiler%start_self none~start~84->none~start_self~2 mpi_op_free mpi_op_free none~finalize~15->mpi_op_free mpi_type_free mpi_type_free none~finalize~15->mpi_type_free proc~mapl_verify MAPL_Verify none~finalize~15->proc~mapl_verify get_num_nodes get_num_nodes none~get_num_nodes~2->get_num_nodes none~begin~81 MeterNodeVector%begin none~get_num_nodes~2->none~begin~81 none~get~65 MeterNodeVectorIterator%get none~get_num_nodes~2->none~get~65 none~next~57 MeterNodeVectorIterator%next none~get_num_nodes~2->none~next~57 proc~mapl_return MAPL_Return none~start_self~2->proc~mapl_return at at proc~mapl_return->at insert insert proc~mapl_return->insert proc~mapl_throw_exception MAPL_throw_exception proc~mapl_return->proc~mapl_throw_exception proc~mapl_verify->proc~mapl_throw_exception

Source Code

   subroutine test_start_one()
      type (TimeProfiler), target :: prof
      
      prof = TimeProfiler('top')
      call Prof%start()

      call prof%start('timer_1')
      call prof%stop('timer_1')

      call prof%finalize()
      
      @assertEqual(2, prof%get_num_meters())
      
   end subroutine test_start_one