- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello.
I would like to measure the per-thread cpu time of a part of my program inside the enclave. If I create two ocalls, ocall_start_time and ocall_stop_time, which take the current per-thread CPU time using getrusage(RUSAGE_THREAD, &start) and getrusage(RUSAGE_THREAD, &stop). At the beginning of the interesting part I call ocall_start_time and at the end of the part I call ocall_stop_time. After obtaining the two values, I compute the difference between start and stop. Is the CPU time spend inside the enclave included in the result? If not, is there any other possibility to measure the per-thread CPU time spend inside an enclave?
Regards, Benedikt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Kopf_Benedikt,
Yes, using getrusage in the manner you described will give you the amount of user time spent in the enclave between the two calls.
Sincerely,
Jesus G.
Intel Customer Support
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Kopf_Benedikt,
Yes, using getrusage in the manner you described will give you the amount of user time spent in the enclave between the two calls.
Sincerely,
Jesus G.
Intel Customer Support
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page