/* mc::RemoteClient: representative of the Client memory on the MC side */
-/* Copyright (c) 2008-2022. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2008-2023. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
#ifndef SIMGRID_MC_PROCESS_H
#define SIMGRID_MC_PROCESS_H
-#include "mc/datatypes.h"
#include "src/mc/AddressSpace.hpp"
+#include "src/mc/datatypes.h"
#include "src/mc/inspect/ObjectInformation.hpp"
#include "src/mc/remote/RemotePtr.hpp"
#include "src/xbt/memory_map.hpp"
Remote<kernel::actor::ActorImpl> copy;
/** Hostname (owned by `mc_model_checker->hostnames_`) */
- const xbt::string* hostname = nullptr;
- xbt::string name;
+ const std::string* hostname = nullptr;
+ std::string name;
void clear()
{
this->refresh_malloc_info();
return this->heap_info.data();
}
+ /* Get the amount of memory mallocated in the remote process (requires mmalloc) */
+ std::size_t get_remote_heap_bytes();
void clear_cache() { this->cache_flags_ = RemoteProcess::cache_none; }
* This is not used if the process is the current one:
* use `get_heap_info()` in order to use it.
*/
- std::unique_ptr<s_xbt_mheap_t> heap;
+ std::unique_ptr<s_xbt_mheap_t> heap = std::make_unique<s_xbt_mheap_t>();
/** Copy of the allocation info structure
*