This is a static copy of a profile report

Home

bc_str2num (20 calls, 0.000 sec)
Generated 04-Aug-2014 13:05:16 using cpu time.
function in file /gdata/projects/atl/FV_Matlab_Framework_JingPJH/trunk/Src/Util/bc_str2num.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
set_bcsfunction20
Lines where the most time was spent
No measurable time spent in this function

Line NumberCodeCallsTotal Time% TimeTime Plot
14
end
130 s0%
13
num = 5;
130 s0%
12
case 'n'
130 s0%
10
case 'nmv'
130 s0%
9
num = 3;
20 s0%
All other lines  0 s0%
Totals  0 s0% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function14
Non-code lines (comments, blank lines)2
Code lines (lines that can run)12
Code lines that did run10
Code lines that did not run2
Coverage (did run/can run)83.33 %
Function listing
time 
calls 
 line
   1 
function [num] = bc_str2num(str)
   2 

     20 
   3 
switch lower(str) 
     20 
   4 
    case 'dmv' 
   5 
        num = 1;
     20 
   6 
    case 'd' 
      5 
   7 
        num = 2; 
     15 
   8 
    case 'o' 
      2 
   9 
        num = 3; 
     13 
  10 
    case 'nmv' 
  11 
        num = 4;
     13 
  12 
    case 'n' 
     13 
  13 
        num = 5; 
     13 
  14 
end