mirror of
https://github.com/overte-org/overte.git
synced 2025-07-17 18:57:00 +02:00
fix assert
This commit is contained in:
parent
d59c3898dc
commit
2b1b75450d
1 changed files with 3 additions and 4 deletions
|
@ -32,7 +32,7 @@ class JobNoIO {};
|
|||
class JobContext {
|
||||
public:
|
||||
JobContext(const QLoggingCategory& category) : profileCategory(category) {
|
||||
assert(category);
|
||||
assert(&category);
|
||||
}
|
||||
virtual ~JobContext() {}
|
||||
|
||||
|
@ -167,8 +167,7 @@ public:
|
|||
|
||||
virtual void run(const ContextPointer& jobContext) {
|
||||
PerformanceTimer perfTimer(_name.c_str());
|
||||
//PROFILE_RANGE(foo, _name);
|
||||
//Duration profileRangeThis(trace_foo(), name);
|
||||
// NOTE: rather than use the PROFILE_RANGE macro, we create a Duration manually
|
||||
Duration profileRange(jobContext->profileCategory, _name.c_str());
|
||||
auto start = usecTimestampNow();
|
||||
|
||||
|
|
Loading…
Reference in a new issue