From d03da05b26da6d7e20ab71a3211bcc08e04886d6 Mon Sep 17 00:00:00 2001 From: silverweed Date: Tue, 23 Jul 2024 15:05:32 +0200 Subject: [PATCH] add tkey list size and tfile header size --- src/render.cpp | 12 ++++++++---- src/rntuple.h | 2 -- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/render.cpp b/src/render.cpp index faccf37..ef07b7e 100644 --- a/src/render.cpp +++ b/src/render.cpp @@ -278,6 +278,8 @@ void update_and_render(Arena *arena, App_State &app, f32 delta_time_ms) ImGui::ColorEdit3("_TFile Header", app.viewer.col_tfile_header, flags); ImGui::SameLine(); if (ImGui::Button("TFile Header")) viewer_jump_to(app.viewer, 0); + ImGui::SameLine(); + ImGui::Text("%s", to_pretty_size(scratch.arena, app.tfile_data.root_file_header_size).c()); ImGui::ColorEdit3("_TFile Object", app.viewer.col_tfile_obj, flags); ImGui::SameLine(); @@ -297,6 +299,12 @@ void update_and_render(Arena *arena, App_State &app, f32 delta_time_ms) ImGui::SameLine(); ImGui::Text("%s", to_pretty_size(scratch.arena, app.tfile_data.rng_root_file_free.len).c()); + ImGui::ColorEdit3("_TKey List", app.viewer.col_tkeys_list, flags); + ImGui::SameLine(); + if (ImGui::Button("TKey List")) viewer_jump_to(app.viewer, app.rndata.rng_tkeys_list.start); + ImGui::SameLine(); + ImGui::Text("%s", to_pretty_size(scratch.arena, app.rndata.rng_tkeys_list.len).c()); + ImGui::ColorEdit3("_RNTuple Anchor", app.viewer.col_anchor, flags); ImGui::SameLine(); if (ImGui::Button("RNTuple Anchor")) viewer_jump_to(app.viewer, app.rndata.rng_anchor.start); @@ -356,10 +364,6 @@ void update_and_render(Arena *arena, App_State &app, f32 delta_time_ms) ImGui::SameLine(); ImGui::Text("%s", to_pretty_size(scratch.arena, app.rndata.tot_page_list_size).c()); - ImGui::ColorEdit3("_TKey List", app.viewer.col_tkeys_list, flags); - ImGui::SameLine(); - if (ImGui::Button("TKey List")) viewer_jump_to(app.viewer, app.rndata.rng_tkeys_list.start); - // ------------------------------- ImGui::Separator(); String8 root_version_str = push_str8f(scratch.arena, "%u.%u.%u", diff --git a/src/rntuple.h b/src/rntuple.h index 0f155fb..adcaf8a 100644 --- a/src/rntuple.h +++ b/src/rntuple.h @@ -1,5 +1,3 @@ -// using RNTuple = ROOT::Experimental::RNTuple; - struct Byte_Range { u64 start, len; u64 end() const { return start + len; }