Skip to content

Commit

Permalink
Added profiling
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunkTreasure1 committed Nov 30, 2023
1 parent 4b59618 commit bd766d3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Volt/Volt/src/Volt/Utility/FileIO/YAMLStreamReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

#include "Volt/Log/Log.h"

#include "Volt/Core/Profiling.h"

namespace Volt
{
YAMLStreamReader::YAMLStreamReader()
Expand All @@ -12,6 +14,8 @@ namespace Volt

const bool YAMLStreamReader::OpenFile(const std::filesystem::path& filePath)
{
VT_PROFILE_FUNCTION();

if (!std::filesystem::exists(filePath))
{
return false;
Expand All @@ -29,6 +33,7 @@ namespace Volt

try
{
VT_PROFILE_SCOPE("Parse YAML");
m_rootNode = YAML::Load(strStream.str());
m_currentNode = m_rootNode;
}
Expand Down

0 comments on commit bd766d3

Please sign in to comment.