Package com.comphenix.protocol.timing

Examples of com.comphenix.protocol.timing.TimedTracker


        marker.setWorkerID(workerID);
       
        // We're not THAT worried about performance here
        if (timedManager.isTiming()) {
          // Retrieve the tracker to use
          TimedTracker tracker = timedManager.getTracker(listener,
            packet.isServerPacket() ? ListenerType.ASYNC_SERVER_SIDE : ListenerType.ASYNC_CLIENT_SIDE);
          long token = tracker.beginTracking();
         
          if (packet.isServerPacket())
            listener.onPacketSending(packet);
          else
            listener.onPacketReceiving(packet);
         
          // And we're done
          tracker.endTracking(token, packet.getPacketType());
         
        } else {
          if (packet.isServerPacket())
            listener.onPacketSending(packet);
          else
View Full Code Here


      return;

    // The returned list is thread-safe
    if (timedManager.isTiming()) {
      for (PrioritizedListener<PacketListener> element : list) {
        TimedTracker tracker = timedManager.getTracker(element.getListener(), ListenerType.SYNC_CLIENT_SIDE);
        long token = tracker.beginTracking();
       
        // Measure and record the execution time
        invokeReceivingListener(reporter, event, element);
        tracker.endTracking(token, event.getPacketType());
      }
    } else {
      for (PrioritizedListener<PacketListener> element : list) {
        invokeReceivingListener(reporter, event, element);
      }
View Full Code Here

    // The returned list is thread-safe
    if (timedManager.isTiming()) {
      for (PrioritizedListener<PacketListener> element : list) {
        if (element.getPriority() == priorityFilter) {
          TimedTracker tracker = timedManager.getTracker(element.getListener(), ListenerType.SYNC_CLIENT_SIDE);
          long token = tracker.beginTracking();
         
          // Measure and record the execution time
          invokeReceivingListener(reporter, event, element);
          tracker.endTracking(token, event.getPacketType());
        }
      }
    } else {
      for (PrioritizedListener<PacketListener> element : list) {
        if (element.getPriority() == priorityFilter) {
View Full Code Here

    if (list == null)
      return;
   
    if (timedManager.isTiming()) {
      for (PrioritizedListener<PacketListener> element : list) {
        TimedTracker tracker = timedManager.getTracker(element.getListener(), ListenerType.SYNC_SERVER_SIDE);
        long token = tracker.beginTracking();
       
        // Measure and record the execution time
        invokeSendingListener(reporter, event, element);
        tracker.endTracking(token, event.getPacketType());
      }
    } else {
      for (PrioritizedListener<PacketListener> element : list) {
        invokeSendingListener(reporter, event, element);
      }
View Full Code Here

      return;
   
    if (timedManager.isTiming()) {
      for (PrioritizedListener<PacketListener> element : list) {
        if (element.getPriority() == priorityFilter) {
        TimedTracker tracker = timedManager.getTracker(element.getListener(), ListenerType.SYNC_SERVER_SIDE);
        long token = tracker.beginTracking();
       
        // Measure and record the execution time
        invokeSendingListener(reporter, event, element);
        tracker.endTracking(token, event.getPacketType());
        }
      }
    } else {
      for (PrioritizedListener<PacketListener> element : list) {
        if (element.getPriority() == priorityFilter) {
View Full Code Here

TOP

Related Classes of com.comphenix.protocol.timing.TimedTracker

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.