diff options
author | John Reck <jreck@google.com> | 2015-06-02 23:16:29 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-06-02 23:16:31 +0000 |
commit | 4e14da5695b5457ae7da53c7f3079c71e37b2e19 (patch) | |
tree | 3e223d0fc4bd4167a486fab86e8be1201ac1c40d /libs/hwui/renderthread/CanvasContext.cpp | |
parent | 97769b0c437a1a09aa925f07bbc8c0ae14d5c31b (diff) | |
parent | 4db3d17debef68f72d23999d69ae68b75f59dda3 (diff) |
Merge "FrameInfo header fixes" into mnc-dev
Diffstat (limited to 'libs/hwui/renderthread/CanvasContext.cpp')
-rw-r--r-- | libs/hwui/renderthread/CanvasContext.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libs/hwui/renderthread/CanvasContext.cpp b/libs/hwui/renderthread/CanvasContext.cpp index 706e14ed7316..b5d7346cbea8 100644 --- a/libs/hwui/renderthread/CanvasContext.cpp +++ b/libs/hwui/renderthread/CanvasContext.cpp @@ -391,7 +391,11 @@ void CanvasContext::setTextureAtlas(RenderThread& thread, void CanvasContext::dumpFrames(int fd) { FILE* file = fdopen(fd, "a"); - fprintf(file, "\n\n---PROFILEDATA---"); + fprintf(file, "\n\n---PROFILEDATA---\n"); + for (size_t i = 0; i < static_cast<size_t>(FrameInfoIndex::kNumIndexes); i++) { + fprintf(file, FrameInfoNames[i].c_str()); + fprintf(file, ","); + } for (size_t i = 0; i < mFrames.size(); i++) { FrameInfo& frame = mFrames[i]; if (frame[FrameInfoIndex::kSyncStart] == 0) { |