From 8b1198562a9e54d54b5b21309db3e7fe16d1ba60 Mon Sep 17 00:00:00 2001 From: winlin Date: Wed, 23 Sep 2015 15:46:51 +0800 Subject: [PATCH] show cpu info. --- trunk/src/main/srs_main_server.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/trunk/src/main/srs_main_server.cpp b/trunk/src/main/srs_main_server.cpp index 73de98386..ae4416ef9 100644 --- a/trunk/src/main/srs_main_server.cpp +++ b/trunk/src/main/srs_main_server.cpp @@ -225,6 +225,21 @@ void check_macro_features() #if defined(SRS_PERF_SO_SNDBUF_SIZE) && !defined(SRS_PERF_MW_SO_SNDBUF) #error "SRS_PERF_SO_SNDBUF_SIZE depends on SRS_PERF_MW_SO_SNDBUF" #endif + +#ifndef SRS_OSX + #if defined(__amd64__) + srs_trace("cpu is amd64, glibc %d.%d", (int)__GLIBC__, (int)__GLIBC_MINOR__); + #endif + #if defined(__x86_64__) + srs_trace("cpu is x86_64, glibc %d.%d", (int)__GLIBC__, (int)__GLIBC_MINOR__); + #endif + #if defined(__i386__) + srs_trace("cpu is i386, glibc %d.%d", (int)__GLIBC__, (int)__GLIBC_MINOR__); + #endif + #if defined(__arm__) + srs_trace("cpu is arm, glibc %d.%d", (int)__GLIBC__, (int)__GLIBC_MINOR__); + #endif +#endif } /**