diff options
author | John Reck <jreck@google.com> | 2015-06-02 15:58:43 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2015-06-02 15:58:43 -0700 |
commit | 4db3d17debef68f72d23999d69ae68b75f59dda3 (patch) | |
tree | e6458545b7dfedcb156ac33adba4b6162a3d09a9 /libs/hwui/renderthread/CanvasContext.cpp | |
parent | 233241f13d5d7f841d3db80408429d4d0a528c78 (diff) |
FrameInfo header fixes
Bug: 21560187
Log column names as part of output in case of other such
issues
Change-Id: I16157ed968307e761d416ca54bd7af5453fe67bf
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) { |