diff options
author | Zack Rusin <zack@kde.org> | 2011-09-01 11:33:51 -0400 |
---|---|---|
committer | Zack Rusin <zack@kde.org> | 2011-09-01 11:33:51 -0400 |
commit | 7c7677500d560a22d18666e3e0786efa43136478 (patch) | |
tree | 51587235701a4073dd9a97e4d3700ebc46675124 /trace_parser.hpp | |
parent | e0df952b67f3ae38aeb0fd7e32942f8fa53ac49f (diff) |
Fix memory usage in the on-demand-loading.
just store offsets to the first call in a frame in the loader
Diffstat (limited to 'trace_parser.hpp')
-rw-r--r-- | trace_parser.hpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/trace_parser.hpp b/trace_parser.hpp index a9f11f7..f340da0 100644 --- a/trace_parser.hpp +++ b/trace_parser.hpp @@ -84,7 +84,7 @@ public: bool supportsOffsets() const { - return file-supportsOffsets(); + return file->supportsOffsets(); } File::Offset currentOffset() @@ -101,8 +101,16 @@ public: bool structWithSignature(const File::Offset &offset) const; bool enumWithSignature(const File::Offset &offset) const; bool bitmaskWithSignature(const File::Offset &offset) const; - bool hasCallBeenParsed(const File::Offset &offset) const; - unsigned callNumForOffset(const File::Offset &offset) const; + + unsigned currentCallNumber() const + { + return next_call_no; + } + + void setCurrentCallNumber(unsigned num) + { + next_call_no = num; + } protected: void parse_enter(void); |