Examples of Trace


Examples of client.Trace

    sim.setCacheSimInterface(lruTop);
    DiskSimNative diskSim = new DiskSimNative(sim,"disk_model/simple_array.parv","/tmp/simple_array.out");
    sim.setDiskSim(diskSim);
    FilesystemModel filesystemModel = new FilesystemModel(sim,50,4,17782768);
    sim.setFilesystemModel(filesystemModel);
    Trace trace;
    try {
      trace = new Trace("/Users/steve/os/nfs_traces/1_1b.txt");
    } catch (IOException e) {
      e.printStackTrace();
      return;
    }
    trace.bulkImport(sim);
    System.out.println("registered events: " + simDriver.nevents());
   
    simDriver.run();
    diskSim.endSimulation(simDriver.getCurrentTime());
    lruTop.getStats().print();
View Full Code Here

Examples of com.dianping.cat.message.Trace

    for (int i = 0; i < 10; i++) {
      Transaction t = Cat.newTransaction("Trace", "Test"+i);
      try {
        Cat.logTrace("Trace", "Info");
        Cat.logTrace("Trace", "Dubug", Trace.SUCCESS, "sss");
        Trace trace = Cat.newTrace("Trace", "Error");

        trace.setStatus(Trace.SUCCESS);
        trace.addData("errorTrace");
        t.setStatus("Fail");
      } catch (Exception e) {
        t.setStatus(Transaction.SUCCESS);
        Cat.logError(e);
        throw e;
View Full Code Here

Examples of com.dottydingo.service.tracelog.Trace

    @Override
    public void completeRequest(C endpointContext)
    {
        MDC.put("CID", endpointContext.getCorrelationId());

        Trace trace = endpointContext.getTrace();
        if(trace!= null)
            traceManager.associateTrace(trace);

        ContextStatus contextStatus = contextStatusRegistry.getContextStatus(endpointContext.getRequestId());
        if(contextStatus != null)
            contextStatusRegistry.associateContextStatus(contextStatus);

        try
        {
            for (CompletionCallback<C> callback : completionCallbacks)
            {
                callback.onComplete(endpointContext);
            }
        }
        catch (Throwable throwable)
        {
            logger.error("Error completing request.", throwable);
        }

        if (trace != null)
        {
            traceManager.disassociateTrace();

            try
            {
                trace.close();
            }
            catch (Throwable t)
            {
                logger.error("Error closing trace.", t);
            }
View Full Code Here

Examples of com.linkedin.parseq.trace.Trace

                                  final JsonGenerator generator) throws IOException
  {
    generator.writeArrayFieldStart(JsonTraceCodec.TRACES);
    for (Map.Entry<Trace, Integer> entry : traceIds.entrySet())
    {
      final Trace trace = entry.getKey();
      final int traceId = entry.getValue();
      writeTrace(trace, traceId, generator);
    }
    generator.writeEndArray();
  }
View Full Code Here

Examples of com.linkedin.parseq.trace.Trace

                                         final JsonGenerator generator) throws IOException
  {
    generator.writeArrayFieldStart(JsonTraceCodec.RELATIONSHIPS);
    for (Map.Entry<Trace, Integer> entry : traceIds.entrySet())
    {
      final Trace trace = entry.getKey();
      final int fromId = entry.getValue();
      for (Related<Trace> related : trace.getRelated())
      {
        final int toId = traceIds.get(related.getRelated());
        final String relationship = related.getRelationship();
        generator.writeStartObject();
        generator.writeStringField(JsonTraceCodec.RELATIONSHIP_RELATIONSHIP, relationship);
View Full Code Here

Examples of com.linkedin.parseq.trace.Trace

    stack.push(root);

    int counter = 0;
    while (!stack.isEmpty())
    {
      final Trace trace = stack.pop();
      traceIds.put(trace, counter++);
      for (Related<Trace> related : trace.getRelated())
      {
        final Trace relatedTrace = related.getRelated();
        if (!traceIds.containsKey(relatedTrace))
        {
          stack.push(related.getRelated());
        }
      }
View Full Code Here

Examples of com.linkedin.parseq.trace.Trace

    return callService("fetch[url=" + url + "]", httpClient, new ErrorMockRequest<String>(latency, new Exception("404")));
  }

  public static void printTracingResults(final Task<?> task)
  {
    final Trace trace = task.getTrace();

    System.out.println();
    System.out.println();
    System.out.println("JSON Trace:");
View Full Code Here

Examples of com.linkedin.parseq.trace.Trace

  private TraceCodec _codec = new JsonTraceCodec();

  @Test
  public void testReversibleUnstartedTrace() throws IOException
  {
    final Trace trace = new TraceRelationshipBuilder<Integer>()
        .addTrace(0, new ShallowTraceBuilder("test", ResultType.UNFINISHED).build())
        .buildRoot();
    assertReversible(trace);
  }
View Full Code Here

Examples of com.linkedin.parseq.trace.Trace

  }

  @Test
  public void testReversibleSuccessfulTrace() throws IOException
  {
    final Trace trace = new TraceRelationshipBuilder<Integer>()
        .addTrace(0, new ShallowTraceBuilder("test", ResultType.SUCCESS)
            .setValue("test value")
            .setStartNanos(0L)
            .setPendingNanos(50L)
            .setEndNanos(100L)
View Full Code Here

Examples of com.linkedin.parseq.trace.Trace

  }

  @Test
  public void testReversibleSuccessfulTraceWithNullValue() throws IOException
  {
    final Trace trace = new TraceRelationshipBuilder<Integer>()
        .addTrace(0, new ShallowTraceBuilder("test", ResultType.SUCCESS)
            .setStartNanos(0L)
            .setPendingNanos(50L)
            .setEndNanos(100L)
            .build())
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.