RStudio Launcher Plugin SDK
1.1.3
A software development kit for creating plugins that work the the RStudio Launcher.
|
24 #ifndef LAUNCHER_PLUGINS_LOCAL_RESOURCE_STREAM_HPP
25 #define LAUNCHER_PLUGINS_LOCAL_RESOURCE_STREAM_HPP
27 #include <api/stream/AbstractTimedResourceStream.hpp>
30 namespace launcher_plugins {
45 const api::ConstJobPtr& in_job,
46 comms::AbstractLauncherCommunicatorPtr in_launcherCommunicator);
57 Error getCpuPercent(
double& out_cpuPercent);
66 Error getCpuSeconds(
double& out_cpuTime);
76 Error getMem(
double& out_physMem,
double& out_virtMem);
84 Error onInitialize()
override;
101 clock_t m_lastSysTicks;
104 clock_t m_lastProcTicks;
107 const double m_clockTicksPerSecond;
110 const double m_bytesPerPage;
Definition: LocalResourceStream.hpp:33
LocalResourceStream(system::TimeDuration in_frequency, const api::ConstJobPtr &in_job, comms::AbstractLauncherCommunicatorPtr in_launcherCommunicator)
Constructor.
Represents the current resource utilization of a job.
Definition: ResponseTypes.hpp:111
Class which represents an error.
Definition: Error.hpp:174
Represents an duration of time (e.g. 5 hours, 43 minutes, and 21 seconds) as opposed to a point in ti...
Definition: DateTime.hpp:48
Definition: AbstractTimedResourceStream.hpp:38