diff options
author | Yabin Cui <yabinc@google.com> | 2015-06-17 22:21:12 -0700 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2015-06-18 11:32:17 -0700 |
commit | 6afc7e17d39ab294bdf625076777443a6b4c8e18 (patch) | |
tree | baeb99e59dac2cb3e3f25083d43debd01358acec /simpleperf/record_file.h | |
parent | b9408add5aea2ce30602392602948ba9c364fe6e (diff) | |
download | extras-6afc7e17d39ab294bdf625076777443a6b4c8e18.tar.gz |
Simpleperf: add branch stack feature in perf.data.
Also add the function to remove old perf.data.
Bug: 19483574
Change-Id: I605bb637674d4674f95503a160de8c530fe87812
Diffstat (limited to 'simpleperf/record_file.h')
-rw-r--r-- | simpleperf/record_file.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/simpleperf/record_file.h b/simpleperf/record_file.h index 694486c0..e217b3c2 100644 --- a/simpleperf/record_file.h +++ b/simpleperf/record_file.h @@ -52,6 +52,7 @@ class RecordFileWriter { bool WriteFeatureHeader(size_t feature_count); bool WriteBuildIdFeature(const std::vector<BuildIdRecord>& build_id_records); + bool WriteBranchStackFeature(); // Normally, Close() should be called after writing. But if something // wrong happens and we need to finish in advance, the destructor @@ -67,6 +68,8 @@ class RecordFileWriter { std::vector<std::string>* hit_user_files); bool WriteFileHeader(); bool Write(const void* buf, size_t len); + bool SeekFileEnd(uint64_t* file_end); + bool ModifyFeatureSectionDescriptor(size_t feature_index, uint64_t offset, uint64_t size); const std::string filename_; FILE* record_fp_; |