Fix lint errors in tracetools_analysis

This commit is contained in:
Christophe Bedard 2019-06-07 11:05:20 +02:00
parent c98d525d4b
commit e5b8d1782f
7 changed files with 20 additions and 11 deletions

View file

@ -1,6 +1,7 @@
# Event handler
import sys
from . import lttng_models

View file

@ -1,13 +1,17 @@
# Model objects for LTTng traces/events
def get_field(event, field_name, default=None):
return event.get(field_name, default)
def get_name(event):
return get_field(event, '_name')
class EventMetadata():
"""Container for event metadata."""
def __init__(self, event_name, pid, tid, timestamp, procname):
self._event_name = event_name
self._pid = pid

View file

@ -1,8 +1,8 @@
# Process trace events and create ROS model
import sys
from .lttng_models import get_field
from .handler import EventHandler
from .lttng_models import get_field
def ros_process(events):
"""

View file

@ -1,7 +1,7 @@
# Convert processor object to pandas dataframe
import pandas as pd
from .ros_processor import RosProcessor
def callback_durations_to_df(ros_processor):
callback_addresses = []