瀏覽代碼

Profiler: Print addresses as pointers in new Samples view

The previous formatting was missing the "0x" prefix.
Brian Gianforcaro 4 年之前
父節點
當前提交
007b6edce4
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Userland/DevTools/Profiler/IndividualSampleModel.cpp

+ 1 - 1
Userland/DevTools/Profiler/IndividualSampleModel.cpp

@@ -71,7 +71,7 @@ GUI::Variant IndividualSampleModel::data(const GUI::ModelIndex& index, GUI::Mode
 
     if (role == GUI::ModelRole::Display) {
         if (index.column() == Column::Address)
-            return String::formatted("{:08x}", frame.address);
+            return String::formatted("{:p}", frame.address);
 
         if (index.column() == Column::Symbol) {
             return frame.symbol;