![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "gui/actions/supervisor_window.h"#include "caches/image_cache.h"#include "caches/mipmap_cache.h"#include "common/opencl.h"#include "caches/pixelpipe_cache.h"#include "develop/supervisor.h"#include "gui/application.h"#include <gtk/gtk.h>#include <json-glib/json-glib.h>
Include dependency graph for supervisor_window.c:Go to the source code of this file.
Data Structures | |
| struct | _group_t |
Macros | |
| #define | TIMELINE_MAX_ROWS 4000 |
| #define | POLL_INTERVAL_MS 300 |
| #define | MEMORY_MAX_ROWS 500 |
| #define | MEMORY_REFRESH_TICKS 4 |
Typedefs | |
| typedef struct _group_t | _group_t |
Variables | ||
| struct { | ||
| GtkWidget * window | ||
| GtkWidget * notebook | ||
| GtkWidget * timeline_list | ||
| GtkWidget * timeline_scroll | ||
| GtkWidget * grouped_list | ||
| GtkWidget * mem_box | ||
| GtkWidget * search_entry | ||
| GtkWidget * search_list | ||
| GtkWidget * count_label | ||
| GtkWidget * groupby | ||
| GHashTable * decl_map | ||
| GHashTable * group_map | ||
| uint64_t last_seq | ||
| uint64_t grouped_last_seq | ||
| gchar * scroll_target | ||
| guint timer_id | ||
| guint tick | ||
| int page_timeline | ||
| int page_grouped | ||
| int page_memory | ||
| int page_search | ||
| } | _g = { 0 } | |
| #define MEMORY_MAX_ROWS 500 |
Definition at line 34 of file supervisor_window.c.
| #define MEMORY_REFRESH_TICKS 4 |
Definition at line 35 of file supervisor_window.c.
| #define POLL_INTERVAL_MS 300 |
Definition at line 33 of file supervisor_window.c.
| #define TIMELINE_MAX_ROWS 4000 |
Definition at line 32 of file supervisor_window.c.
Definition at line 497 of file supervisor_window.c.
References _wire_hash_label(), FALSE, L, row, and TRUE.
Referenced by _rebuild_memory().
|
static |
Definition at line 474 of file supervisor_window.c.
References FALSE, L, max, t, and TRUE.
Referenced by _rebuild_memory().
Definition at line 393 of file supervisor_window.c.
References L.
Referenced by _full_reload(), _rebuild_grouped_now(), _rebuild_memory(), and _run_search().
|
static |
|
static |
|
static |
|
static |
Definition at line 232 of file supervisor_window.c.
References _on_toggle(), _wire_hash_label(), FALSE, L, and TRUE.
Referenced by _event_widget(), and _grouped_append().
Definition at line 82 of file supervisor_window.c.
Referenced by _header_markup().
Definition at line 295 of file supervisor_window.c.
References _hashhex(), _pretty_json(), _wire_hash_label(), FALSE, i, L, lw, and TRUE.
Referenced by _on_toggle().
|
static |
Definition at line 642 of file supervisor_window.c.
References _hex_contains(), FALSE, dt_sv_logged_event_t::hash, i, dt_sv_logged_event_t::json, L, dt_sv_logged_event_t::links, m, and TRUE.
Referenced by _run_search().
|
static |
Definition at line 340 of file supervisor_window.c.
References _collapsible(), _hashhex(), _header_markup(), _links_free(), copy(), FALSE, dt_sv_logged_event_t::hash, dt_sv_logged_event_t::json, L, and dt_sv_logged_event_t::links.
Referenced by _grouped_append(), _run_search(), and _timeline_append().
Definition at line 737 of file supervisor_window.c.
References _clear_list(), _g, _poll(), _rebuild_grouped_now(), _rebuild_memory(), _run_search(), and L.
Referenced by _on_clear(), _on_refresh(), and dt_gui_supervisor_window_show().
Definition at line 69 of file supervisor_window.c.
Referenced by dt_gui_supervisor_window_show().
|
static |
Definition at line 407 of file supervisor_window.c.
References dt_sv_logged_event_t::domain, L, dt_sv_logged_event_t::op, and dt_sv_logged_event_t::thread.
Referenced by _grouped_append().
Definition at line 414 of file supervisor_window.c.
Referenced by _grouped_append().
|
static |
Definition at line 425 of file supervisor_window.c.
References _collapsible(), _event_widget(), _g, _group_key(), _group_set_header(), FALSE, g, k, L, and row.
Referenced by _grouped_catch_up().
Definition at line 449 of file supervisor_window.c.
References _g, _grouped_append(), dt_supervisor_events_free(), dt_supervisor_events_snapshot_since(), i, and L.
Referenced by _on_page_changed(), _poll(), and _rebuild_grouped_now().
Definition at line 77 of file supervisor_window.c.
References L.
Referenced by _event_body_from(), _event_widget(), _header_markup(), _hex_contains(), _rebuild_memory(), and _timeline_append().
|
static |
Definition at line 268 of file supervisor_window.c.
References _domain_color(), _hashhex(), dt_sv_logged_event_t::cache_name, dt_sv_logged_event_t::domain, dt_sv_logged_event_t::hash, L, dt_sv_logged_event_t::mnemonic, dt_sv_logged_event_t::op, out, dt_sv_logged_event_t::thread, and dt_sv_logged_event_t::ts.
Referenced by _event_widget().
Definition at line 628 of file supervisor_window.c.
References _hashhex(), L, and m.
Referenced by _event_matches().
Definition at line 334 of file supervisor_window.c.
Referenced by _event_widget().
Definition at line 750 of file supervisor_window.c.
References _full_reload(), and dt_supervisor_events_clear().
Referenced by dt_gui_supervisor_window_show().
Definition at line 776 of file supervisor_window.c.
References _g, dt_supervisor_set_recording(), FALSE, and L.
Referenced by dt_gui_supervisor_window_show().
|
static |
Definition at line 756 of file supervisor_window.c.
References _rebuild_grouped_now().
Referenced by dt_gui_supervisor_window_show().
|
static |
Definition at line 175 of file supervisor_window.c.
References _on_search_this_hash(), FALSE, L, and TRUE.
Referenced by _wire_hash_label().
Definition at line 144 of file supervisor_window.c.
References _g, _scroll_target_idle(), L, row, and TRUE.
Referenced by _wire_hash_label().
|
static |
Definition at line 766 of file supervisor_window.c.
References _g, _grouped_catch_up(), _rebuild_memory(), _run_search(), and L.
Referenced by dt_gui_supervisor_window_show().
Definition at line 761 of file supervisor_window.c.
References dt_supervisor_set_recording(), L, and t.
Referenced by dt_gui_supervisor_window_show().
Definition at line 748 of file supervisor_window.c.
References _full_reload().
Referenced by dt_gui_supervisor_window_show().
|
static |
Definition at line 688 of file supervisor_window.c.
References _g, _run_search(), and L.
Referenced by dt_gui_supervisor_window_show().
|
static |
Definition at line 164 of file supervisor_window.c.
Referenced by _on_label_button().
Definition at line 205 of file supervisor_window.c.
References _event_body_from(), L, and t.
Referenced by _collapsible().
|
static |
Definition at line 704 of file supervisor_window.c.
References _g, _grouped_catch_up(), _rebuild_memory(), _scroll_bottom_idle(), _timeline_append(), _timeline_trim(), _update_count(), dt_supervisor_events_free(), dt_supervisor_events_snapshot_since(), i, L, and MEMORY_REFRESH_TICKS.
Referenced by _full_reload(), and dt_gui_supervisor_window_show().
Definition at line 96 of file supervisor_window.c.
References g, L, out, p, and TRUE.
Referenced by _event_body_from().
Definition at line 464 of file supervisor_window.c.
References _clear_list(), _g, _grouped_catch_up(), and L.
Referenced by _full_reload(), and _on_groupby_changed().
Definition at line 540 of file supervisor_window.c.
References _add_mem_item(), _add_usage_bar(), _clear_list(), _cmp_image_imgid(), _cmp_mip_size(), _cmp_pixel_size(), _g, _hashhex(), dt_pixel_cache_stats_entry_t::cl_bytes, dt_pixel_cache_stats_entry_t::cl_count, dt_dev_pixelpipe_cache_get_entries_stats(), dt_dev_pixelpipe_cache_get_usage(), dt_dev_pixelpipe_cache_get_vram_total(), dt_image_cache_get_entries_stats(), dt_image_cache_get_usage(), dt_mipmap_cache_get_entries_stats(), dt_mipmap_cache_get_usage(), dt_opencl_is_enabled(), dt_supervisor_image_key(), dt_supervisor_mipmap_key(), dt_image_cache_stats_entry_t::filename, dt_pixel_cache_stats_entry_t::hash, dt_pixel_cache_stats_entry_t::hits, i, dt_image_cache_stats_entry_t::imgid, dt_mipmap_cache_stats_entry_t::imgid, L, m, max, MEMORY_MAX_ROWS, dt_mipmap_cache_stats_entry_t::mip, dt_pixel_cache_stats_entry_t::name, name, dt_pixel_cache_stats_entry_t::refcount, dt_mipmap_cache_stats_entry_t::size, dt_pixel_cache_stats_entry_t::size, and TRUE.
Referenced by _full_reload(), _on_page_changed(), and _poll().
Definition at line 662 of file supervisor_window.c.
References _clear_list(), _event_matches(), _event_widget(), _g, dt_supervisor_events_free(), dt_supervisor_events_snapshot(), i, and L.
Referenced by _full_reload(), _on_page_changed(), and _on_search_changed().
|
static |
Definition at line 115 of file supervisor_window.c.
References _g, double(), L, MAX, and row.
Referenced by _scroll_target_idle().
|
static |
Definition at line 132 of file supervisor_window.c.
References _g, _scroll_row_into_view(), L, and row.
Referenced by _on_link().
|
static |
Definition at line 364 of file supervisor_window.c.
References _event_widget(), _g, _hashhex(), dt_sv_logged_event_t::hash, L, dt_sv_logged_event_t::op, and row.
Referenced by _poll().
Definition at line 379 of file supervisor_window.c.
References _g, L, row, and TIMELINE_MAX_ROWS.
Referenced by _poll().
Definition at line 400 of file supervisor_window.c.
References _g, dt_supervisor_events_count(), and L.
Referenced by _poll().
Definition at line 195 of file supervisor_window.c.
References _on_label_button(), _on_link(), FALSE, and L.
Referenced by _add_mem_item(), _collapsible(), and _event_body_from().
Definition at line 786 of file supervisor_window.c.
References _full_reload(), _g, _group_free(), _on_clear(), _on_destroy(), _on_groupby_changed(), _on_page_changed(), _on_record_toggled(), _on_refresh(), _on_search_changed(), _poll(), dt_gui_main_window(), dt_supervisor_set_recording(), FALSE, L, pages, POLL_INTERVAL_MS, and TRUE.
Referenced by supervisor_callback().
| struct { ... } _g |
Referenced by _full_reload(), _grouped_append(), _grouped_catch_up(), _on_destroy(), _on_link(), _on_page_changed(), _on_search_changed(), _on_search_this_hash(), _poll(), _rebuild_grouped_now(), _rebuild_memory(), _run_search(), _scroll_bottom_idle(), _scroll_row_into_view(), _scroll_target_idle(), _timeline_append(), _timeline_trim(), _update_count(), and dt_gui_supervisor_window_show().
| GtkWidget* count_label |
Definition at line 47 of file supervisor_window.c.
| GHashTable* decl_map |
Definition at line 49 of file supervisor_window.c.
| GHashTable* group_map |
Definition at line 50 of file supervisor_window.c.
| GtkWidget* groupby |
Definition at line 48 of file supervisor_window.c.
| uint64_t grouped_last_seq |
Definition at line 52 of file supervisor_window.c.
| GtkWidget* grouped_list |
Definition at line 43 of file supervisor_window.c.
| uint64_t last_seq |
Definition at line 51 of file supervisor_window.c.
| GtkWidget* mem_box |
Definition at line 44 of file supervisor_window.c.
| GtkWidget* notebook |
Definition at line 40 of file supervisor_window.c.
Referenced by _blendop_blending_notebook_switch(), _blendop_create_notebook_page(), _blendop_create_toggle_page(), _channel_tabs_switch_callback(), _notebook_append_full_width_page(), _notebook_motion_notify_callback(), _notebook_size_callback(), create_notebook(), dt_ui_notebook_page(), dt_ui_notebook_set_picker_owner(), gui_init(), and gui_init().
| int page_grouped |
Definition at line 56 of file supervisor_window.c.
| int page_memory |
Definition at line 56 of file supervisor_window.c.
| int page_search |
Definition at line 56 of file supervisor_window.c.
| int page_timeline |
Definition at line 56 of file supervisor_window.c.
| gchar* scroll_target |
Definition at line 53 of file supervisor_window.c.
| GtkWidget* search_entry |
Definition at line 45 of file supervisor_window.c.
Referenced by _find_and_rank_matches(), and dt_accels_search().
| GtkWidget* search_list |
Definition at line 46 of file supervisor_window.c.
| guint tick |
Definition at line 55 of file supervisor_window.c.
| GtkWidget* timeline_list |
Definition at line 41 of file supervisor_window.c.
| GtkWidget* timeline_scroll |
Definition at line 42 of file supervisor_window.c.
| guint timer_id |
Definition at line 54 of file supervisor_window.c.
| GtkWidget* window |
Definition at line 39 of file supervisor_window.c.