mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-13 05:40:42 +01:00
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:
parent
9c8ae4b9a1
commit
f26e290e33
2 changed files with 10 additions and 1 deletions
|
@ -65,6 +65,9 @@ int64_t GetProcessCpuTimeNanos() {
|
||||||
} else {
|
} else {
|
||||||
RTC_LOG_ERR(LS_ERROR) << "GetProcessTimes() failed.";
|
RTC_LOG_ERR(LS_ERROR) << "GetProcessTimes() failed.";
|
||||||
}
|
}
|
||||||
|
#elif defined(WEBRTC_FUCHSIA)
|
||||||
|
RTC_LOG_ERR(LS_ERROR) << "GetProcessCpuTimeNanos() not implemented";
|
||||||
|
return 0;
|
||||||
#else
|
#else
|
||||||
// Not implemented yet.
|
// Not implemented yet.
|
||||||
static_assert(
|
static_assert(
|
||||||
|
@ -107,10 +110,13 @@ int64_t GetThreadCpuTimeNanos() {
|
||||||
} else {
|
} else {
|
||||||
RTC_LOG_ERR(LS_ERROR) << "GetThreadTimes() failed.";
|
RTC_LOG_ERR(LS_ERROR) << "GetThreadTimes() failed.";
|
||||||
}
|
}
|
||||||
|
#elif defined(WEBRTC_FUCHSIA)
|
||||||
|
RTC_LOG_ERR(LS_ERROR) << "GetThreadCpuTimeNanos() not implemented";
|
||||||
|
return 0;
|
||||||
#else
|
#else
|
||||||
// Not implemented yet.
|
// Not implemented yet.
|
||||||
static_assert(
|
static_assert(
|
||||||
false, "GetProcessCpuTimeNanos() platform support not yet implemented.");
|
false, "GetThreadCpuTimeNanos() platform support not yet implemented.");
|
||||||
#endif
|
#endif
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -61,6 +61,9 @@ int64_t GetProcessResidentSizeBytes() {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
return pmc.WorkingSetSize;
|
return pmc.WorkingSetSize;
|
||||||
|
#elif defined(WEBRTC_FUCHSIA)
|
||||||
|
RTC_LOG_ERR(LS_ERROR) << "GetProcessResidentSizeBytes() not implemented";
|
||||||
|
return 0;
|
||||||
#else
|
#else
|
||||||
// Not implemented yet.
|
// Not implemented yet.
|
||||||
static_assert(false,
|
static_assert(false,
|
||||||
|
|
Loading…
Reference in a new issue