Unlock Powerful HTTP Tracing in IDEA with Cool Request’s New Timing Features

The Cool Request plugin for IntelliJ IDEA now adds a Trace feature that automatically measures method execution time, visualizes call counts, highlights slow calls, supports Mybatis tracing, and lets you script environment variables, making HTTP debugging and performance analysis in Java projects far easier.

Java Interview Crash Guide
Java Interview Crash Guide
Java Interview Crash Guide
Unlock Powerful HTTP Tracing in IDEA with Cool Request’s New Timing Features

What Is Cool Request

Cool Request is an IntelliJ IDEA plugin for API debugging that goes beyond basic HTTP requests by offering reflection calls, bypassing interceptors, and supporting @Scheduled and xxl-job annotations.

What Is Trace

Trace can measure the execution time of any package except core Java packages, automatically tracking from the controller method outward based on a configurable depth.

When enabled, Trace follows method calls: depth 1 tracks only the controller, depth 2 includes all methods called by the controller, depth 3 goes deeper, and so on. For interfaces where static analysis fails, you can manually add methods to the trace.

Automatic Mybatis Function Tracing

Trace can selectively follow Mybatis execution functions, showing the exact SQL execution time (e.g., 7 ms) in the UI.

Mybatis execution time illustration
Mybatis execution time illustration

Display Call Count

The left‑hand "+100" indicator shows that a method was called 100 times, although per‑method timing is not yet available.

Call count indicator
Call count indicator

Custom Timing Colors

You can set a threshold (e.g., 5 ms) in the settings; any request exceeding this duration is highlighted in red for quick identification.

Custom timing color configuration
Custom timing color configuration

Scripted Environment Operations

When all requests require a token header, you can write a script in the request to fetch the token and set it as an environment variable, automatically adding the header to subsequent calls.

Scripted environment variable setup
Scripted environment variable setup

Using Java Directly in Scripts

Cool Request lets you invoke any class from your project, including third‑party libraries such as Gson, Fastjson, or Spring Boot’s ObjectMapper, without learning another scripting language.

public void handlerResponse(ILog log, HTTPResponse response, IEnv env) {
    String body = new String(response.getResponseBody());
    log.println(body);
    User user = JSON.parseObject(body, User.class);
    log.println(user.getAge() + "");
}
JavapluginHTTPIDEAtrace
Java Interview Crash Guide
Written by

Java Interview Crash Guide

Dedicated to sharing Java interview Q&A; follow and reply "java" to receive a free premium Java interview guide.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.