Added registered object profiler
authorDavid Steele <david.steele@partner.samsung.com>
Thu, 1 May 2014 17:14:31 +0000 (18:14 +0100)
committerPaul Wisbey <p.wisbey@samsung.com>
Fri, 9 May 2014 15:31:20 +0000 (16:31 +0100)
commit647e207d2d0e24896a822755b741e164afcf7710
tree40a4b48befaf30e54cd5e17938f33734b935fda1
parent9e02390fcde39f80ceb00ede1584e3fa3de56623
Added registered object profiler

Added an object profiler that tracks the number of instances of
registered types.  It outputs to dlog every N seconds, where N comes
from the value of the PROFILE_DALI_OBJECTS environment variable. If
the variable is unset, then no profiling will occur.

Note, the profiler relies on Dali::Stage being instantiated in order
to access the ObjectRegistry. This means it doesn't count the objects
that Stage creates (the first camera and the root layer).

Change-Id: I2af264cc4889e508dfab06a7f1dedf63844c0cc2
Signed-off-by: David Steele <david.steele@partner.samsung.com>
adaptors/tizen/internal/common/adaptor-impl.cpp
adaptors/tizen/internal/common/adaptor-impl.h
adaptors/tizen/internal/common/file.list
adaptors/tizen/internal/common/object-profiler.cpp [new file with mode: 0644]
adaptors/tizen/internal/common/object-profiler.h [new file with mode: 0644]