[gnome-builder] buildui: add tracing when build is started
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] buildui: add tracing when build is started
- Date: Mon, 2 Dec 2019 19:00:08 +0000 (UTC)
commit 22ca7ce9bd8c942efabe8cdd1c27ddd592d8cfb2
Author: Christian Hergert <chergert redhat com>
Date: Mon Dec 2 10:58:15 2019 -0800
buildui: add tracing when build is started
This is mildly useful when tracking down why the panel has
changed or was presented.
src/plugins/buildui/gbp-buildui-workspace-addin.c | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
---
diff --git a/src/plugins/buildui/gbp-buildui-workspace-addin.c
b/src/plugins/buildui/gbp-buildui-workspace-addin.c
index 1530ebe43..9263c6a91 100644
--- a/src/plugins/buildui/gbp-buildui-workspace-addin.c
+++ b/src/plugins/buildui/gbp-buildui-workspace-addin.c
@@ -213,13 +213,23 @@ gbp_buildui_workspace_addin_build_started (GbpBuilduiWorkspaceAddin *self,
IdePipeline *pipeline,
IdeBuildManager *build_manager)
{
+ IdePipelinePhase phase;
+
+ IDE_ENTRY;
+
g_assert (IDE_IS_MAIN_THREAD ());
g_assert (GBP_IS_BUILDUI_WORKSPACE_ADDIN (self));
g_assert (IDE_IS_PIPELINE (pipeline));
g_assert (IDE_IS_BUILD_MANAGER (build_manager));
- if (ide_pipeline_get_requested_phase (pipeline) > IDE_PIPELINE_PHASE_CONFIGURE)
+ phase = ide_pipeline_get_requested_phase (pipeline);
+
+ IDE_TRACE_MSG ("Pipeline phase 0x%x requested", phase);
+
+ if (phase > IDE_PIPELINE_PHASE_CONFIGURE)
dzl_dock_item_present (DZL_DOCK_ITEM (self->log_pane));
+
+ IDE_EXIT;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]