Removed unused ace profiling scripts
authorTomasz Iwanek <t.iwanek@samsung.com>
Wed, 16 Jan 2013 08:12:45 +0000 (09:12 +0100)
committerTomasz Iwanek <t.iwanek@samsung.com>
Wed, 16 Jan 2013 08:12:45 +0000 (09:12 +0100)
[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 [deleted file]
src/profiling/ace-dependencies/runTests.sh [deleted file]
src/profiling/ace-dependencies/src/test_empty.cpp [deleted file]
src/profiling/ace-dependencies/src/test_openssl.cpp [deleted file]
src/profiling/ace-dependencies/src/test_pcre.cpp [deleted file]
src/profiling/ace-dependencies/src/test_timer.cpp [deleted file]
src/profiling/ace-dependencies/src/test_xml2.cpp [deleted file]
src/profiling/ace-dependencies/src/test_xmlsec.cpp [deleted file]

diff --git a/src/profiling/ace-dependencies/build.sh b/src/profiling/ace-dependencies/build.sh
deleted file mode 100755 (executable)
index ec3a694..0000000
+++ /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 (executable)
index 67b7d85..0000000
+++ /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 (file)
index 092e7a5..0000000
+++ /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 (file)
index 0be9a5f..0000000
+++ /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<stdio.h>
-#include <stdint.h>
-#include<openssl/ssl.h>
-#include <sys/time.h>
-
-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 (file)
index 74aeace..0000000
+++ /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<stdio.h>
-#include <stdint.h>
-#include<pcre.h>
-#include <sys/time.h>
-
-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 (file)
index 8950c24..0000000
+++ /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<stdio.h>
-#include <stdint.h>
-#include <sys/time.h>
-
-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 (file)
index a2040ce..0000000
+++ /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<stdio.h>
-#include <stdint.h>
-#include <sys/time.h>
-#include <libxml/globals.h>
-
-
-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 (file)
index b5b3e15..0000000
+++ /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<stdio.h>
-#include <stdint.h>
-#include <sys/time.h>
-#include <xmlsec/xmlsec.h>
-
-
-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;
-}