/third_party/ltp/testcases/kernel/syscalls/getrusage/ |
D | getrusage02.c | 26 return getrusage(who, usage); in libc_getrusage() 45 int (*getrusage)(int who, void *usage); member 48 { .getrusage = libc_getrusage, .desc = "libc getrusage()"}, 50 { .getrusage = sys_getrusage, .desc = "__NR_getrusage syscall"}, 59 tv->getrusage == libc_getrusage) { in verify_getrusage() 64 TST_EXP_FAIL(tv->getrusage(tc[i].who, tc[i].usage), tc[i].exp_errno, in verify_getrusage()
|
D | getrusage01.c | 29 TST_EXP_PASS(getrusage(tc[i].who, usage), "getrusage(%s, %p)", tc[i].desc, usage); in run()
|
/third_party/musl/libc-test/src/functionalext/supplement/misc/ |
D | getrusage.c | 29 int result = getrusage(RUSAGE_SELF, &usage); in getrusage_0100() 41 int result = getrusage(RUSAGE_CHILDREN, &usage); in getrusage_0200() 53 int result = getrusage(RUSAGE_THREAD, &usage); in getrusage_0300() 65 int result = getrusage(100, &usage); in getrusage_0400() 77 int result = getrusage(RUSAGE_SELF, NULL); in getrusage_0500()
|
D | test_src_functionalext_supplement_misc.gni | 50 "getrusage",
|
/third_party/python/Lib/test/ |
D | test_resource.py | 102 self.assertRaises(TypeError, resource.getrusage) 103 self.assertRaises(TypeError, resource.getrusage, 42, 42) 104 usageself = resource.getrusage(resource.RUSAGE_SELF) 105 usagechildren = resource.getrusage(resource.RUSAGE_CHILDREN) 108 usageboth = resource.getrusage(resource.RUSAGE_BOTH) 112 usage_thread = resource.getrusage(resource.RUSAGE_THREAD)
|
/third_party/node/test/wasi/c/ |
D | getrusage.c | 14 r = getrusage(RUSAGE_SELF, &ru1); in main() 20 r = getrusage(RUSAGE_SELF, &ru2); in main()
|
/third_party/rust/crates/nix/src/sys/ |
D | resource.rs | 412 pub fn getrusage(who: UsageWho) -> Result<Usage> { in getrusage() function 415 let res = libc::getrusage(who as c_int, rusage.as_mut_ptr()); in getrusage() 422 use super::{getrusage, UsageWho}; 434 let usage = getrusage(UsageWho::RUSAGE_SELF) in test_self_cpu_time()
|
/third_party/musl/porting/liteos_a/kernel/include/sys/ |
D | resource.h | 51 int getrusage (int, struct rusage *); 109 __REDIR(getrusage, __getrusage_time64);
|
/third_party/musl/porting/uniproton/kernel/include/sys/ |
D | resource.h | 51 int getrusage (int, struct rusage *); 109 __REDIR(getrusage, __getrusage_time64);
|
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/ |
D | resource.h | 51 int getrusage (int, struct rusage *); 109 __REDIR(getrusage, __getrusage_time64);
|
/third_party/musl/porting/liteos_m/kernel/include/sys/ |
D | resource.h | 51 int getrusage (int, struct rusage *); 109 __REDIR(getrusage, __getrusage_time64);
|
/third_party/musl/ndk_musl_include/sys/ |
D | resource.h | 51 int getrusage (int, struct rusage *); 109 __REDIR(getrusage, __getrusage_time64);
|
/third_party/musl/include/sys/ |
D | resource.h | 51 int getrusage (int, struct rusage *); 109 __REDIR(getrusage, __getrusage_time64);
|
/third_party/spirv-tools/source/util/ |
D | timer.cpp | 45 if (getrusage(RUSAGE_SELF, &usage_before_) == -1) in Start() 62 if (getrusage(RUSAGE_SELF, &usage_after_) == -1) in Stop()
|
/third_party/skia/third_party/externals/spirv-tools/source/util/ |
D | timer.cpp | 45 if (getrusage(RUSAGE_SELF, &usage_before_) == -1) in Start() 62 if (getrusage(RUSAGE_SELF, &usage_after_) == -1) in Stop()
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/util/ |
D | timer.cpp | 45 if (getrusage(RUSAGE_SELF, &usage_before_) == -1) in Start() 62 if (getrusage(RUSAGE_SELF, &usage_after_) == -1) in Stop()
|
/third_party/gstreamer/gstreamer/plugins/tracers/ |
D | gstrusage.c | 178 getrusage (RUSAGE_SELF, &ru); in do_stats() 191 getrusage (RUSAGE_THREAD, &ru); in do_stats() 198 getrusage (RUSAGE_SELF, &ru); in do_stats() 201 getrusage (RUSAGE_THREAD, &ru); in do_stats()
|
/third_party/python/Doc/library/ |
D | resource.rst | 274 .. function:: getrusage(who) 288 print(getrusage(RUSAGE_SELF)) 293 print(getrusage(RUSAGE_SELF)) 306 remaining values are integers. Consult the :manpage:`getrusage(2)` man page for 354 The following :const:`RUSAGE_\*` symbols are passed to the :func:`getrusage` 360 Pass to :func:`getrusage` to request resources consumed by the calling 366 Pass to :func:`getrusage` to request resources consumed by child processes 372 Pass to :func:`getrusage` to request resources consumed by both the current 378 Pass to :func:`getrusage` to request resources consumed by the current
|
/third_party/gstreamer/gstplugins_bad/gst/transcode/ |
D | gst-cpu-throttling-clock.c | 95 getrusage (RUSAGE_SELF, &ru); in gst_transcoder_adjust_wait_time() 211 getrusage (RUSAGE_SELF, &self->priv->last_usage); in gst_cpu_throttling_clock_init()
|
/third_party/benchmark/src/ |
D | timers.cc | 137 if (getrusage(RUSAGE_SELF, &ru) == 0) return MakeTime(ru); in ProcessCPUUsage() 173 if (getrusage(RUSAGE_LWP, &ru) == 0) return MakeTime(ru); in ThreadCPUUsage()
|
/third_party/musl/compat/time32/ |
D | getrusage_time32.c | 28 int r = getrusage(who, &ru); in __getrusage_time32()
|
/third_party/musl/src/misc/ |
D | getrusage.c | 6 int getrusage(int who, struct rusage *ru) in getrusage() function
|
/third_party/musl/libc-test/src/api/ |
D | sys_resource.c | 37 {int(*p)(int,struct rusage*) = getrusage;} in f()
|
/third_party/glslang/glslang/OSDependent/Unix/ |
D | ossource.cpp | 200 if (getrusage(RUSAGE_SELF, &usage) == 0) in OS_DumpMemoryCounters()
|
/third_party/ltp/utils/benchmark/ebizzy-0.3/ |
D | ebizzy.c | 474 getrusage(RUSAGE_SELF, &start_ru); in start_threads() 480 getrusage(RUSAGE_SELF, &end_ru); in start_threads()
|