debian man page for tau_mapping_create

Query: tau_mapping_create

OS: debian

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

TAU_MAPPING_CREATE(3)						  TAU Mapping API					     TAU_MAPPING_CREATE(3)

NAME
TAU_MAPPING_CREATE - Creates a mapping
SYNOPSIS
C/C++: TAU_MAPPING_CREATE(char *name, char *type, char *groupname, unsigned long key, int tid);
DESCRIPTION
TAU_MAPPING_CREATE creates a mapping and associates it with the key that is specified. Later, this key may be used to retrieve the FunctionInfo object associated with this key for timing purposes. The thread identifier is specified in the tid parameter.
EXAMPLE
C/C++ : 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); cout <<"Sleeping for 2 secs..."<<endl; sleep(2); } private: TAU_MAPPING_OBJECT(runtimer) // EMBEDDED ASSOCIATION }; int main(int argc, char **argv) { TAU_PROFILE_INIT(argc, argv); TAU_PROFILE("main()", "int (int, char **)", TAU_DEFAULT); MyClass x, y, z; TAU_MAPPING_CREATE("MyClass::Run() for object a", " " , TAU_USER, "TAU_USER", 0); MyClass a; TAU_PROFILE_SET_NODE(0); cout <<"Inside main"<<endl; a.Run(); x.Run(); y.Run(); }
SEE ALSO
TAU_MAPPING_LINK(3), TAU_MAPPING_OBJECT(3), TAU_MAPPING_PROFILE(3) 08/31/2005 TAU_MAPPING_CREATE(3)
Related Man Pages
tau_profile_set_context(3) - debian
tau_profile_set_node(3) - debian
wx::xsp::xspp(3) - osx
is_subclass_of(3) - php
class::accessor::children::fast(3pm) - debian
Similar Topics in the Unix Linux Community
system(&quot;PAUSE&quot;) Problem.....
pointer
Regarding char Pointer
ITALIAN ASSOCIATION - Wanted in Rome
How to access argv[x] from another function other than main???