Advertisement
Guest User

zmc 384 patch

a guest
May 23rd, 2011
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 44.79 KB | None | 0 0
  1. V4L monitor (Colour)
  2. --------------------
  3. 384x288 @ 10 fps
  4. Modect
  5. Single zone (using AlarmedPixels only)
  6.  
  7. PATCH:
  8. (zma should be even better with SSSE3 capable CPU, My ZM box doesn't have SSSE3)
  9. Capture palette: BGR32 -> 32bit RGB
  10.  
  11. ZMC PROFILING:
  12.  
  13. Flat profile:
  14.  
  15. Each sample counts as 0.01 seconds.
  16. % cumulative self self total
  17. time seconds seconds calls ms/call ms/call name
  18. 84.94 4.77 4.77 sse2copy_begin
  19. 4.99 5.05 0.28 10887 0.03 0.03 Image::Annotate(char const*, Coord const&, unsigned int, unsigned int)
  20. 1.60 5.14 0.09 memset
  21. 1.07 5.20 0.06 strncpy
  22. 0.89 5.25 0.05 __strftime_internal
  23. 0.71 5.29 0.04 ftruncate64
  24. 0.53 5.32 0.03 __tzstring
  25. 0.45 5.34 0.03 10887 0.00 0.00 LocalCamera::PostCapture()
  26. 0.36 5.36 0.02 10886 0.00 0.00 Monitor::GetState() const
  27. 0.36 5.38 0.02 __tz_convert
  28. 0.36 5.40 0.02 __tzfile_compute
  29. 0.36 5.42 0.02 random
  30. 0.27 5.44 0.02 10887 0.00 0.00 sse2_aligned_memcpy(void*, void const*, unsigned int)
  31. 0.27 5.45 0.02 1 15.00 15.00 LocalCamera::PrimeCapture()
  32. 0.18 5.46 0.01 10887 0.00 0.00 LocalCamera::Capture(Image&)
  33. 0.18 5.47 0.01 2 5.00 5.00 Image::Fill(unsigned int, int, Polygon const&)
  34. 0.18 5.48 0.01 1 10.00 385.00 main
  35. 0.18 5.49 0.01 _i18n_number_rewrite
  36. 0.18 5.50 0.01 _int_free
  37. 0.18 5.51 0.01 cfree
  38. 0.18 5.52 0.01 gettimeofday
  39. 0.18 5.53 0.01 malloc
  40. 0.18 5.54 0.01 memcpy
  41. 0.18 5.55 0.01 strchrnul
  42. 0.18 5.56 0.01 strcspn
  43. 0.18 5.57 0.01 strdup
  44. 0.18 5.58 0.01 strerror_r
  45. 0.18 5.59 0.01 strftime_l
  46. 0.18 5.60 0.01 strlen
  47. 0.18 5.61 0.01 vfprintf
  48. 0.00 5.61 0.00 10887 0.00 0.00 LocalCamera::PreCapture()
  49. 0.00 5.61 0.00 10887 0.00 0.00 Image::Assign(int, int, int, int, unsigned char const*, unsigned int)
  50. 0.00 5.61 0.00 10887 0.00 0.00 Monitor::CheckSignal(Image const*)
  51. 0.00 5.61 0.00 10887 0.00 0.03 Monitor::Capture()
  52. 0.00 5.61 0.00 10887 0.00 0.03 Monitor::TimestampImage(Image*, timeval const*) const
  53. 0.00 5.61 0.00 488 0.00 0.00 Image::Edge::CompareX(void const*, void const*)
  54. 0.00 5.61 0.00 197 0.00 0.00 ConfigItem::ConfigItem(char const*, char const*, char const*)
  55. 0.00 5.61 0.00 197 0.00 0.00 Config::Item(int)
  56. 0.00 5.61 0.00 197 0.00 0.00 ConfigItem::ConvertValue() const
  57. 0.00 5.61 0.00 64 0.00 0.00 ConfigItem::StringValue() const
  58. 0.00 5.61 0.00 54 0.00 0.00 Image::Image(int, int, int, int, unsigned char*)
  59. 0.00 5.61 0.00 54 0.00 0.00 Image::~Image()
  60. 0.00 5.61 0.00 19 0.00 0.00 zmDbgOutput
  61. 0.00 5.61 0.00 4 0.00 0.00 Image::AllocImgBuffer(unsigned int)
  62. 0.00 5.61 0.00 4 0.00 0.00 Image::Edge::CompareYX(void const*, void const*)
  63. 0.00 5.61 0.00 3 0.00 0.00 Polygon::operator=(Polygon const&)
  64. 0.00 5.61 0.00 2 0.00 5.00 Zone::Setup(Monitor*, int, char const*, Zone::ZoneType, Polygon const&, unsigned int, Zone::CheckMethod, int, int, int, int, Coord const&, int, int, int, int, int, int, int)
  65. 0.00 5.61 0.00 2 0.00 0.00 Zone::~Zone()
  66. 0.00 5.61 0.00 2 0.00 0.00 Image::Crop(int, int, int, int)
  67. 0.00 5.61 0.00 2 0.00 5.00 Image::Fill(unsigned int, Polygon const&)
  68. 0.00 5.61 0.00 2 0.00 0.00 Image::Outline(unsigned int, Polygon const&)
  69. 0.00 5.61 0.00 2 0.00 0.00 Polygon::calcCentre()
  70. 0.00 5.61 0.00 2 0.00 0.00 Polygon::Polygon(int, Coord const*)
  71. 0.00 5.61 0.00 1 0.00 0.00 global constructors keyed to _Z12zmLoadConfigv
  72. 0.00 5.61 0.00 1 0.00 0.00 global constructors keyed to _ZN10RtspThread13smMinDataPortE
  73. 0.00 5.61 0.00 1 0.00 0.00 zmDbConnect()
  74. 0.00 5.61 0.00 1 0.00 0.00 zmLoadConfig()
  75. 0.00 5.61 0.00 1 0.00 0.00 sse2_fastblend(unsigned char const*, unsigned char const*, unsigned char*, unsigned long, double)
  76. 0.00 5.61 0.00 1 0.00 0.00 zmSetDieHandler(void (*)(int))
  77. 0.00 5.61 0.00 1 0.00 0.00 zmSetTermHandler(void (*)(int))
  78. 0.00 5.61 0.00 1 0.00 0.00 zmSetDefaultDieHandler()
  79. 0.00 5.61 0.00 1 0.00 0.00 zmSetDefaultTermHandler()
  80. 0.00 5.61 0.00 1 0.00 0.00 ssedetect()
  81. 0.00 5.61 0.00 1 0.00 0.00 AllocBuffer(unsigned int)
  82. 0.00 5.61 0.00 1 0.00 0.00 getFfPixFormatFromV4lPalette(int, int)
  83. 0.00 5.61 0.00 1 0.00 0.00 LocalCamera::Initialise()
  84. 0.00 5.61 0.00 1 0.00 0.00 LocalCamera::Terminate()
  85. 0.00 5.61 0.00 1 0.00 0.00 LocalCamera::LocalCamera(int, std::string const&, int, int, std::string const&, int, int, int, int, int, int, int, int, bool)
  86. 0.00 5.61 0.00 1 0.00 0.00 LocalCamera::~LocalCamera()
  87. 0.00 5.61 0.00 1 0.00 0.00 StaticConfig::~StaticConfig()
  88. 0.00 5.61 0.00 1 0.00 0.00 Zone::ParsePolygonString(char const*, Polygon&)
  89. 0.00 5.61 0.00 1 0.00 5.00 Zone::Load(Monitor*, Zone**&)
  90. 0.00 5.61 0.00 1 0.00 0.00 Image::Initialise()
  91. 0.00 5.61 0.00 1 0.00 0.00 Image::AssignDirect(int, int, int, int, unsigned char*, unsigned int, int)
  92. 0.00 5.61 0.00 1 0.00 0.00 Image::DumpImgBuffer()
  93. 0.00 5.61 0.00 1 0.00 0.00 Camera::Camera(int, Camera::SourceType, int, int, int, int, int, int, int, int, bool)
  94. 0.00 5.61 0.00 1 0.00 0.00 Camera::~Camera()
  95. 0.00 5.61 0.00 1 0.00 0.00 Config::Load()
  96. 0.00 5.61 0.00 1 0.00 0.00 Config::Assign()
  97. 0.00 5.61 0.00 1 0.00 0.00 Config::~Config()
  98. 0.00 5.61 0.00 1 0.00 10.00 Monitor::LoadLocalMonitors(char const*, Monitor**&, Monitor::Purpose)
  99. 0.00 5.61 0.00 1 0.00 5.00 Monitor::Monitor(int, char const*, int, bool, char const*, Camera*, int, char const*, char const*, Coord const&, int, int, int, int, int, int, int, int, int, int, int, int, bool, unsigned int, Monitor::Purpose, int, Zone**)
  100. 0.00 5.61 0.00 1 0.00 0.00 Monitor::~Monitor()
  101. 0.00 5.61 0.00 1 0.00 0.00 std::set<int, std::less<int>, std::allocator<int> >::~set()
  102. 0.00 5.61 0.00 1 0.00 0.00 std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>, std::allocator<int> >::_M_erase(std::_Rb_tree_node<int>*)
  103. 0.00 5.61 0.00 1 0.00 0.00 zmDbgInit
  104. 0.00 5.61 0.00 1 0.00 0.00 zmDebugInitialise
  105. 0.00 5.61 0.00 1 0.00 0.00 zmDebugPrepareLog
  106. 0.00 5.61 0.00 1 0.00 0.00 zmGetDebugEnv
  107.  
  108. % the percentage of the total running time of the
  109. time program used by this function.
  110.  
  111. cumulative a running sum of the number of seconds accounted
  112. seconds for by this function and those listed above it.
  113.  
  114. self the number of seconds accounted for by this
  115. seconds function alone. This is the major sort for this
  116. listing.
  117.  
  118. calls the number of times this function was invoked, if
  119. this function is profiled, else blank.
  120.  
  121. self the average number of milliseconds spent in this
  122. ms/call function per call, if this function is profiled,
  123. else blank.
  124.  
  125. total the average number of milliseconds spent in this
  126. ms/call function and its descendents per call, if this
  127. function is profiled, else blank.
  128.  
  129. name the name of the function. This is the minor sort
  130. for this listing. The index shows the location of
  131. the function in the gprof listing. If the index is
  132. in parenthesis it shows where it would appear in
  133. the gprof listing if it were to be printed.
  134. Call graph (explanation follows)
  135.  
  136.  
  137. granularity: each sample hit covers 2 byte(s) for 0.18% of 5.61 seconds
  138.  
  139. index % time self children called name
  140. <spontaneous>
  141. [1] 84.9 4.77 0.00 sse2copy_begin [1]
  142. -----------------------------------------------
  143. <spontaneous>
  144. [2] 6.9 0.00 0.39 __libc_start_main [2]
  145. 0.01 0.38 1/1 main [3]
  146. -----------------------------------------------
  147. 0.01 0.38 1/1 __libc_start_main [2]
  148. [3] 6.9 0.01 0.38 1 main [3]
  149. 0.00 0.31 10887/10887 Monitor::Capture() [4]
  150. 0.03 0.00 10887/10887 LocalCamera::PostCapture() [12]
  151. 0.02 0.00 10886/10886 Monitor::GetState() const [15]
  152. 0.02 0.00 1/1 LocalCamera::PrimeCapture() [19]
  153. 0.00 0.01 1/1 Monitor::LoadLocalMonitors(char const*, Monitor**&, Monitor::Purpose) [34]
  154. 0.00 0.00 10887/10887 LocalCamera::PreCapture() [12140]
  155. 0.00 0.00 1/1 zmDbgInit [40]
  156. 0.00 0.00 1/1 ssedetect() [12167]
  157. 0.00 0.00 1/1 zmLoadConfig() [12161]
  158. 0.00 0.00 1/19 zmDbgOutput [39]
  159. 0.00 0.00 1/1 zmSetDefaultTermHandler() [12166]
  160. 0.00 0.00 1/1 zmSetDefaultDieHandler() [12165]
  161. 0.00 0.00 1/54 Image::~Image() [12149]
  162. 0.00 0.00 1/1 Monitor::~Monitor() [12184]
  163. -----------------------------------------------
  164. 0.00 0.31 10887/10887 main [3]
  165. [4] 5.4 0.00 0.31 10887 Monitor::Capture() [4]
  166. 0.00 0.28 10887/10887 Monitor::TimestampImage(Image*, timeval const*) const [6]
  167. 0.01 0.02 10887/10887 LocalCamera::Capture(Image&) [13]
  168. 0.00 0.00 10887/10887 Monitor::CheckSignal(Image const*) [12142]
  169. 0.00 0.00 10/19 zmDbgOutput [39]
  170. -----------------------------------------------
  171. 0.28 0.00 10887/10887 Monitor::TimestampImage(Image*, timeval const*) const [6]
  172. [5] 5.0 0.28 0.00 10887 Image::Annotate(char const*, Coord const&, unsigned int, unsigned int) [5]
  173. -----------------------------------------------
  174. 0.00 0.28 10887/10887 Monitor::Capture() [4]
  175. [6] 5.0 0.00 0.28 10887 Monitor::TimestampImage(Image*, timeval const*) const [6]
  176. 0.28 0.00 10887/10887 Image::Annotate(char const*, Coord const&, unsigned int, unsigned int) [5]
  177. -----------------------------------------------
  178. <spontaneous>
  179. [7] 1.6 0.09 0.00 memset [7]
  180. -----------------------------------------------
  181. <spontaneous>
  182. [8] 1.1 0.06 0.00 strncpy [8]
  183. -----------------------------------------------
  184. <spontaneous>
  185. [9] 0.9 0.05 0.00 __strftime_internal [9]
  186. -----------------------------------------------
  187. <spontaneous>
  188. [10] 0.7 0.04 0.00 ftruncate64 [10]
  189. -----------------------------------------------
  190. <spontaneous>
  191. [11] 0.5 0.03 0.00 __tzstring [11]
  192. -----------------------------------------------
  193. 0.03 0.00 10887/10887 main [3]
  194. [12] 0.4 0.03 0.00 10887 LocalCamera::PostCapture() [12]
  195. -----------------------------------------------
  196. 0.01 0.02 10887/10887 Monitor::Capture() [4]
  197. [13] 0.4 0.01 0.02 10887 LocalCamera::Capture(Image&) [13]
  198. 0.02 0.00 10887/10887 sse2_aligned_memcpy(void*, void const*, unsigned int) [18]
  199. 0.00 0.00 10887/10887 Image::Assign(int, int, int, int, unsigned char const*, unsigned int) [12141]
  200. -----------------------------------------------
  201. <spontaneous>
  202. [14] 0.4 0.02 0.00 random [14]
  203. -----------------------------------------------
  204. 0.02 0.00 10886/10886 main [3]
  205. [15] 0.4 0.02 0.00 10886 Monitor::GetState() const [15]
  206. -----------------------------------------------
  207. <spontaneous>
  208. [16] 0.4 0.02 0.00 __tz_convert [16]
  209. -----------------------------------------------
  210. <spontaneous>
  211. [17] 0.4 0.02 0.00 __tzfile_compute [17]
  212. -----------------------------------------------
  213. 0.02 0.00 10887/10887 LocalCamera::Capture(Image&) [13]
  214. [18] 0.3 0.02 0.00 10887 sse2_aligned_memcpy(void*, void const*, unsigned int) [18]
  215. -----------------------------------------------
  216. 0.02 0.00 1/1 main [3]
  217. [19] 0.3 0.02 0.00 1 LocalCamera::PrimeCapture() [19]
  218. 0.00 0.00 1/1 LocalCamera::Initialise() [12170]
  219. -----------------------------------------------
  220. <spontaneous>
  221. [20] 0.2 0.01 0.00 cfree [20]
  222. -----------------------------------------------
  223. <spontaneous>
  224. [21] 0.2 0.01 0.00 gettimeofday [21]
  225. -----------------------------------------------
  226. <spontaneous>
  227. [22] 0.2 0.01 0.00 malloc [22]
  228. -----------------------------------------------
  229. <spontaneous>
  230. [23] 0.2 0.01 0.00 memcpy [23]
  231. -----------------------------------------------
  232. <spontaneous>
  233. [24] 0.2 0.01 0.00 strchrnul [24]
  234. -----------------------------------------------
  235. <spontaneous>
  236. [25] 0.2 0.01 0.00 strcspn [25]
  237. -----------------------------------------------
  238. <spontaneous>
  239. [26] 0.2 0.01 0.00 strdup [26]
  240. -----------------------------------------------
  241. <spontaneous>
  242. [27] 0.2 0.01 0.00 strerror_r [27]
  243. -----------------------------------------------
  244. <spontaneous>
  245. [28] 0.2 0.01 0.00 strftime_l [28]
  246. -----------------------------------------------
  247. <spontaneous>
  248. [29] 0.2 0.01 0.00 strlen [29]
  249. -----------------------------------------------
  250. <spontaneous>
  251. [30] 0.2 0.01 0.00 vfprintf [30]
  252. -----------------------------------------------
  253. 0.00 0.01 1/2 Monitor::Monitor(int, char const*, int, bool, char const*, Camera*, int, char const*, char const*, Coord const&, int, int, int, int, int, int, int, int, int, int, int, int, bool, unsigned int, Monitor::Purpose, int, Zone**) [38]
  254. 0.00 0.01 1/2 Zone::Load(Monitor*, Zone**&) [37]
  255. [31] 0.2 0.00 0.01 2 Zone::Setup(Monitor*, int, char const*, Zone::ZoneType, Polygon const&, unsigned int, Zone::CheckMethod, int, int, int, int, Coord const&, int, int, int, int, int, int, int) [31]
  256. 0.00 0.01 2/2 Image::Fill(unsigned int, Polygon const&) [32]
  257. 0.00 0.00 2/3 Polygon::operator=(Polygon const&) [12152]
  258. 0.00 0.00 2/54 Image::Image(int, int, int, int, unsigned char*) [12148]
  259. 0.00 0.00 2/2 Image::Outline(unsigned int, Polygon const&) [12155]
  260. 0.00 0.00 2/2 Image::Crop(int, int, int, int) [12154]
  261. -----------------------------------------------
  262. 0.00 0.01 2/2 Zone::Setup(Monitor*, int, char const*, Zone::ZoneType, Polygon const&, unsigned int, Zone::CheckMethod, int, int, int, int, Coord const&, int, int, int, int, int, int, int) [31]
  263. [32] 0.2 0.00 0.01 2 Image::Fill(unsigned int, Polygon const&) [32]
  264. 0.01 0.00 2/2 Image::Fill(unsigned int, int, Polygon const&) [33]
  265. -----------------------------------------------
  266. 0.01 0.00 2/2 Image::Fill(unsigned int, Polygon const&) [32]
  267. [33] 0.2 0.01 0.00 2 Image::Fill(unsigned int, int, Polygon const&) [33]
  268. -----------------------------------------------
  269. 0.00 0.01 1/1 main [3]
  270. [34] 0.2 0.00 0.01 1 Monitor::LoadLocalMonitors(char const*, Monitor**&, Monitor::Purpose) [34]
  271. 0.00 0.01 1/1 Monitor::Monitor(int, char const*, int, bool, char const*, Camera*, int, char const*, char const*, Coord const&, int, int, int, int, int, int, int, int, int, int, int, int, bool, unsigned int, Monitor::Purpose, int, Zone**) [38]
  272. 0.00 0.01 1/1 Zone::Load(Monitor*, Zone**&) [37]
  273. 0.00 0.00 1/1 LocalCamera::LocalCamera(int, std::string const&, int, int, std::string const&, int, int, int, int, int, int, int, int, bool) [12172]
  274. 0.00 0.00 1/2 Zone::~Zone() [12153]
  275. -----------------------------------------------
  276. <spontaneous>
  277. [35] 0.2 0.01 0.00 _i18n_number_rewrite [35]
  278. -----------------------------------------------
  279. <spontaneous>
  280. [36] 0.2 0.01 0.00 _int_free [36]
  281. -----------------------------------------------
  282. 0.00 0.01 1/1 Monitor::LoadLocalMonitors(char const*, Monitor**&, Monitor::Purpose) [34]
  283. [37] 0.1 0.00 0.01 1 Zone::Load(Monitor*, Zone**&) [37]
  284. 0.00 0.01 1/2 Zone::Setup(Monitor*, int, char const*, Zone::ZoneType, Polygon const&, unsigned int, Zone::CheckMethod, int, int, int, int, Coord const&, int, int, int, int, int, int, int) [31]
  285. 0.00 0.00 1/1 Zone::ParsePolygonString(char const*, Polygon&) [12175]
  286. -----------------------------------------------
  287. 0.00 0.01 1/1 Monitor::LoadLocalMonitors(char const*, Monitor**&, Monitor::Purpose) [34]
  288. [38] 0.1 0.00 0.01 1 Monitor::Monitor(int, char const*, int, bool, char const*, Camera*, int, char const*, char const*, Coord const&, int, int, int, int, int, int, int, int, int, int, int, int, bool, unsigned int, Monitor::Purpose, int, Zone**) [38]
  289. 0.00 0.01 1/2 Zone::Setup(Monitor*, int, char const*, Zone::ZoneType, Polygon const&, unsigned int, Zone::CheckMethod, int, int, int, int, Coord const&, int, int, int, int, int, int, int) [31]
  290. 0.00 0.00 52/54 Image::Image(int, int, int, int, unsigned char*) [12148]
  291. 0.00 0.00 1/2 Polygon::calcCentre() [12156]
  292. 0.00 0.00 1/2 Polygon::Polygon(int, Coord const*) [12157]
  293. -----------------------------------------------
  294. 0.00 0.00 1/19 main [3]
  295. 0.00 0.00 1/19 zmDebugInitialise [41]
  296. 0.00 0.00 1/19 zm_term_handler(int) [12707]
  297. 0.00 0.00 6/19 LocalCamera::Initialise() [12170]
  298. 0.00 0.00 10/19 Monitor::Capture() [4]
  299. [39] 0.0 0.00 0.00 19 zmDbgOutput [39]
  300. -----------------------------------------------
  301. 0.00 0.00 1/1 main [3]
  302. [40] 0.0 0.00 0.00 1 zmDbgInit [40]
  303. 0.00 0.00 1/1 zmDebugInitialise [41]
  304. -----------------------------------------------
  305. 0.00 0.00 1/1 zmDbgInit [40]
  306. [41] 0.0 0.00 0.00 1 zmDebugInitialise [41]
  307. 0.00 0.00 1/1 zmGetDebugEnv [43]
  308. 0.00 0.00 1/1 zmDebugPrepareLog [42]
  309. 0.00 0.00 1/19 zmDbgOutput [39]
  310. -----------------------------------------------
  311. 0.00 0.00 1/1 zmDebugInitialise [41]
  312. [42] 0.0 0.00 0.00 1 zmDebugPrepareLog [42]
  313. -----------------------------------------------
  314. 0.00 0.00 1/1 zmDebugInitialise [41]
  315. [43] 0.0 0.00 0.00 1 zmGetDebugEnv [43]
  316. -----------------------------------------------
  317. 0.00 0.00 10887/10887 main [3]
  318. [12140 0.0 0.00 0.00 10887 LocalCamera::PreCapture() [12140]
  319. -----------------------------------------------
  320. 0.00 0.00 10887/10887 LocalCamera::Capture(Image&) [13]
  321. [12141 0.0 0.00 0.00 10887 Image::Assign(int, int, int, int, unsigned char const*, unsigned int) [12141]
  322. -----------------------------------------------
  323. 0.00 0.00 10887/10887 Monitor::Capture() [4]
  324. [12142 0.0 0.00 0.00 10887 Monitor::CheckSignal(Image const*) [12142]
  325. -----------------------------------------------
  326. 0.00 0.00 488/488 msort_with_tmp [8508]
  327. [12143 0.0 0.00 0.00 488 Image::Edge::CompareX(void const*, void const*) [12143]
  328. -----------------------------------------------
  329. 0.00 0.00 197/197 Config::Load() [12181]
  330. [12144 0.0 0.00 0.00 197 ConfigItem::ConfigItem(char const*, char const*, char const*) [12144]
  331. -----------------------------------------------
  332. 0.00 0.00 197/197 Config::Assign() [12182]
  333. [12145 0.0 0.00 0.00 197 Config::Item(int) [12145]
  334. -----------------------------------------------
  335. 0.00 0.00 64/197 ConfigItem::StringValue() const [12147]
  336. 0.00 0.00 133/197 Config::Assign() [12182]
  337. [12146 0.0 0.00 0.00 197 ConfigItem::ConvertValue() const [12146]
  338. -----------------------------------------------
  339. 0.00 0.00 64/64 Config::Assign() [12182]
  340. [12147 0.0 0.00 0.00 64 ConfigItem::StringValue() const [12147]
  341. 0.00 0.00 64/197 ConfigItem::ConvertValue() const [12146]
  342. -----------------------------------------------
  343. 0.00 0.00 2/54 Zone::Setup(Monitor*, int, char const*, Zone::ZoneType, Polygon const&, unsigned int, Zone::CheckMethod, int, int, int, int, Coord const&, int, int, int, int, int, int, int) [31]
  344. 0.00 0.00 52/54 Monitor::Monitor(int, char const*, int, bool, char const*, Camera*, int, char const*, char const*, Coord const&, int, int, int, int, int, int, int, int, int, int, int, int, bool, unsigned int, Monitor::Purpose, int, Zone**) [38]
  345. [12148 0.0 0.00 0.00 54 Image::Image(int, int, int, int, unsigned char*) [12148]
  346. 0.00 0.00 4/4 Image::AllocImgBuffer(unsigned int) [12150]
  347. 0.00 0.00 1/1 Image::Initialise() [12176]
  348. -----------------------------------------------
  349. 0.00 0.00 1/54 main [3]
  350. 0.00 0.00 2/54 Zone::~Zone() [12153]
  351. 0.00 0.00 51/54 Monitor::~Monitor() [12184]
  352. [12149 0.0 0.00 0.00 54 Image::~Image() [12149]
  353. -----------------------------------------------
  354. 0.00 0.00 4/4 Image::Image(int, int, int, int, unsigned char*) [12148]
  355. [12150 0.0 0.00 0.00 4 Image::AllocImgBuffer(unsigned int) [12150]
  356. -----------------------------------------------
  357. 0.00 0.00 4/4 msort_with_tmp [8508]
  358. [12151 0.0 0.00 0.00 4 Image::Edge::CompareYX(void const*, void const*) [12151]
  359. -----------------------------------------------
  360. 0.00 0.00 1/3 Zone::ParsePolygonString(char const*, Polygon&) [12175]
  361. 0.00 0.00 2/3 Zone::Setup(Monitor*, int, char const*, Zone::ZoneType, Polygon const&, unsigned int, Zone::CheckMethod, int, int, int, int, Coord const&, int, int, int, int, int, int, int) [31]
  362. [12152 0.0 0.00 0.00 3 Polygon::operator=(Polygon const&) [12152]
  363. -----------------------------------------------
  364. 0.00 0.00 1/2 Monitor::~Monitor() [12184]
  365. 0.00 0.00 1/2 Monitor::LoadLocalMonitors(char const*, Monitor**&, Monitor::Purpose) [34]
  366. [12153 0.0 0.00 0.00 2 Zone::~Zone() [12153]
  367. 0.00 0.00 2/54 Image::~Image() [12149]
  368. -----------------------------------------------
  369. 0.00 0.00 2/2 Zone::Setup(Monitor*, int, char const*, Zone::ZoneType, Polygon const&, unsigned int, Zone::CheckMethod, int, int, int, int, Coord const&, int, int, int, int, int, int, int) [31]
  370. [12154 0.0 0.00 0.00 2 Image::Crop(int, int, int, int) [12154]
  371. 0.00 0.00 1/1 AllocBuffer(unsigned int) [12168]
  372. 0.00 0.00 1/1 Image::AssignDirect(int, int, int, int, unsigned char*, unsigned int, int) [12177]
  373. -----------------------------------------------
  374. 0.00 0.00 2/2 Zone::Setup(Monitor*, int, char const*, Zone::ZoneType, Polygon const&, unsigned int, Zone::CheckMethod, int, int, int, int, Coord const&, int, int, int, int, int, int, int) [31]
  375. [12155 0.0 0.00 0.00 2 Image::Outline(unsigned int, Polygon const&) [12155]
  376. -----------------------------------------------
  377. 0.00 0.00 1/2 Monitor::Monitor(int, char const*, int, bool, char const*, Camera*, int, char const*, char const*, Coord const&, int, int, int, int, int, int, int, int, int, int, int, int, bool, unsigned int, Monitor::Purpose, int, Zone**) [38]
  378. 0.00 0.00 1/2 Zone::ParsePolygonString(char const*, Polygon&) [12175]
  379. [12156 0.0 0.00 0.00 2 Polygon::calcCentre() [12156]
  380. -----------------------------------------------
  381. 0.00 0.00 1/2 Monitor::Monitor(int, char const*, int, bool, char const*, Camera*, int, char const*, char const*, Coord const&, int, int, int, int, int, int, int, int, int, int, int, int, bool, unsigned int, Monitor::Purpose, int, Zone**) [38]
  382. 0.00 0.00 1/2 Zone::ParsePolygonString(char const*, Polygon&) [12175]
  383. [12157 0.0 0.00 0.00 2 Polygon::Polygon(int, Coord const*) [12157]
  384. -----------------------------------------------
  385. 0.00 0.00 1/1 _dl_fixup [14002]
  386. [12158 0.0 0.00 0.00 1 global constructors keyed to _Z12zmLoadConfigv [12158]
  387. -----------------------------------------------
  388. 0.00 0.00 1/1 _dl_fixup [14002]
  389. [12159 0.0 0.00 0.00 1 global constructors keyed to _ZN10RtspThread13smMinDataPortE [12159]
  390. -----------------------------------------------
  391. 0.00 0.00 1/1 zmLoadConfig() [12161]
  392. [12160 0.0 0.00 0.00 1 zmDbConnect() [12160]
  393. -----------------------------------------------
  394. 0.00 0.00 1/1 main [3]
  395. [12161 0.0 0.00 0.00 1 zmLoadConfig() [12161]
  396. 0.00 0.00 1/1 zmDbConnect() [12160]
  397. 0.00 0.00 1/1 Config::Load() [12181]
  398. 0.00 0.00 1/1 Config::Assign() [12182]
  399. -----------------------------------------------
  400. 0.00 0.00 1/1 Image::Initialise() [12176]
  401. [12162 0.0 0.00 0.00 1 sse2_fastblend(unsigned char const*, unsigned char const*, unsigned char*, unsigned long, double) [12162]
  402. -----------------------------------------------
  403. 0.00 0.00 1/1 zmSetDefaultDieHandler() [12165]
  404. [12163 0.0 0.00 0.00 1 zmSetDieHandler(void (*)(int)) [12163]
  405. -----------------------------------------------
  406. 0.00 0.00 1/1 zmSetDefaultTermHandler() [12166]
  407. [12164 0.0 0.00 0.00 1 zmSetTermHandler(void (*)(int)) [12164]
  408. -----------------------------------------------
  409. 0.00 0.00 1/1 main [3]
  410. [12165 0.0 0.00 0.00 1 zmSetDefaultDieHandler() [12165]
  411. 0.00 0.00 1/1 zmSetDieHandler(void (*)(int)) [12163]
  412. -----------------------------------------------
  413. 0.00 0.00 1/1 main [3]
  414. [12166 0.0 0.00 0.00 1 zmSetDefaultTermHandler() [12166]
  415. 0.00 0.00 1/1 zmSetTermHandler(void (*)(int)) [12164]
  416. -----------------------------------------------
  417. 0.00 0.00 1/1 main [3]
  418. [12167 0.0 0.00 0.00 1 ssedetect() [12167]
  419. -----------------------------------------------
  420. 0.00 0.00 1/1 Image::Crop(int, int, int, int) [12154]
  421. [12168 0.0 0.00 0.00 1 AllocBuffer(unsigned int) [12168]
  422. -----------------------------------------------
  423. 0.00 0.00 1/1 LocalCamera::LocalCamera(int, std::string const&, int, int, std::string const&, int, int, int, int, int, int, int, int, bool) [12172]
  424. [12169 0.0 0.00 0.00 1 getFfPixFormatFromV4lPalette(int, int) [12169]
  425. -----------------------------------------------
  426. 0.00 0.00 1/1 LocalCamera::PrimeCapture() [19]
  427. [12170 0.0 0.00 0.00 1 LocalCamera::Initialise() [12170]
  428. 0.00 0.00 6/19 zmDbgOutput [39]
  429. -----------------------------------------------
  430. 0.00 0.00 1/1 LocalCamera::~LocalCamera() [12173]
  431. [12171 0.0 0.00 0.00 1 LocalCamera::Terminate() [12171]
  432. -----------------------------------------------
  433. 0.00 0.00 1/1 Monitor::LoadLocalMonitors(char const*, Monitor**&, Monitor::Purpose) [34]
  434. [12172 0.0 0.00 0.00 1 LocalCamera::LocalCamera(int, std::string const&, int, int, std::string const&, int, int, int, int, int, int, int, int, bool) [12172]
  435. 0.00 0.00 1/1 Camera::Camera(int, Camera::SourceType, int, int, int, int, int, int, int, int, bool) [12179]
  436. 0.00 0.00 1/1 getFfPixFormatFromV4lPalette(int, int) [12169]
  437. -----------------------------------------------
  438. 0.00 0.00 1/1 Monitor::~Monitor() [12184]
  439. [12173 0.0 0.00 0.00 1 LocalCamera::~LocalCamera() [12173]
  440. 0.00 0.00 1/1 Camera::~Camera() [12180]
  441. 0.00 0.00 1/1 LocalCamera::Terminate() [12171]
  442. -----------------------------------------------
  443. 0.00 0.00 1/1 __run_exit_handlers [13927]
  444. [12174 0.0 0.00 0.00 1 StaticConfig::~StaticConfig() [12174]
  445. -----------------------------------------------
  446. 0.00 0.00 1/1 Zone::Load(Monitor*, Zone**&) [37]
  447. [12175 0.0 0.00 0.00 1 Zone::ParsePolygonString(char const*, Polygon&) [12175]
  448. 0.00 0.00 1/2 Polygon::calcCentre() [12156]
  449. 0.00 0.00 1/2 Polygon::Polygon(int, Coord const*) [12157]
  450. 0.00 0.00 1/3 Polygon::operator=(Polygon const&) [12152]
  451. -----------------------------------------------
  452. 0.00 0.00 1/1 Image::Image(int, int, int, int, unsigned char*) [12148]
  453. [12176 0.0 0.00 0.00 1 Image::Initialise() [12176]
  454. 0.00 0.00 1/1 sse2_fastblend(unsigned char const*, unsigned char const*, unsigned char*, unsigned long, double) [12162]
  455. -----------------------------------------------
  456. 0.00 0.00 1/1 Image::Crop(int, int, int, int) [12154]
  457. [12177 0.0 0.00 0.00 1 Image::AssignDirect(int, int, int, int, unsigned char*, unsigned int, int) [12177]
  458. 0.00 0.00 1/1 Image::DumpImgBuffer() [12178]
  459. -----------------------------------------------
  460. 0.00 0.00 1/1 Image::AssignDirect(int, int, int, int, unsigned char*, unsigned int, int) [12177]
  461. [12178 0.0 0.00 0.00 1 Image::DumpImgBuffer() [12178]
  462. -----------------------------------------------
  463. 0.00 0.00 1/1 LocalCamera::LocalCamera(int, std::string const&, int, int, std::string const&, int, int, int, int, int, int, int, int, bool) [12172]
  464. [12179 0.0 0.00 0.00 1 Camera::Camera(int, Camera::SourceType, int, int, int, int, int, int, int, int, bool) [12179]
  465. -----------------------------------------------
  466. 0.00 0.00 1/1 LocalCamera::~LocalCamera() [12173]
  467. [12180 0.0 0.00 0.00 1 Camera::~Camera() [12180]
  468. -----------------------------------------------
  469. 0.00 0.00 1/1 zmLoadConfig() [12161]
  470. [12181 0.0 0.00 0.00 1 Config::Load() [12181]
  471. 0.00 0.00 197/197 ConfigItem::ConfigItem(char const*, char const*, char const*) [12144]
  472. -----------------------------------------------
  473. 0.00 0.00 1/1 zmLoadConfig() [12161]
  474. [12182 0.0 0.00 0.00 1 Config::Assign() [12182]
  475. 0.00 0.00 197/197 Config::Item(int) [12145]
  476. 0.00 0.00 133/197 ConfigItem::ConvertValue() const [12146]
  477. 0.00 0.00 64/64 ConfigItem::StringValue() const [12147]
  478. -----------------------------------------------
  479. 0.00 0.00 1/1 __run_exit_handlers [13927]
  480. [12183 0.0 0.00 0.00 1 Config::~Config() [12183]
  481. -----------------------------------------------
  482. 0.00 0.00 1/1 main [3]
  483. [12184 0.0 0.00 0.00 1 Monitor::~Monitor() [12184]
  484. 0.00 0.00 51/54 Image::~Image() [12149]
  485. 0.00 0.00 1/2 Zone::~Zone() [12153]
  486. 0.00 0.00 1/1 LocalCamera::~LocalCamera() [12173]
  487. -----------------------------------------------
  488. 0.00 0.00 1/1 __run_exit_handlers [13927]
  489. [12185 0.0 0.00 0.00 1 std::set<int, std::less<int>, std::allocator<int> >::~set() [12185]
  490. 0.00 0.00 1/1 std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>, std::allocator<int> >::_M_erase(std::_Rb_tree_node<int>*) [12186]
  491. -----------------------------------------------
  492. 0.00 0.00 1/1 std::set<int, std::less<int>, std::allocator<int> >::~set() [12185]
  493. [12186 0.0 0.00 0.00 1 std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>, std::allocator<int> >::_M_erase(std::_Rb_tree_node<int>*) [12186]
  494. -----------------------------------------------
  495.  
  496. This table describes the call tree of the program, and was sorted by
  497. the total amount of time spent in each function and its children.
  498.  
  499. Each entry in this table consists of several lines. The line with the
  500. index number at the left hand margin lists the current function.
  501. The lines above it list the functions that called this function,
  502. and the lines below it list the functions this one called.
  503. This line lists:
  504. index A unique number given to each element of the table.
  505. Index numbers are sorted numerically.
  506. The index number is printed next to every function name so
  507. it is easier to look up where the function in the table.
  508.  
  509. % time This is the percentage of the `total' time that was spent
  510. in this function and its children. Note that due to
  511. different viewpoints, functions excluded by options, etc,
  512. these numbers will NOT add up to 100%.
  513.  
  514. self This is the total amount of time spent in this function.
  515.  
  516. children This is the total amount of time propagated into this
  517. function by its children.
  518.  
  519. called This is the number of times the function was called.
  520. If the function called itself recursively, the number
  521. only includes non-recursive calls, and is followed by
  522. a `+' and the number of recursive calls.
  523.  
  524. name The name of the current function. The index number is
  525. printed after it. If the function is a member of a
  526. cycle, the cycle number is printed between the
  527. function's name and the index number.
  528.  
  529.  
  530. For the function's parents, the fields have the following meanings:
  531.  
  532. self This is the amount of time that was propagated directly
  533. from the function into this parent.
  534.  
  535. children This is the amount of time that was propagated from
  536. the function's children into this parent.
  537.  
  538. called This is the number of times this parent called the
  539. function `/' the total number of times the function
  540. was called. Recursive calls to the function are not
  541. included in the number after the `/'.
  542.  
  543. name This is the name of the parent. The parent's index
  544. number is printed after it. If the parent is a
  545. member of a cycle, the cycle number is printed between
  546. the name and the index number.
  547.  
  548. If the parents of the function cannot be determined, the word
  549. `<spontaneous>' is printed in the `name' field, and all the other
  550. fields are blank.
  551.  
  552. For the function's children, the fields have the following meanings:
  553.  
  554. self This is the amount of time that was propagated directly
  555. from the child into the function.
  556.  
  557. children This is the amount of time that was propagated from the
  558. child's children to the function.
  559.  
  560. called This is the number of times the function called
  561. this child `/' the total number of times the child
  562. was called. Recursive calls by the child are not
  563. listed in the number after the `/'.
  564.  
  565. name This is the name of the child. The child's index
  566. number is printed after it. If the child is a
  567. member of a cycle, the cycle number is printed
  568. between the name and the index number.
  569.  
  570. If there are any cycles (circles) in the call graph, there is an
  571. entry for the cycle-as-a-whole. This entry shows who called the
  572. cycle (as parents) and the members of the cycle (as children.)
  573. The `+' recursive calls entry shows the number of function calls that
  574. were internal to the cycle, and the calls entry for each member shows,
  575. for that member, how many times it was called from other members of
  576. the cycle.
  577.  
  578. Index by function name
  579.  
  580. [12158] global constructors keyed to _Z12zmLoadConfigv (zm_config.cpp) [12150] Image::AllocImgBuffer(unsigned int) [12186] std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>, std::allocator<int> >::_M_erase(std::_Rb_tree_node<int>*)
  581. [12159] global constructors keyed to _ZN10RtspThread13smMinDataPortE (zm_rtsp.cpp) [12154] Image::Crop(int, int, int, int) [9] __strftime_internal
  582. [12160] zmDbConnect() [12143] Image::Edge::CompareX(void const*, void const*) [16] __tz_convert
  583. [12161] zmLoadConfig() [12151] Image::Edge::CompareYX(void const*, void const*) [17] __tzfile_compute
  584. [12162] sse2_fastblend(unsigned char const*, unsigned char const*, unsigned char*, unsigned long, double) [32] Image::Fill(unsigned int, Polygon const&) [11] __tzstring
  585. [12163] zmSetDieHandler(void (*)(int)) [33] Image::Fill(unsigned int, int, Polygon const&) [35] _i18n_number_rewrite
  586. [12164] zmSetTermHandler(void (*)(int)) [12141] Image::Assign(int, int, int, int, unsigned char const*, unsigned int) [36] _int_free
  587. [18] sse2_aligned_memcpy(void*, void const*, unsigned int) [12155] Image::Outline(unsigned int, Polygon const&) [20] cfree
  588. [12165] zmSetDefaultDieHandler() [5] Image::Annotate(char const*, Coord const&, unsigned int, unsigned int) [10] ftruncate64
  589. [12166] zmSetDefaultTermHandler() [12148] Image::Image(int, int, int, int, unsigned char*) [21] gettimeofday
  590. [12167] ssedetect() [12149] Image::~Image() [3] main
  591. [12168] AllocBuffer(unsigned int) (zm_image.h) [12179] Camera::Camera(int, Camera::SourceType, int, int, int, int, int, int, int, int, bool) [22] malloc
  592. [12169] getFfPixFormatFromV4lPalette(int, int) (zm_local_camera.cpp) [12180] Camera::~Camera() [23] memcpy
  593. [12144] ConfigItem::ConfigItem(char const*, char const*, char const*) [12145] Config::Item(int) [7] memset
  594. [12170] LocalCamera::Initialise() [12181] Config::Load() [14] random
  595. [12140] LocalCamera::PreCapture() [12182] Config::Assign() [1] sse2copy_begin (zm_utils.cpp)
  596. [12] LocalCamera::PostCapture() [12183] Config::~Config() [24] strchrnul
  597. [19] LocalCamera::PrimeCapture() [12142] Monitor::CheckSignal(Image const*) [25] strcspn
  598. [13] LocalCamera::Capture(Image&) [34] Monitor::LoadLocalMonitors(char const*, Monitor**&, Monitor::Purpose) [26] strdup
  599. [12171] LocalCamera::Terminate() [4] Monitor::Capture() [27] strerror_r
  600. [12172] LocalCamera::LocalCamera(int, std::string const&, int, int, std::string const&, int, int, int, int, int, int, int, int, bool) [38] Monitor::Monitor(int, char const*, int, bool, char const*, Camera*, int, char const*, char const*, Coord const&, int, int, int, int, int, int, int, int, int, int, int, int, bool, unsigned int, Monitor::Purpose, int, Zone**) [28] strftime_l
  601. [12173] LocalCamera::~LocalCamera() [12184] Monitor::~Monitor() [29] strlen
  602. [12174] StaticConfig::~StaticConfig() [12156] Polygon::calcCentre() [8] strncpy
  603. [12175] Zone::ParsePolygonString(char const*, Polygon&) [12157] Polygon::Polygon(int, Coord const*) [30] vfprintf
  604. [37] Zone::Load(Monitor*, Zone**&) [12152] Polygon::operator=(Polygon const&) [40] zmDbgInit
  605. [31] Zone::Setup(Monitor*, int, char const*, Zone::ZoneType, Polygon const&, unsigned int, Zone::CheckMethod, int, int, int, int, Coord const&, int, int, int, int, int, int, int) [12147] ConfigItem::StringValue() const [39] zmDbgOutput
  606. [12153] Zone::~Zone() [12146] ConfigItem::ConvertValue() const [41] zmDebugInitialise
  607. [12176] Image::Initialise() [6] Monitor::TimestampImage(Image*, timeval const*) const [42] zmDebugPrepareLog
  608. [12177] Image::AssignDirect(int, int, int, int, unsigned char*, unsigned int, int) [15] Monitor::GetState() const [43] zmGetDebugEnv
  609. [12178] Image::DumpImgBuffer() [12185] std::set<int, std::less<int>, std::allocator<int> >::~set()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement