# US 2021/0279114 A1 · Event loop diagnostics

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0279114 A1
- Document ID: US20210279114A1
- Status: Published application
- Kind: A1
- Application number: 16/813,571
- Filed: 2020-03-09
- Published: 2021-09-09
- Earliest claimed: 2020-03-09
- Assignees: New Relic, Inc.
- Applicants: New Relic, Inc.
- Inventors: Allan Feldman; Loren Arthur; Robert Lewis
- Web page: https://patentgrep.com/patent/US20210279114A1

## CPC

- G06F 9/52: Program synchronisation; Mutual exclusion, e.g. by means of semaphores
- G06F 9/485: {Task life-cycle, e.g. stopping, restarting, resuming execution (G06F9/4881 takes precedence)}
- G06F 9/4887: {involving deadlines, e.g. rate based, periodic}
- G06F 9/542: {Event management; Broadcasting; Multicasting; Notifications}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A system monitors an event loop executing on a host and determines causes for delays in tasks of the event loop. The system may include circuitry that receives, from an agent of the host, event loop data defining suspend and resume times of the tasks of the event loop executing on the host. The circuitry determines, based on the event loop data, event loop analysis data defining execution times for each of the tasks. The circuitry determines, based on the event loop analysis data, a cause of a delay in a task of the event loop as resulting from at least one of (i) a task delay in execution of the task or (ii) a loop delay in execution of another task of the event loop.

## Claims

### Claim 1

A method, comprising, by a circuitry:
receiving, from an agent of a host, event loop data defining suspend and resume times of tasks of an event loop executing on the host;
determining, based on the event loop data, event loop analysis data defining execution times for each of the tasks; and
determining, based on the event loop analysis data, a cause of a delay in a task of the event loop as resulting from at least one of (i) a task delay in execution of the task or (ii) a loop delay in execution of another task of the event loop.

### Claim 2 (depends on 1)

The method of claim 1, further comprising, by the circuitry, determining the cause of the delay in the task as resulting from the task delay in execution of the task based on an execution time of the task exceeding an execution time threshold.

### Claim 3 (depends on 1)

The method of claim 1, further comprising, by the circuitry, determining the cause of the delay in the task as resulting from the loop delay in execution of the other task of the event loop based on an execution time of the other task exceeding an execution time threshold.

### Claim 4 (depends on 3)

The method of claim 3, further comprising, by the circuitry:
determining a blocking time for the task based on the event loop data defining suspend and resume times of the tasks of the event loop; and
determining the cause of the delay in the task as resulting from the loop delay in execution of the other task of the event loop based on the blocking time exceeding a blocking time threshold.

### Claim 5 (depends on 1)

The method of claim 1, wherein:
the event loop data includes a response time between the host and a client device associated with the task; and
further comprising, by the circuitry, determining the cause of the delay in the task of the event loop as resulting from a network delay based on response time between the host and a client device associated with the task.

### Claim 6 (depends on 5)

The method of claim 5, wherein determining the cause of the delay in the task of the event loop as resulting from the network delay includes determining that the response time exceeds a threshold response time.

### Claim 7 (depends on 1)

The method of claim 1, wherein the host executes the task of the event loop while other tasks of the event loop are suspended.

### Claim 8 (depends on 1)

The method of claim 1, wherein each task of the event loop is associated with a different client device.

### Claim 9 (depends on 1)

The method of claim 1, further comprising, by the circuitry, providing at least one of a report or an alert indicating the cause of the delay in the task to a computing device via a network.

### Claim 10

A system, comprising:
circuitry configured to:
receive, from an agent of a host, event loop data defining suspend and resume times of tasks of an event loop executing on the host;
determine, based on the event loop data, event loop analysis data defining execution times for each of the tasks; and
determine, based on the event loop analysis data, a cause of a delay in a task of the event loop as resulting from at least one of (i) a task delay in execution of the task or (ii) a loop delay in execution of another task of the event loop.

### Claim 11 (depends on 10)

The system of claim 10, wherein the circuitry is configured to determine the cause of the delay in the task as resulting from the task delay in execution of the task based on an execution time of the task exceeding an execution time threshold.

### Claim 12 (depends on 10)

The system of claim 10, wherein the circuitry is configured to determine the cause of the delay in the task as resulting from the loop delay in execution of the other task of the event loop based on an execution time of the other task exceeding an execution time threshold.

### Claim 13 (depends on 12)

The system of claim 12, wherein the circuitry is further configured to:
determine a blocking time for the task based on the event loop data defining suspend and resume times of the tasks of the event loop; and
determine the cause of the delay in the task as resulting from the loop delay in execution of the other task of the event loop based on the blocking time exceeding a blocking time threshold.

### Claim 14 (depends on 10)

The system of claim 10, wherein:
the event loop data includes a response time between the host and a client device associated with the task; and
the circuitry is further configured to determine the cause of the delay in the task of the event loop as resulting from a network delay based on response time between the host and a client device associated with the task.

### Claim 15 (depends on 14)

The system of claim 14, wherein the circuitry configured to determine the cause of the delay in the task of the event loop as resulting from the network delay includes the circuitry being configured to determine that the response time exceeds a threshold response time.

### Claim 16 (depends on 10)

The system of claim 10, wherein:
the host executes the task of the event loop while other tasks of the event loop are suspended; and
each task of the event loop is associated with a different client device.

### Claim 17 (depends on 10)

The system of claim 10, wherein the circuitry is further configured to provide at least one of a report or an alert indicating the cause of the delay in the task to a computing device via a network.

### Claim 18

A non-transitory computer readable storage medium having instructions encoded thereon that, when executed by a processor, configures the processor to:
receive, from an agent of a host, event loop data defining suspend and resume times of tasks of an event loop executing on the host;
determine, based on the event loop data, event loop analysis data defining execution times for each of the tasks; and
determine, based on the event loop analysis data, a cause of a delay in a task of the event loop as resulting from at least one of (i) a task delay in execution of the task or (ii) a loop delay in execution of another task of the event loop.

### Claim 19 (depends on 18)

The non-transitory computer readable storage medium of claim 18, wherein the instructions configure the processor to determine the cause of the delay in the task as resulting from the task delay in execution of the task based on an execution time of the task exceeding an execution time threshold.

### Claim 20 (depends on 19)

The non-transitory computer readable storage medium of claim 19, wherein the instructions configure the processor to determine the cause of the delay in the task as resulting from the loop delay in execution of the other task of the event loop based on an execution time of the other task exceeding an execution time threshold.
