Various miscelaneous changes (#6496)
This commit is contained in:
@@ -4,9 +4,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#include <unordered_map>
|
||||
#include <QDockWidget>
|
||||
#include "core/hle/kernel/ipc_debugger/recorder.h"
|
||||
|
||||
|
@@ -214,6 +214,7 @@ void MicroProfileDrawLine2D(u32 vertices_length, float* vertices, u32 hex_color)
|
||||
// the allocation across calls.
|
||||
static std::vector<QPointF> point_buf;
|
||||
|
||||
point_buf.reserve(vertices_length);
|
||||
for (u32 i = 0; i < vertices_length; ++i) {
|
||||
point_buf.emplace_back(vertices[i * 2 + 0], vertices[i * 2 + 1]);
|
||||
}
|
||||
|
@@ -77,8 +77,9 @@ std::size_t WaitTreeItem::Row() const {
|
||||
}
|
||||
|
||||
std::vector<std::unique_ptr<WaitTreeThread>> WaitTreeItem::MakeThreadItemList() {
|
||||
u32 num_cores = Core::GetNumCores();
|
||||
const u32 num_cores = Core::GetNumCores();
|
||||
std::vector<std::unique_ptr<WaitTreeThread>> item_list;
|
||||
item_list.reserve(num_cores);
|
||||
for (u32 i = 0; i < num_cores; ++i) {
|
||||
const auto& threads =
|
||||
Core::System::GetInstance().Kernel().GetThreadManager(i).GetThreadList();
|
||||
|
Reference in New Issue
Block a user