Commit 27f426c1 authored by Dominik Charousset's avatar Dominik Charousset

Print memory overhead in test_spawn

parent 7542d1f9
......@@ -875,10 +875,21 @@ void test_spawn() {
CAF_CHECKPOINT();
}
class actor_size_getter : public event_based_actor {
public:
behavior make_behavior() override {
CAF_PRINT("size of one event-based actor: " << sizeof(*this) << " bytes");
return {};
}
};
} // namespace <anonymous>
int main() {
CAF_TEST(test_spawn);
spawn<actor_size_getter>();
await_all_actors_done();
CAF_CHECKPOINT();
test_spawn();
CAF_CHECKPOINT();
await_all_actors_done();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment