MCPcopy Create free account
hub / github.com/F-Stack/f-stack / rucollect

Function rucollect

freebsd/kern/kern_resource.c:1095–1107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1093}
1094
1095void
1096rucollect(struct rusage *ru, struct rusage *ru2)
1097{
1098 long *ip, *ip2;
1099 int i;
1100
1101 if (ru->ru_maxrss < ru2->ru_maxrss)
1102 ru->ru_maxrss = ru2->ru_maxrss;
1103 ip = &ru->ru_first;
1104 ip2 = &ru2->ru_first;
1105 for (i = &ru->ru_last - &ru->ru_first; i >= 0; i--)
1106 *ip++ += *ip2++;
1107}
1108
1109void
1110ruadd(struct rusage *ru, struct rusage_ext *rux, struct rusage *ru2,

Callers 3

thread_exitFunction · 0.85
ruaddFunction · 0.85
rufetchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected