From c7ee7986a5037e80d54e5b9b90159ac77c6a3e71 Mon Sep 17 00:00:00 2001 From: Tomasz Iwanek Date: Wed, 16 Jan 2013 09:12:45 +0100 Subject: [PATCH] Removed unused ace profiling scripts [Issue#] N/A [Bug] N/A [Problem] There are still some ace profiling scripts in our repo. [Cause] N/A [Solution] Removed [Verification] Successfull compilation Patch made from change of k.jackiewicz on other repository Change-Id: Ie53a7d12b5789fc3e794372b3d37fcf3b5ea2ed6 --- src/profiling/ace-dependencies/build.sh | 24 ----------- src/profiling/ace-dependencies/runTests.sh | 46 ---------------------- src/profiling/ace-dependencies/src/test_empty.cpp | 19 --------- .../ace-dependencies/src/test_openssl.cpp | 41 ------------------- src/profiling/ace-dependencies/src/test_pcre.cpp | 41 ------------------- src/profiling/ace-dependencies/src/test_timer.cpp | 38 ------------------ src/profiling/ace-dependencies/src/test_xml2.cpp | 42 -------------------- src/profiling/ace-dependencies/src/test_xmlsec.cpp | 42 -------------------- 8 files changed, 293 deletions(-) delete mode 100755 src/profiling/ace-dependencies/build.sh delete mode 100755 src/profiling/ace-dependencies/runTests.sh delete mode 100644 src/profiling/ace-dependencies/src/test_empty.cpp delete mode 100644 src/profiling/ace-dependencies/src/test_openssl.cpp delete mode 100644 src/profiling/ace-dependencies/src/test_pcre.cpp delete mode 100644 src/profiling/ace-dependencies/src/test_timer.cpp delete mode 100644 src/profiling/ace-dependencies/src/test_xml2.cpp delete mode 100644 src/profiling/ace-dependencies/src/test_xmlsec.cpp diff --git a/src/profiling/ace-dependencies/build.sh b/src/profiling/ace-dependencies/build.sh deleted file mode 100755 index ec3a694..0000000 --- a/src/profiling/ace-dependencies/build.sh +++ /dev/null @@ -1,24 +0,0 @@ -# Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -SRC=./src -BUILD=build -mkdir $BUILD 2>/dev/null -g++ $SRC/test_empty.cpp -o $BUILD/empty -g++ $SRC/test_timer.cpp -o $BUILD/timer -g++ $SRC/test_openssl.cpp `pkg-config --libs openssl` -o $BUILD/ssl -g++ $SRC/test_pcre.cpp `pkg-config --libs libpcre` -o $BUILD/pcre -g++ $SRC/test_xml2.cpp `pkg-config --cflags libxml-2.0` `pkg-config --libs libxml-2.0` -o $BUILD/xml -g++ $SRC/test_xmlsec.cpp `pkg-config --cflags xmlsec1` `pkg-config --libs xmlsec1` -o $BUILD/xmlsec diff --git a/src/profiling/ace-dependencies/runTests.sh b/src/profiling/ace-dependencies/runTests.sh deleted file mode 100755 index 67b7d85..0000000 --- a/src/profiling/ace-dependencies/runTests.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/bash - -# Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -set -o nounset # Treat unset variables as an error - -CLEAR_CACHE_ENABLE=0 - - -function runTest(){ -echo -e "\nTesting..." $2 - -if [ $CLEAR_CACHE_ENABLE -eq 1 ]; then -#Clear cache -/sbin/sysctl vm.drop_caches=3; -fi - -START=$(date +%s.%N) -$1 -END=$(date +%s.%N) -DIFF=$(echo "$END - $START" | bc) -MS=$(echo "$DIFF" | sed 's/\([0-9]*\)[.]\([0-9][0-9][0-9]\).*/\1s \2ms/' | sed 's/^s/0s/'); -echo -e "Result for" $2 " " $MS "\n" -} - - -pushd ./build > /dev/null -runTest ./empty "None" -runTest ./timer "Timer" -runTest ./ssl "OpenSSL" -runTest ./pcre "Pcre" -runTest ./xml "Xml2" -runTest ./xmlsec "XmlSec" "internally linked with openssl and xml2" -popd > /dev/null diff --git a/src/profiling/ace-dependencies/src/test_empty.cpp b/src/profiling/ace-dependencies/src/test_empty.cpp deleted file mode 100644 index 092e7a5..0000000 --- a/src/profiling/ace-dependencies/src/test_empty.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/* - * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -int main(int argc, const char *argv[]) -{ - return 0; -} diff --git a/src/profiling/ace-dependencies/src/test_openssl.cpp b/src/profiling/ace-dependencies/src/test_openssl.cpp deleted file mode 100644 index 0be9a5f..0000000 --- a/src/profiling/ace-dependencies/src/test_openssl.cpp +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -#include -#include -#include -#include - -int main(int argc, const char *argv[]) -{ - struct timeval start; - struct timeval end; - - - gettimeofday(&start, NULL); - SSL_library_init(); - gettimeofday(&end, NULL); - - - uint32_t st; - uint32_t en; - - st = start.tv_sec * 1000 + start.tv_usec / 1000; - en = end.tv_sec * 1000 + end.tv_usec / 1000; - - printf("Command execution time :\t %d ms %d us\n", en-st, (end.tv_usec - start.tv_usec)%1000); - - return 0; -} diff --git a/src/profiling/ace-dependencies/src/test_pcre.cpp b/src/profiling/ace-dependencies/src/test_pcre.cpp deleted file mode 100644 index 74aeace..0000000 --- a/src/profiling/ace-dependencies/src/test_pcre.cpp +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -#include -#include -#include -#include - -int main(int argc, const char *argv[]) -{ - struct timeval start; - struct timeval end; - - - gettimeofday(&start, NULL); - pcre_version(); - gettimeofday(&end, NULL); - - - uint32_t st; - uint32_t en; - - st = start.tv_sec * 1000 + start.tv_usec / 1000; - en = end.tv_sec * 1000 + end.tv_usec / 1000; - - printf("Command execution time :\t %d ms %d us\n", en-st, (end.tv_usec - start.tv_usec)%1000); - - return 0; -} diff --git a/src/profiling/ace-dependencies/src/test_timer.cpp b/src/profiling/ace-dependencies/src/test_timer.cpp deleted file mode 100644 index 8950c24..0000000 --- a/src/profiling/ace-dependencies/src/test_timer.cpp +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -#include -#include -#include - -int main(int argc, const char *argv[]) -{ - struct timeval start; - struct timeval end; - - - gettimeofday(&start, NULL); - gettimeofday(&end, NULL); - - uint32_t st; - uint32_t en; - - st = start.tv_sec * 1000 + start.tv_usec / 1000; - en = end.tv_sec * 1000 + end.tv_usec / 1000; - - printf("Command execution time :\t %d ms %d us\n", en-st, (end.tv_usec - start.tv_usec)%1000); - - return 0; -} diff --git a/src/profiling/ace-dependencies/src/test_xml2.cpp b/src/profiling/ace-dependencies/src/test_xml2.cpp deleted file mode 100644 index a2040ce..0000000 --- a/src/profiling/ace-dependencies/src/test_xml2.cpp +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -#include -#include -#include -#include - - -int main(int argc, const char *argv[]) -{ - struct timeval start; - struct timeval end; - - - gettimeofday(&start, NULL); - xmlCleanupGlobals(); - gettimeofday(&end, NULL); - - - uint32_t st; - uint32_t en; - - st = start.tv_sec * 1000 + start.tv_usec / 1000; - en = end.tv_sec * 1000 + end.tv_usec / 1000; - - printf("Command execution time :\t %d ms %d us\n", en-st, (end.tv_usec - start.tv_usec)%1000); - - return 0; -} diff --git a/src/profiling/ace-dependencies/src/test_xmlsec.cpp b/src/profiling/ace-dependencies/src/test_xmlsec.cpp deleted file mode 100644 index b5b3e15..0000000 --- a/src/profiling/ace-dependencies/src/test_xmlsec.cpp +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -#include -#include -#include -#include - - -int main(int argc, const char *argv[]) -{ - struct timeval start; - struct timeval end; - - - gettimeofday(&start, NULL); - xmlSecInit(); - gettimeofday(&end, NULL); - - - uint32_t st; - uint32_t en; - - st = start.tv_sec * 1000 + start.tv_usec / 1000; - en = end.tv_sec * 1000 + end.tv_usec / 1000; - - printf("Command execution time :\t %d ms %d us\n", en-st, (end.tv_usec - start.tv_usec)%1000); - - return 0; -} -- 2.7.4