Lines Matching refs:child

1278 /* This routine adds the given time to the parent and child methods.
1279 * This is called when the child routine exits, after the child has
1281 * duration of the child routine, including time spent in called routines.
1283 void addInclusiveTime(MethodEntry *parent, MethodEntry *child,
1290 if (strcmp(child->className, debugClassName) == 0)
1294 int childIsRecursive = (child->recursiveEntries > 0);
1297 if (child->recursiveEntries == 0) {
1298 child->elapsedInclusive += elapsedTime;
1299 } else if (child->recursiveEntries == 1) {
1300 child->recursiveInclusive += elapsedTime;
1302 child->numCalls[childIsRecursive] += 1;
1308 child->className, child->recursiveEntries,
1309 elapsedTime, child->elapsedInclusive,
1310 child->recursiveInclusive);
1314 /* Find the child method in the parent */
1317 if (pTimed->method == child) {
1328 pTimed->method = child;
1335 /* Find the parent method in the child */
1336 TimedMethod *parents = child->parents[childIsRecursive];
1353 child->parents[childIsRecursive] = pTimed;
1614 /* check to make sure that the child method meets the threshold of the parent */
1615 int checkThreshold(MethodEntry* parent, MethodEntry* child)
1618 double childTime = child->elapsedInclusive;
1633 TimedMethod* child;
1634 for (child = method->children[0] ; child ; child = child->next) {
1635 MethodEntry* childMethod = child->method;
1638 createLabels(file, child->method);
1647 TimedMethod* child;
1648 for (child = method->children[0] ; child ; child = child->next) {
1649 MethodEntry* childMethod = child->method;
1650 if (checkThreshold(method, child->method)) {
1651 fprintf(file, "node%d -> node%d\n", method->index, child->method->index);
1654 createLinks(file, child->method);