Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Issue 3596007: AU: More graph utilities (Closed)

Created:
10 years, 2 months ago by adlr
Modified:
9 years ago
Reviewers:
petkov
CC:
chromium-os-reviews_chromium.org, petkov, adlr
Base URL:
ssh://git@chromiumos-git/update_engine.git
Visibility:
Public.

Description

AU: More graph utilities EdgeProperties: support for listing blocks in a write-before dependency. Blocks historically have only been listed for a read-before dep. operator== for Extent and EdgeProperties. Vertex: ability to mark invalid. An invalid vertex is not part of the graph. graph utils: Functions to add and drop dependencies. Overloaded GetElement() to pull an element at a given index from either a vector<Extent> or RepeatedPtrField<Extent>. DumpGraph function, useful for debugging. BUG=none TEST=unittests Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=1bc16ab

Patch Set 1 #

Total comments: 12

Patch Set 2 : fixes for review and merge origin/master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+241 lines, -3 lines) Patch
M graph_types.h View 1 2 chunks +20 lines, -2 lines 0 comments Download
M graph_utils.h View 1 chunk +32 lines, -0 lines 0 comments Download
M graph_utils.cc View 1 2 chunks +128 lines, -1 line 0 comments Download
M graph_utils_unittest.cc View 1 2 chunks +61 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
adlr
10 years, 2 months ago (2010-10-06 00:52:58 UTC) #1
petkov
LGTM http://codereview.chromium.org/3596007/diff/1/2 File graph_types.h (right): http://codereview.chromium.org/3596007/diff/1/2#newcode30 graph_types.h:30: // by the node pointed to before the ...
10 years, 2 months ago (2010-10-06 05:08:33 UTC) #2
adlr
10 years, 2 months ago (2010-10-06 22:07:35 UTC) #3
fixed and pushed. thanks!

http://codereview.chromium.org/3596007/diff/1/2
File graph_types.h (right):

http://codereview.chromium.org/3596007/diff/1/2#newcode30
graph_types.h:30: // by the node pointed to before the pointint node runs
(presumably
On 2010/10/06 05:08:33, petkov wrote:
> typo: pointing

Done.

http://codereview.chromium.org/3596007/diff/1/2#newcode70
graph_types.h:70: const uint64_t kTempBlockStart =
static_cast<uint64_t>(0x10000000) << 32;
On 2010/10/06 05:08:33, petkov wrote:
> 1ULL << 60 or 0x10000000ULL << 32 should work, I think.
> 

I was avoiding ULL b/c uint64_t isn't always unsigned long long, but there were
no compiler warning by this change, so fixed.

http://codereview.chromium.org/3596007/diff/1/3
File graph_utils.cc (right):

http://codereview.chromium.org/3596007/diff/1/3#newcode6
graph_utils.cc:6: #include <string>
On 2010/10/06 05:08:33, petkov wrote:
> add an empty line before
> 

Done.

http://codereview.chromium.org/3596007/diff/1/3#newcode9
graph_utils.cc:9: #include <base/basictypes.h>
On 2010/10/06 05:08:33, petkov wrote:
> add an empty line before
> 

Done.

http://codereview.chromium.org/3596007/diff/1/3#newcode117
graph_utils.cc:117: // void SetElement(std::vector<Extent>* collection,
On 2010/10/06 05:08:33, petkov wrote:
> Any reason to keep these?
> 

oops. removed

http://codereview.chromium.org/3596007/diff/1/5
File graph_utils_unittest.cc (right):

http://codereview.chromium.org/3596007/diff/1/5#newcode7
graph_utils_unittest.cc:7: #include <gtest/gtest.h>
On 2010/10/06 05:08:33, petkov wrote:
> add an empty line before and after
> 

Done.

Powered by Google App Engine
This is Rietveld 408576698