fuchsia: Stub out timing and memory functions

This functionality isn't (currently) available on Fuchsia from the OS.

Bug: chromium:808287
Change-Id: If017bc762448c437b74cb03587ba35da5d131c75
Reviewed-on: https://webrtc-review.googlesource.com/c/107760
Reviewed-by: Patrik Höglund <phoglund@webrtc.org>
Commit-Queue: Scott Graham <scottmg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#25373}
This commit is contained in:
Scott Graham 2018-10-24 15:15:36 -07:00 committed by Commit Bot
parent 9c8ae4b9a1
commit f26e290e33
2 changed files with 10 additions and 1 deletions

View file

@ -65,6 +65,9 @@ int64_t GetProcessCpuTimeNanos() {
} else {
RTC_LOG_ERR(LS_ERROR) << "GetProcessTimes() failed.";
}
#elif defined(WEBRTC_FUCHSIA)
RTC_LOG_ERR(LS_ERROR) << "GetProcessCpuTimeNanos() not implemented";
return 0;
#else
// Not implemented yet.
static_assert(
@ -107,10 +110,13 @@ int64_t GetThreadCpuTimeNanos() {
} else {
RTC_LOG_ERR(LS_ERROR) << "GetThreadTimes() failed.";
}
#elif defined(WEBRTC_FUCHSIA)
RTC_LOG_ERR(LS_ERROR) << "GetThreadCpuTimeNanos() not implemented";
return 0;
#else
// Not implemented yet.
static_assert(
false, "GetProcessCpuTimeNanos() platform support not yet implemented.");
false, "GetThreadCpuTimeNanos() platform support not yet implemented.");
#endif
return -1;
}

View file

@ -61,6 +61,9 @@ int64_t GetProcessResidentSizeBytes() {
return -1;
}
return pmc.WorkingSetSize;
#elif defined(WEBRTC_FUCHSIA)
RTC_LOG_ERR(LS_ERROR) << "GetProcessResidentSizeBytes() not implemented";
return 0;
#else
// Not implemented yet.
static_assert(false,