Extract base DataModel class
This commit is contained in:
parent
0b5faf3862
commit
c958ddc8b6
3 changed files with 20 additions and 6 deletions
|
@ -11,3 +11,15 @@
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
|
"""Base data model module."""
|
||||||
|
|
||||||
|
|
||||||
|
class DataModel():
|
||||||
|
"""
|
||||||
|
Container with pre-processed data for an analysis to use.
|
||||||
|
|
||||||
|
Contains data for an analysis to use. This is a middleground between trace events data and the
|
||||||
|
output data of an analysis. It uses pandas `DataFrame` directly.
|
||||||
|
"""
|
||||||
|
pass
|
||||||
|
|
|
@ -16,12 +16,14 @@
|
||||||
|
|
||||||
import pandas as pd
|
import pandas as pd
|
||||||
|
|
||||||
|
from . import DataModel
|
||||||
|
|
||||||
class CpuTimeDataModel():
|
|
||||||
|
class CpuTimeDataModel(DataModel):
|
||||||
"""
|
"""
|
||||||
Container to model pre-processed CPU time data for analysis.
|
Container to model pre-processed CPU time data for analysis.
|
||||||
|
|
||||||
Contains data for an analysis to use. It uses pandas DataFrames directly.
|
Contains every duration instance.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
|
|
|
@ -16,14 +16,14 @@
|
||||||
|
|
||||||
import pandas as pd
|
import pandas as pd
|
||||||
|
|
||||||
|
from . import DataModel
|
||||||
|
|
||||||
class RosDataModel():
|
|
||||||
|
class RosDataModel(DataModel):
|
||||||
"""
|
"""
|
||||||
Container to model pre-processed ROS data for analysis.
|
Container to model pre-processed ROS data for analysis.
|
||||||
|
|
||||||
Contains data for an analysis to use. This is a middleground between ROS userspace trace
|
This aims to represent the data in a ROS-aware way.
|
||||||
events data and the output data of an analysis. This aims to represent the data in a
|
|
||||||
ROS-aware way. It uses pandas DataFrames directly.
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue