- Change --cfg=tracing/msg/vm to --cfg=tracing/vm as virtual machine
behavior tracing is no longer limited to MSG
+ S4U:
+ - Introduced new function simgrid::s4u::Host::get_actor_count. This function
+ returns the number of actors running on a specific host.
+
Fixed bugs:
- #258: daemonized actors hang after all non-daemonized actors have completed
const char* getProperty(const char* key);
void setProperty(std::string key, std::string value);
void getProcesses(std::vector<ActorPtr> * list);
+ int get_actor_count() const;
double getPstateSpeed(int pstate_index);
int getPstatesCount() const;
void setPstate(int pstate_index);
}
}
+/** @brief Returns how many actors have been launched on this host */
+// FIXME: Specify whether the user should expect only non-daemon actors here!
+int Host::get_actor_count() const
+{
+ return this->extension<simgrid::simix::Host>()->process_list.size();
+}
+
/** @brief Get the peak processor speed (in flops/s), at the specified pstate */
double Host::getPstateSpeed(int pstate_index)
{
});
}
-/** @brief Get the peak processor speed (in flops/s), at the current pstate */
+/** @brief Get the peak processor speed (under full load (=1.0), in flops/s), at the current pstate */
double Host::getSpeed()
{
return pimpl_cpu->getSpeed(1.0);