You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I run this very simple code (taken from readthedocs) and use perfmon to monitor private bytes and handle count, you will see that private bytes and handle count ramp up at a very steep slope. Am I doing something wrong?
dev setup:
[C++:General:Additional Include Directories:C:\Users\XXXXXX\AppData\Local\Programs\Python\Python39\include]
[Linker:Input:Additional Dependencies: python39.lib]
int main()
{
for (;;)
{
py::scoped_interpreter guard{}; // start the interpreter and keep it alive
//py::print("Hello, World!"); // use the Python API
Sleep(1000);
}
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
If I run this very simple code (taken from readthedocs) and use perfmon to monitor private bytes and handle count, you will see that private bytes and handle count ramp up at a very steep slope. Am I doing something wrong?
dev setup:
[C++:General:Additional Include Directories:C:\Users\XXXXXX\AppData\Local\Programs\Python\Python39\include]
[Linker:Input:Additional Dependencies: python39.lib]
#include "Pybind11/pybind11.h"
#include "Pybind11/embed.h"
namespace py = pybind11;
#include <Windows.h> // for Sleep
int main()
{
for (;;)
{
py::scoped_interpreter guard{}; // start the interpreter and keep it alive
//py::print("Hello, World!"); // use the Python API
Sleep(1000);
}
}
Beta Was this translation helpful? Give feedback.
All reactions