We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d03328f commit 5b7698aCopy full SHA for 5b7698a
1 file changed
src/runtime_src/xdp/profile/database/static_info_database.cpp
@@ -57,6 +57,12 @@ namespace xdp {
57
#else
58
pid = static_cast<int>(getpid()) ;
59
#endif
60
+
61
+ // During initialization, call the utility function isEdge()
62
+ // just to initialize static variables, so later other functions
63
+ // will not have to call the xrt::system_linux queries when
64
+ // they might have been destroyed
65
+ (void)(isEdge());
66
}
67
68
VPStaticDatabase::~VPStaticDatabase()
0 commit comments