fname = 'c:/mike/moos/moosbin/LNavUsageTimes_17_2_2003_____16_15.slog';
fname = 'c:/mike/moos/moosbin/LNavUsageTimes_18_2_2003_____08_58.slog';
fname = 'c:/mike/moos/moosbin/LNavUsageTimes_18_2_2003_____19_24.slog';
U = load(fname);
U = U(find(~isnan(sum(U,2))), :);

cpuload = [0; 100*diff(sum(U(:,3:4),2))./diff(U(:,1))];
B = ones(1,60); B = B/sum(B);
cpuload_smooth = filtfilt(B,1,cpuload);

figure(2)
h = plot(U(:,1)*2/3600,[U(:,5) cpuload cpuload_smooth ]);
set(h(1),'linewidth',3);
set(h(3),'linewidth',3);
Legend('Map ID','CPU Load','Smoothed CPU Load',0);
set(gca,'ylim',[0 120]);
%axis([0 9000/3600 0 120]);
xlabel('Time (hours)')

if 0
    fname = 'c:/mike/thrun_data/mines/processing_time';
    print('-depsc2', [fname '.eps'])
    print('-djpeg75', '-r100', [fname '.jpg'])
end