00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00026 #ifndef VCSN_MISC_TIMER_INTERNAL_GRAPH_HXX
00027 # define VCSN_MISC_TIMER_INTERNAL_GRAPH_HXX
00028 
00029 # ifdef VAUCANSON
00030 #  include <vaucanson/misc/timer_internal_graph.hh>
00031 # else
00032 #  include "timer_internal_graph.hh"
00033 # endif
00034 
00035 NAMESPACE_VCSN_BEGIN
00036 
00037 namespace misc
00038 {
00039   namespace timer
00040   {
00041     
00042 
00043 
00044 
00045     inline
00046     bool
00047     GraphTask::operator< (const GraphTask& task) const
00048     {
00049       return self.cpu == task.self.cpu ?
00050         id < task.id :
00051         self.cpu > task.self.cpu;
00052     }
00053 
00054     
00055 
00056 
00057 
00058     inline
00059     void
00060     GraphComponent::add_call_out (GraphCall&    call)
00061     {
00062       out_calls += call.count;
00063 
00064       calls_out.push_back (&call);
00065     }
00066 
00067     inline
00068     void
00069     GraphComponent::add_call_internal (GraphCall&       call)
00070     {
00071       int_calls += call.count;
00072     }
00073 
00074   } 
00075 } 
00076 
00077 NAMESPACE_VCSN_END
00078 
00079 #endif