New issue
Advanced search Search tips

Issue 921807 link

Starred by 2 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Fuchsia
Pri: 3
Type: Bug



Sign in to add a comment

[Fuchsia] Build spam from LLVM Subzero build

Project Member Reported by w...@chromium.org, Jan 15

Issue description

CL https://chromium-review.googlesource.com/c/chromium/src/+/1170040 enabled SwiftShader under Fuchsia, meaning that we're actually building LLVM Subzero for that platform.  LLVM Subzero/s Process.inc abstracts mallinfo() usage and getrusage() calls, but does not have implementations for Fuchsia, nor does Fuchsia set any of the recognized HAVE_ macros.

We should provide Fuchsia-specific implementations, if possible.

 
It looks like GetMallocInfo() is only used to back getMemUsage() in lib/Support/Timer.cpp, and we can get memory usage information via zx_object_get_info(ZX_INFO_TASK_STATS) at present.

For CPU usage we can get total-runtime per-thread, but I don't believe we yet have an API to get that per-process.

Sign in to add a comment