Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(101)

Issue 13699043: Compositor debug improvements (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 8 months ago by lukas.toenne1
Modified:
10 years, 8 months ago
Reviewers:
sergey.vfx, bf-codereview
Base URL:
https://svn.blender.org/svnroot/bf-blender/trunk/blender/
Visibility:
Public.

Description

Cleanup and improvements of the compositor debug output. Debug code for graphviz output moved to a dedicated file COM_Debug.h/cpp. The DebugInfo class has only static functions, which are called from a number of places to keep track of what is happening in the compositor. If debugging is disabled these are just inline stubs, so we don't need #ifdefs everywhere and don't get any overhead. The graphviz output is much more useful now. DebugInfo keeps track of node names in a static string map for meaningful names. It uses a number of colors for various special operation classes. ExecutionGroups are indicated in graphviz with clusters. Currently the graphviz .dot files are stored in the BLI_temporary_dir() folder. A separate dot file is generated for each stage of the ExecutionGroup scheduling, this is intended to give some idea of the compositor progress, but could still be improved.

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+524 lines, -162 lines) Patch
source/blender/compositor/CMakeLists.txt View 1 chunk +2 lines, -0 lines 0 comments Download
source/blender/compositor/intern/COM_Debug.h View 1 chunk +79 lines, -0 lines 0 comments Download
source/blender/compositor/intern/COM_Debug.cpp View 1 chunk +413 lines, -0 lines 4 comments Download
source/blender/compositor/intern/COM_ExecutionGroup.h View 1 chunk +3 lines, -0 lines 0 comments Download
source/blender/compositor/intern/COM_ExecutionGroup.cpp View 3 chunks +6 lines, -0 lines 0 comments Download
source/blender/compositor/intern/COM_ExecutionSystem.cpp View 6 chunks +9 lines, -6 lines 0 comments Download
source/blender/compositor/intern/COM_ExecutionSystemHelper.h View 1 chunk +0 lines, -6 lines 0 comments Download
source/blender/compositor/intern/COM_ExecutionSystemHelper.cpp View 4 chunks +5 lines, -144 lines 2 comments Download
source/blender/compositor/intern/COM_NodeBase.h View 1 chunk +1 line, -1 line 0 comments Download
source/blender/compositor/intern/COM_NodeOperation.h View 1 chunk +2 lines, -1 line 0 comments Download
source/blender/compositor/operations/COM_SetColorOperation.h View 1 chunk +1 line, -1 line 0 comments Download
source/blender/compositor/operations/COM_SetValueOperation.h View 1 chunk +1 line, -1 line 0 comments Download
source/blender/compositor/operations/COM_SetVectorOperation.h View 1 chunk +1 line, -1 line 0 comments Download
source/blender/compositor/operations/COM_TrackPositionOperation.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 3
lukas.toenne1
10 years, 8 months ago (2013-09-13 12:56:09 UTC) #1
sergey.vfx
Apart from some really minor notes, LGTM. https://codereview.appspot.com/13699043/diff/1/source/blender/compositor/intern/COM_Debug.cpp File source/blender/compositor/intern/COM_Debug.cpp (right): https://codereview.appspot.com/13699043/diff/1/source/blender/compositor/intern/COM_Debug.cpp#newcode2 source/blender/compositor/intern/COM_Debug.cpp:2: * Copyright ...
10 years, 8 months ago (2013-09-13 13:18:41 UTC) #2
lukas.toenne1
10 years, 8 months ago (2013-09-13 13:29:31 UTC) #3
https://codereview.appspot.com/13699043/diff/1/source/blender/compositor/inte...
File source/blender/compositor/intern/COM_Debug.cpp (right):

https://codereview.appspot.com/13699043/diff/1/source/blender/compositor/inte...
source/blender/compositor/intern/COM_Debug.cpp:2: * Copyright 2011, Blender
Foundation.
On 2013/09/13 13:18:41, sergey.vfx wrote:
> Sure about 2011, not 2013?

Lazy copying, fixed.

https://codereview.appspot.com/13699043/diff/1/source/blender/compositor/inte...
source/blender/compositor/intern/COM_Debug.cpp:402: std::string
DebugInfo::node_name(NodeBase *node) { return ""; }
On 2013/09/13 13:18:41, sergey.vfx wrote:
> Afraid strict compiler flags would be unhappy with unused argument. Would do
> this:
> 
> std::string DebugInfo::node_name(NodeBase * /*node*/) { return ""; }
> 
> Same applies to some few functions below as well.

Done.

https://codereview.appspot.com/13699043/diff/1/source/blender/compositor/inte...
File source/blender/compositor/intern/COM_ExecutionSystemHelper.cpp (right):

https://codereview.appspot.com/13699043/diff/1/source/blender/compositor/inte...
source/blender/compositor/intern/COM_ExecutionSystemHelper.cpp:40: #include
"MEM_guardedalloc.h"
On 2013/09/13 13:18:41, sergey.vfx wrote:
> Not sure why guardedalloc is needed? Is it to support guarded allocating of
> DebugInfo?

Leftover include, removed.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b