diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2017-09-08 17:35:28 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2017-09-12 14:25:01 +0000 |
commit | 9cdb0ec22ec47dac7a0e440bd93ab7d3d0cb6a9f (patch) | |
tree | 9c2ef510e11f9be163ea48455bcc6a4fc8b8d4d3 /src/plugins/qmlprofiler/qmlprofilermodelmanager.h | |
parent | 8fa07c81f69f534366a2b357c5e3d7b978ecb7e8 (diff) |
QmlProfiler: Don't trust in externally provided timestamps
We might get timestamps that are outside the trace time, negative
timestamps, ranges that go backwards, and other insane things.
In order to deal with this, we clamp all negative timestamps to 0, and
treat the specified trace time as minimum range, that can be overridden
by events.
Change-Id: Iba661f2a4346077871fc62a46759e169b2aad49d
Reviewed-by: Milian Wolff <milian.wolff@kdab.com>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilermodelmanager.h')
-rw-r--r-- | src/plugins/qmlprofiler/qmlprofilermodelmanager.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilermodelmanager.h b/src/plugins/qmlprofiler/qmlprofilermodelmanager.h index 6da39ed93b4..f09537667e5 100644 --- a/src/plugins/qmlprofiler/qmlprofilermodelmanager.h +++ b/src/plugins/qmlprofiler/qmlprofilermodelmanager.h @@ -58,7 +58,7 @@ public: void clear(); - void setTime(qint64 startTime, qint64 endTime); + void update(qint64 time); void decreaseStartTime(qint64 time); void increaseEndTime(qint64 time); void restrictToRange(qint64 startTime, qint64 endTime); |