f704193384
Current results on an aosp_angler (32 bit) : Benchmark Time CPU Iterations ----------------------------------------------------------------- BM_android_fork_execvp_ext 15019207 ns 1002131 ns 700 Test: android_fork_execvp_ext_benchmark Change-Id: I3d4339ff5cbb9a641cbb14f0b55d2b5fc18cdfde
53 lines
1.1 KiB
Text
53 lines
1.1 KiB
Text
|
|
|
|
// ========================================================
|
|
// Static and shared library
|
|
// ========================================================
|
|
cc_library {
|
|
name: "liblogwrap",
|
|
srcs: ["logwrap.c"],
|
|
shared_libs: [
|
|
"libcutils",
|
|
"liblog",
|
|
],
|
|
export_include_dirs: ["include"],
|
|
local_include_dirs: ["include"],
|
|
cflags: [
|
|
"-Werror",
|
|
],
|
|
}
|
|
|
|
// ========================================================
|
|
// Executable
|
|
// ========================================================
|
|
cc_binary {
|
|
name: "logwrapper",
|
|
srcs: ["logwrapper.c"],
|
|
static_libs: [
|
|
"liblog",
|
|
"liblogwrap",
|
|
"libcutils",
|
|
],
|
|
cflags: [
|
|
"-Werror",
|
|
],
|
|
}
|
|
|
|
// ========================================================
|
|
// Benchmark
|
|
// ========================================================
|
|
cc_benchmark {
|
|
name: "android_fork_execvp_ext_benchmark",
|
|
srcs: [
|
|
"android_fork_execvp_ext_benchmark.cpp",
|
|
],
|
|
shared_libs: [
|
|
"libbase",
|
|
"libcutils",
|
|
"liblog",
|
|
"liblogwrap",
|
|
],
|
|
cflags: [
|
|
"-Werror",
|
|
]
|
|
}
|