# US 2021/0173697 A1 · Method, apparatus and terminal device for acquiring application interface startup time

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

- Number: US 2021/0173697 A1
- Document ID: US20210173697A1
- Status: Published application
- Kind: A1
- Application number: 16/769,219
- Filed: 2018-11-02
- Published: 2021-06-10
- Earliest claimed: 2018-09-21
- Assignees: Wangsu Science & Technology Co., Ltd.
- Applicants: Wangsu Science & Technology Co., Ltd.
- Inventors: Xiaoqiang SU
- Web page: https://patentgrep.com/patent/US20210173697A1

## CPC

- G06F 9/445: Program loading or initiating (bootstrapping G06F9/4401; security arrangements for program loading or initiating G06F21/57)
- G06F 9/485: {Task life-cycle, e.g. stopping, restarting, resuming execution (G06F9/4881 takes precedence)}
- G06F 9/30152: {Determining start or end of instruction; determining instruction length}
- G06F 9/541: {via adapters, e.g. between incompatible applications}
- G06F 9/546: {Message passing systems or structures, e.g. queues}
- G06F 11/3419: {by assessing time}
- G06F 9/4843: {by program, e.g. task dispatcher, supervisor, operating system}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The present disclosure relates to the field of terminal device technology, and discloses a method, an apparatus and a terminal device for acquiring an application interface startup time. In the present disclosure, a first time point when an instruction to launch an application interface is invoked is recorded. A rendering task message is monitored and each time when the rendering task message is received, a current time point is recorded as a time point of the rendering task message. The time point of a first occurrence of the rendering task message that satisfies a pre-set condition from the chronologically recorded time points of a plurality of rendering task messages is recorded as a second time point. The pre-set condition includes that a time difference between the time point of the rendering task message and the time point of a succeeding rendering task message is equal to a pre-set time duration.

## Claims

### Claim 1

A method for acquiring an application interface startup time, comprising:
recording a first time point when an instruction to launch an application interface is invoked;
monitoring a rendering task message and each time when the rendering task message is received, recording a current time point as a time point of the rendering task message, and recording the time point of a first occurrence of the rendering task message that satisfies a pre-set condition from the chronologically recorded time points of a plurality of rendering task messages as a second time point, wherein the pre-set condition includes that a time difference between the time point of the rendering task message and the time point of a succeeding rendering task message is equal to a pre-set time duration; and
treating a time difference between the first time point and the second time point as the application interface startup time.

### Claim 2 (depends on 1)

The method of claim 1, wherein monitoring the rendering task message includes:
continuing to monitor the rendering task message until an Nth rendering task message is received, wherein N is a pre-set number.

### Claim 3 (depends on 2)

The method of claim 2, wherein:
the pre-set number is greater than 5.

### Claim 4 (depends on 1)

The method of claim 1, wherein monitoring the rendering task message includes:
each time when the rendering task message is received, determining whether the time point of a preceding rendering task message satisfies the pre-set condition; and
after the time point of the first occurrence of the rendering task message that satisfies the pre-set condition is recorded, discontinuing the monitoring of the rendering task message.

### Claim 5 (depends on 1)

The method of claim 1, wherein recording the first time point when the instruction to launch the application interface is invoked includes:
monitoring a life cycle of each of all interfaces of the application; and
after a monitoring callback notification of the life cycle of the application interface is received, recording the time point of receiving the monitoring callback notification as the first time point.

### Claim 6 (depends on 1)

The method of claim 1, further including:
uploading the chronologically recorded time points of the plurality of rendering task messages to a server.

### Claim 7 (depends on 1)

The method of claim 1, wherein:
the pre-set time duration is an interval between two adjacent interface refreshing during a process of executing the application program.

### Claim 8

An apparatus for acquiring an application interface startup time, comprising:
a recording module configured to record a first time point when an instruction to launch an application interface is invoked;
a monitoring module configured to monitor a rendering task message; and
an application interface startup determination module configured to record a time point of a first occurrence of the rendering task message that satisfies a pre-set condition as a second time point from the chronologically recorded time points of a plurality of rendering task messages,
wherein:
the recording module is further configured to record a current time point as the time point of the rendering task message each time the rendering task message is received;
the pre-set condition includes that a time difference between the time point of the rendering task message and the time point of the succeeding rendering task message is equal to a pre-set time duration; and
a time difference between the first time point and the second time point is treated as the application interface startup time.

### Claim 9 (depends on 1)

A terminal device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor,
wherein:
the memory stores instructions to be executed by the at least one processor; and
the instructions are executed by the at least one processor to enable the at least one processor to perform the method of claim 1.

### Claim 10 (depends on 1)

A computer readable storage medium for storing a computer program, wherein:
the computer program being executed by a processor performs the method of claim 1.
