/* This example illustrates the use of the TAU Mapping API for tracking the time spent in each instance of an object. We use an embedded association here. */ #include #include #include #include class MyClass { public: MyClass() { TAU_MAPPING_LINK(runtimer, TAU_USER); } ~MyClass() { } void Run(void) { TAU_MAPPING_PROFILE(runtimer); // For one object TAU_PROFILE("MyClass::Run()", " void (void)", TAU_USER1); // For all cout <<"Sleeping for 2 secs..."<