Warning, /sdk/kobjecttracking/README.md is written in an unsupported language. File is not indexed.

0001 # KObjectTracking
0002 
0003 Tools to debug the state of your QObject and see how they interact with the world
0004 
0005 ## Introduction
0006 
0007 This module provides some tools to see how the properties change at run-time and tries to suggest ideas on how to improve your application.
0008 
0009 ## Features
0010 
0011 At the moment there's the following features
0012 
0013 ### Watching
0014 
0015 It will keep track of all the properties in the object and report the ones that don't change despite a notify.
0016 
0017 ### Time Tracking
0018 
0019 It will generate a file in `/tmp/debug-<appname>-<user>.json` that will contain a list of the tracked objects with their initial state and all of the property changes over time including their timestamp.
0020 
0021 ## Usage
0022 
0023 ### QML
0024 
0025 ```
0026 import org.kde.ObjectTracking 1.0
0027 
0028 Item {
0029     ObjectDebug.watch: true
0030     ObjectDebug.timeTracker: true
0031     ObjectDebug.inherit: true
0032 }
0033 ```
0034 
0035 ### C++
0036 
0037 ```
0038 #include <KObjectTracking/ObjectTracking>
0039 
0040 {
0041     ObjectTracking::self()->track(myObject, ObjectTracking::Watch | ObjectTracking::Track, ObjectTracking::Inherit);
0042 }
0043 ```
0044 
0045 
0046 ### Tests