Print stack

This commit is contained in:
Lukas Joswiak 2021-03-29 16:06:26 -07:00
parent 2dfd420882
commit f2d3687110
2 changed files with 8 additions and 1 deletions

View File

@ -10,7 +10,7 @@ function(compile_boost)
set(BOOST_COMPILER_FLAGS -fvisibility=hidden -fPIC -std=c++14 -w)
set(BOOST_CXX_COMPILER "${CMAKE_CXX_COMPILER}")
if(APPLE)
set(BOOST_TOOLSET "darwin")
set(BOOST_TOOLSET "clang-darwin")
# this is to fix a weird macOS issue -- by default
# cmake would otherwise pass a compiler that can't
# compile boost

View File

@ -3680,12 +3680,19 @@ void* sampleThread(void* arg) {
threadSleep(1.0); // TODO: Read sample rate from global config
// TODO: Copy actor lineage of currently running actor
// Read currentLineage
auto diskAlps = IAsyncFileSystem::filesystem()->getActorLineageSet().copy();
printf("Disk ALPs: %d\n", diskAlps.size());
// TODO: Call collect on all actor lineages
for (auto actorLineage : diskAlps) {
auto stack = actorLineage->stack(&StackLineage::actorName);
while (!stack.empty()) {
printf("%s ", stack.top());
stack.pop();
}
printf("\n");
}
// TODO: Serialize collected actor linage properties