function_profile.c

v22.2b14/testsuite/single/tests/efuns/function_profile.c · 294 B

From the archive beta.tar.gz

Download the archive   « Back to the archive contents

void do_tests() {
#ifdef __PROFILE_FUNCTIONS__
    mixed *hmm = function_profile(this_object());
    ASSERT(sizeof(hmm) == 1);
    ASSERT(hmm[0]["calls"]);
    ASSERT(!undefinedp(hmm[0]["self"]));
    ASSERT(!undefinedp(hmm[0]["children"]));
    ASSERT(hmm[0]["name"] == "do_tests");
#endif
}

Site Stats

Snippets: 1791
Codebases: 571