aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-10-06 11:48:33 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-10-06 11:48:33 +0300
commitae0a6d674fe1f8fde82f5be817627ef79cd7fcfe (patch)
tree5ad31abaf983d5f094eaca6210c551a8e9193b7b
parent0301f00e27b673febf06ce6f3f27c6b708bb912a (diff)
Add tracing of execution plan refinement/simulation
-rw-r--r--bpkg/pkg-build.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/bpkg/pkg-build.cxx b/bpkg/pkg-build.cxx
index f8bd221..66e158c 100644
--- a/bpkg/pkg-build.cxx
+++ b/bpkg/pkg-build.cxx
@@ -3870,6 +3870,9 @@ namespace bpkg
//
for (bool refine (true), scratch (true); refine; )
{
+ l4 ([&]{trace << "refining execution plan"
+ << (scratch ? " from scratch" : "");});
+
transaction t (db);
build_packages::postponed_packages postponed;
@@ -4523,6 +4526,10 @@ namespace bpkg
build_package_list& build_pkgs,
bool simulate)
{
+ tracer trace ("execute_plan");
+
+ l4 ([&]{trace << "simulate: " << (simulate ? "yes" : "no");});
+
uint16_t verbose (!simulate ? verb : 0);
// disfigure