12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- /*++
- Copyright (c) 2013 Minoca Corp.
- This file is licensed under the terms of the GNU General Public License
- version 3. Alternative licensing terms are available. Contact
- info@minocacorp.com for details. See the LICENSE file at the root of this
- project for complete licensing information.
- Module Name:
- System Profiler
- Abstract:
- This library contains the System Profiler, which lends insight into the
- real-time resource usage of the system.
- Author:
- Chris Stevens 1-Jul-2013
- Environment:
- Kernel
- --*/
- from menv import kernelLibrary, mconfig;
- function build() {
- var arch = mconfig.arch;
- var archSources;
- var baseSources;
- var entries;
- var lib;
- baseSources = [
- "info.c",
- "profiler.c"
- ];
- if ((arch == "armv7") || (arch == "armv6")) {
- archSources = [
- "armv7/archprof.c"
- ];
- } else if (arch == "x86") {
- archSources = [
- "x86/archprof.c"
- ];
- } else if (arch == "x64") {
- archSources = [
- "x64/archprof.c"
- ];
- }
- lib = {
- "label": "sp",
- "inputs": baseSources + archSources,
- };
- entries = kernelLibrary(lib);
- return entries;
- }
|