From 0881af7718a3a8591afa062b9dd446ca7193e86f Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Tue, 17 Sep 2013 17:26:45 -0400 Subject: Oops this wasn't meant to be checked in. Change-Id: I6eccbd38a44dfaec66718df210884067beaaf30e --- sc/source/core/opencl/openclwrapper.cxx | 45 --------------------------------- 1 file changed, 45 deletions(-) (limited to 'sc') diff --git a/sc/source/core/opencl/openclwrapper.cxx b/sc/source/core/opencl/openclwrapper.cxx index 7bcd39014a3f..2b2f8f75a672 100644 --- a/sc/source/core/opencl/openclwrapper.cxx +++ b/sc/source/core/opencl/openclwrapper.cxx @@ -43,49 +43,6 @@ #define DEVICE_NAME_LENGTH 1024 - -#include -#include -#include - -namespace { - -class stack_printer -{ -public: - explicit stack_printer(const char* msg) : - msMsg(msg) - { - fprintf(stdout, "%s: --begin\n", msMsg.c_str()); - mfStartTime = getTime(); - } - - ~stack_printer() - { - double fEndTime = getTime(); - fprintf(stdout, "%s: --end (duration: %g sec)\n", msMsg.c_str(), (fEndTime - mfStartTime)); - } - - void printTime(int line) const - { - double fEndTime = getTime(); - fprintf(stdout, "%s: --(%d) (duration: %g sec)\n", msMsg.c_str(), line, (fEndTime - mfStartTime)); - } - -private: - double getTime() const - { - timeval tv; - gettimeofday(&tv, NULL); - return tv.tv_sec + tv.tv_usec / 1000000.0; - } - - ::std::string msMsg; - double mfStartTime; -}; - -} - using namespace std; namespace sc { namespace opencl { @@ -2795,8 +2752,6 @@ void compileKernels(const OUString* pDeviceId) if (pDeviceId->isEmpty()) return; - stack_printer __stack_printer__("sc/opencl::compileKernels"); - fprintf(stdout, "opencl::compileKernels: device = '%s'\n", rtl::OUStringToOString(*pDeviceId, RTL_TEXTENCODING_UTF8).getStr()); if (!switchOpenclDevice(pDeviceId, false)) return; -- cgit v1.2.3