[Lldb-commits] [lldb] [lldb] Adds additional fields to ProcessInfo (PR #91544)

Greg Clayton via lldb-commits lldb-commits at lists.llvm.org
Wed May 8 19:09:34 PDT 2024


================
@@ -254,6 +277,8 @@ class ProcessInstanceInfo : public ProcessInfo {
   struct timespec m_system_time {};
   struct timespec m_cumulative_user_time {};
   struct timespec m_cumulative_system_time {};
+  int8_t m_nice_value = INT8_MAX;
----------------
clayborg wrote:

maybe make this a `std::optional<int8_t>`? It would be nice to know when/if things in `ProcessInstanceInfo` are set to value values or just defaulted. it might be nice to make many things in this class be std::optional as well so we know when we have a valid value and when we don't

https://github.com/llvm/llvm-project/pull/91544


More information about the lldb-commits mailing list