-/** \ingroup TRACE_category
- * \brief Declare a new category with a color.
- *
- * Same as #TRACE_category, but let user specify a color encoded as a RGB-like string with three floats from 0 to 1.
- * So, to specify a red color, pass "1 0 0" as color parameter. A light-gray color can be specified using "0.7 0.7 0.7"
- * as color. This function has no effect if a category with the same name has been already declared.
- *
- * See \ref outcomes_vizu for details on how to trace the (categorized) resource utilization.
- *
- * \param category The name of the new tracing category to be created.
- * \param color The color of the category (see \ref outcomes_vizu to
- * know how to correctly specify the color)
+void set_host_variable(const std::string& host, const std::string& variable, double value, double time)
+{
+ instr_user_variable(time, host, variable, "HOST", value, InstrUserVariable::SET, "", &user_host_variables);
+}
+
+/** @brief Add a value to a variable of a host */
+void add_host_variable(const std::string& host, const std::string& variable, double value, double time)
+{
+ instr_user_variable(time, host, variable, "HOST", value, InstrUserVariable::ADD, "", &user_host_variables);
+}
+
+/** @brief Subtract a value to a variable of a host */
+void sub_host_variable(const std::string& host, const std::string& variable, double value, double time)
+{
+ instr_user_variable(time, host, variable, "HOST", value, InstrUserVariable::SUB, "", &user_host_variables);
+}
+
+/** @brief Get host variables that were already declared with #declare_host_variable. */
+const std::set<std::string, std::less<>>& get_host_variables()
+{
+ return user_host_variables;
+}
+
+/* for link variables */
+/** @brief Declare a new user variable associated to links.