diff options
author | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-08-03 18:33:28 +0000 |
---|---|---|
committer | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-08-03 18:33:28 +0000 |
commit | c68f67e2e06664fd36293cf744b5bf043d68a00e (patch) | |
tree | ff2f9a20f90cd32909d73ce9750600c87c092fb2 /my_profile.h | |
parent | c22e181e2c057551a5f6e88c73c80ff67b479bea (diff) | |
download | mpv-c68f67e2e06664fd36293cf744b5bf043d68a00e.tar.bz2 mpv-c68f67e2e06664fd36293cf744b5bf043d68a00e.tar.xz |
removed obsolete my_profile
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10517 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'my_profile.h')
-rw-r--r-- | my_profile.h | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/my_profile.h b/my_profile.h deleted file mode 100644 index 3a36d3a957..0000000000 --- a/my_profile.h +++ /dev/null @@ -1,33 +0,0 @@ -/* - * my_profile.h - * - * Copyright (C) Nick Kurshev <nickols_k@mail.ru> - Oct 2001 - * - * You can redistribute this file under terms and conditions - * of GNU General Public licence v2. - */ -#ifndef MY_PROFILE_INC -#define MY_PROFILE_INC - -extern volatile unsigned long long int my_profile_start,my_profile_end,my_profile_total; - -#if defined ( ENABLE_PROFILE ) && defined ( ARCH_X86 ) -static inline unsigned long long int read_tsc( void ) -{ - unsigned long long int retval; - __asm __volatile ("rdtsc":"=A"(retval)::"memory"); - return retval; -} - -#define PROFILE_RESET() (my_profile_total=0ULL) -#define PROFILE_START() { static int inited=0; if(!inited) { inited=1; my_profile_total=0ULL; } my_profile_start=read_tsc(); } -#define PROFILE_END(your_message) { my_profile_end=read_tsc(); my_profile_total+=(my_profile_end-my_profile_start); printf(your_message" current=%llu total=%llu\n\t",(my_profile_end-my_profile_start),my_profile_total); } -#else -#define PROFILE_RESET() -#define PROFILE_START() -#define PROFILE_END(your_message) -#endif - - - -#endif |