\doxysection{Profiler.\+h} \hypertarget{_profiler_8h_source}{}\label{_profiler_8h_source}\index{Include/Editor/Profiler.h@{Include/Editor/Profiler.h}} \begin{DoxyCode}{0} \DoxyCodeLine{00001\ \textcolor{comment}{//\ =====================================================================================================================}} \DoxyCodeLine{00002\ \textcolor{comment}{//\ Copyright\ 2024\ Medusa\ Slockbower}} \DoxyCodeLine{00003\ \textcolor{comment}{//\ Licensed\ under\ the\ Apache\ License,\ Version\ 2.0\ (the\ "{}License"{});}} \DoxyCodeLine{00004\ \textcolor{comment}{//\ you\ may\ not\ use\ this\ file\ except\ in\ compliance\ with\ the\ License.}} \DoxyCodeLine{00005\ \textcolor{comment}{//\ You\ may\ obtain\ a\ copy\ of\ the\ License\ at}} \DoxyCodeLine{00006\ \textcolor{comment}{//}} \DoxyCodeLine{00007\ \textcolor{comment}{//\ \ http://www.apache.org/licenses/LICENSE-\/2.0}} \DoxyCodeLine{00008\ \textcolor{comment}{//}} \DoxyCodeLine{00009\ \textcolor{comment}{//\ Unless\ required\ by\ applicable\ law\ or\ agreed\ to\ in\ writing,\ software}} \DoxyCodeLine{00010\ \textcolor{comment}{//\ distributed\ under\ the\ License\ is\ distributed\ on\ an\ "{}AS\ IS"{}\ BASIS,}} \DoxyCodeLine{00011\ \textcolor{comment}{//\ WITHOUT\ WARRANTIES\ OR\ CONDITIONS\ OF\ ANY\ KIND,\ either\ express\ or\ implied.}} \DoxyCodeLine{00012\ \textcolor{comment}{//\ See\ the\ License\ for\ the\ specific\ language\ governing\ permissions\ and}} \DoxyCodeLine{00013\ \textcolor{comment}{//\ limitations\ under\ the\ License.}} \DoxyCodeLine{00014\ \textcolor{comment}{//\ =====================================================================================================================}} \DoxyCodeLine{00015\ } \DoxyCodeLine{00016\ \textcolor{preprocessor}{\#ifndef\ PROFILER\_H}} \DoxyCodeLine{00017\ \textcolor{preprocessor}{\#define\ PROFILER\_H}} \DoxyCodeLine{00018\ } \DoxyCodeLine{00019\ \textcolor{preprocessor}{\#include\ }} \DoxyCodeLine{00020\ \textcolor{preprocessor}{\#include\ }} \DoxyCodeLine{00021\ \textcolor{preprocessor}{\#include\ }} \DoxyCodeLine{00022\ \textcolor{preprocessor}{\#include\ }} \DoxyCodeLine{00023\ } \DoxyCodeLine{00024\ \textcolor{keyword}{namespace\ }OpenShaderDesigner} \DoxyCodeLine{00025\ \{} \DoxyCodeLine{00026\ } \DoxyCodeLine{00027\ \ \ \ \ \textcolor{keyword}{class\ }\mbox{\hyperlink{class_open_shader_designer_1_1_profiler}{Profiler}}} \DoxyCodeLine{00028\ \ \ \ \ \ \ \ \ :\ \textcolor{keyword}{public}\ \mbox{\hyperlink{class_open_shader_designer_1_1_editor_window}{EditorWindow}}} \DoxyCodeLine{00029\ \ \ \ \ \ \ \ \ ,\ \textcolor{keyword}{public}\ \mbox{\hyperlink{class_open_shader_designer_1_1_event_handler}{EventHandler}}} \DoxyCodeLine{00030\ \ \ \ \ \ \ \ \ ,\ \textcolor{keyword}{public}\ \mbox{\hyperlink{class_open_shader_designer_1_1_event_handler}{EventHandler}}} \DoxyCodeLine{00031\ \ \ \ \ \{} \DoxyCodeLine{00032\ \ \ \ \ \textcolor{keyword}{public}:} \DoxyCodeLine{00033\ \ \ \ \ \ \ \ \ \mbox{\hyperlink{class_open_shader_designer_1_1_profiler}{Profiler}}();} \DoxyCodeLine{00034\ \ \ \ \ \ \ \ \ \mbox{\hyperlink{class_open_shader_designer_1_1_profiler}{\string~Profiler}}();} \DoxyCodeLine{00035\ } \DoxyCodeLine{00036\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{class_open_shader_designer_1_1_profiler_a26186e7726d5811f423c9cee06aec1d5}{DrawWindow}}()\ \textcolor{keyword}{override};} \DoxyCodeLine{00037\ } \DoxyCodeLine{00038\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{bool}\ HandleEvent(\textcolor{keyword}{const}\ \mbox{\hyperlink{class_open_shader_designer_1_1_event_handler_ac7326c1ee1a04cf764475dc7c74dc021}{EventHandler::HandledType}}*\ event)\ \textcolor{keyword}{override};} \DoxyCodeLine{00039\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{bool}\ HandleEvent(\textcolor{keyword}{const}\ \mbox{\hyperlink{class_open_shader_designer_1_1_event_handler_ac7326c1ee1a04cf764475dc7c74dc021}{EventHandler::HandledType}}*\ event)\ \textcolor{keyword}{override};} \DoxyCodeLine{00040\ } \DoxyCodeLine{00041\ \ \ \ \ \textcolor{keyword}{private}:} \DoxyCodeLine{00042\ \ \ \ \ \ \ \ \ \textcolor{keyword}{enum}} \DoxyCodeLine{00043\ \ \ \ \ \ \ \ \ \{} \DoxyCodeLine{00044\ \ \ \ \ \ \ \ \ \ \ \ \ EVENTS\ =\ 0} \DoxyCodeLine{00045\ \ \ \ \ \ \ \ \ ,\ \ \ RENDER} \DoxyCodeLine{00046\ \ \ \ \ \ \ \ \ ,\ \ \ EDITOR} \DoxyCodeLine{00047\ \ \ \ \ \ \ \ \ ,\ \ \ END} \DoxyCodeLine{00048\ } \DoxyCodeLine{00049\ \ \ \ \ \ \ \ \ ,\ \ \ COUNT} \DoxyCodeLine{00050\ \ \ \ \ \ \ \ \ ,\ \ \ LAST\ =\ COUNT\ -\/\ 1} \DoxyCodeLine{00051\ \ \ \ \ \ \ \ \ \};} \DoxyCodeLine{00052\ } \DoxyCodeLine{00053\ \ \ \ \ \ \ \ \ uint64\_t\ Frame;} \DoxyCodeLine{00054\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{double}\ \ \ Deltas[COUNT];} \DoxyCodeLine{00055\ \ \ \ \ \ \ \ \ \mbox{\hyperlink{class_open_shader_designer_1_1_timer}{Timer}}\ \ \ \ \mbox{\hyperlink{class_open_shader_designer_1_1_timer}{Timer}};} \DoxyCodeLine{00056\ \ \ \ \ \};} \DoxyCodeLine{00057\ } \DoxyCodeLine{00058\ \}} \DoxyCodeLine{00059\ } \DoxyCodeLine{00060\ } \DoxyCodeLine{00061\ } \DoxyCodeLine{00062\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//PROFILER\_H}} \end{DoxyCode}