forked from qt-creator/qt-creator
Nanotrace: Initialize variables
Change-Id: Id80d6324a287e7391a4a7b32c495869a9312bef3 Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -366,7 +366,7 @@ auto array(Entries &&...entries)
|
|||||||
return std::make_tuple(isArray, std::forward<Entries>(entries)...);
|
return std::make_tuple(isArray, std::forward<Entries>(entries)...);
|
||||||
}
|
}
|
||||||
|
|
||||||
enum class IsFlow : std::size_t { No = 0, Out = 1 << 0, In = 1 << 1, InOut = In | Out };
|
enum class IsFlow : char { No = 0, Out = 1 << 0, In = 1 << 1, InOut = In | Out };
|
||||||
|
|
||||||
inline bool operator&(IsFlow first, IsFlow second)
|
inline bool operator&(IsFlow first, IsFlow second)
|
||||||
{
|
{
|
||||||
@@ -393,8 +393,8 @@ struct alignas(4096) TraceEvent
|
|||||||
TimePoint time;
|
TimePoint time;
|
||||||
Duration duration;
|
Duration duration;
|
||||||
std::size_t id = 0;
|
std::size_t id = 0;
|
||||||
std::size_t bindId : 62;
|
std::size_t bindId = 0;
|
||||||
IsFlow flow : 2;
|
IsFlow flow = IsFlow::No;
|
||||||
char type = ' ';
|
char type = ' ';
|
||||||
ArgumentsString arguments;
|
ArgumentsString arguments;
|
||||||
};
|
};
|
||||||
@@ -1589,8 +1589,8 @@ private:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
StringType m_name;
|
StringType m_name;
|
||||||
std::size_t m_bindId;
|
std::size_t m_bindId = 0;
|
||||||
IsFlow flow;
|
IsFlow flow = IsFlow::No;
|
||||||
CategoryFunctionPointer m_category;
|
CategoryFunctionPointer m_category;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user