Use short ptr for FrameImage storage.

This commit is contained in:
Bartosz Taudul 2019-11-02 16:34:02 +01:00
parent 72efbe28ed
commit b0e52f20f8

View File

@ -203,7 +203,7 @@ private:
Vector<Vector<short_ptr<ZoneEvent>>> zoneVectorCache; Vector<Vector<short_ptr<ZoneEvent>>> zoneVectorCache;
Vector<FrameImage*> frameImage; Vector<short_ptr<FrameImage>> frameImage;
Vector<StringRef> appInfo; Vector<StringRef> appInfo;
CrashEvent crashEvent; CrashEvent crashEvent;
@ -332,7 +332,7 @@ public:
const Vector<ThreadData*>& GetThreadData() const { return m_data.threads; } const Vector<ThreadData*>& GetThreadData() const { return m_data.threads; }
const ThreadData* GetThreadData( uint64_t tid ) const; const ThreadData* GetThreadData( uint64_t tid ) const;
const MemData& GetMemData() const { return m_data.memory; } const MemData& GetMemData() const { return m_data.memory; }
const Vector<FrameImage*>& GetFrameImages() const { return m_data.frameImage; } const Vector<short_ptr<FrameImage>>& GetFrameImages() const { return m_data.frameImage; }
const Vector<StringRef>& GetAppInfo() const { return m_data.appInfo; } const Vector<StringRef>& GetAppInfo() const { return m_data.appInfo; }
const VarArray<CallstackFrameId>& GetCallstack( uint32_t idx ) const { return *m_data.callstackPayload[idx]; } const VarArray<CallstackFrameId>& GetCallstack( uint32_t idx ) const { return *m_data.callstackPayload[idx]; }