Function Time Consumption Stack Segmentation for Performance Analysis

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

In practical application scenarios, large-scale clients generate hundreds of millions of function information reports, making it challenging to extract desired information for performance analysis due to the massive amount of data.

Innovation Solution

A method that involves obtaining function time consumption stacks from clients, splitting each stack into sub-stacks based on scenario stages, and aggregating these sub-stacks to obtain target time consumption information for the functions involved.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If function time consumption stacks are analyzed individually in testing scenarios, then analysis accuracy is maintained, but processing efficiency deteriorates when dealing with hundreds of millions of function information from large-scale clients

Engineering Contradiction:
Improveperformance analysis accuracyVSAvoiddata processing efficiency
Core Design Contradiction:
Measurement precisionVSProductivity

Solution Approach 1:

The patent segments the massive function time consumption stacks by dividing them into multiple time consumption stack groups based on time intervals. Each group contains stacks within a specific time range, allowing parallel processing of smaller subsets rather than analyzing all hundreds of millions of stacks individually. This maintains measurement precision within each time group while dramatically improving overall processing efficiency through divide-and-conquer strategy.

Inventive Principle:
Principle #1Segmentation

2Loss of information

If all function information from large-scale clients is processed to ensure comprehensive performance analysis, then analysis completeness is improved, but time consumption increases significantly

Engineering Contradiction:
Improveperformance information completenessVSAvoiddetermination time
Core Design Contradiction:
Loss of informationVSLoss of time

Solution Approach 1:

The patent performs preliminary actions by pre-dividing the function time consumption stacks into time consumption stack groups based on time intervals before actual analysis. This preliminary organization allows the system to quickly locate and process only the relevant time groups needed for a given performance analysis task, rather than processing all function information sequentially. This reduces determination time while maintaining information completeness through structured organization.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent enables continuous processing of performance analysis by maintaining an organized structure of time consumption stack groups that can be sequentially or selectively processed. As new function information arrives, it can be continuously added to appropriate time groups without reprocessing existing data, ensuring both completeness of information and efficiency of ongoing analysis.

Inventive Principle:
Principle #20Continuity of useful action

Data Source

PatentUS20250190244A1Method, apparatus, electronic device and storage medium for determining function time consumption
Publication Date: 2025.06.12 BEIJING ZITIAO NETWORK TECH CO LTD
  • US20250190244A1 patent drawing
  • US20250190244A1 patent drawing
  • US20250190244A1 patent drawing

AI summary

Embodiments of the present disclosure provide a method, apparatus, electronic device and storage medium for determining function time consumption. The method comprises: obtaining function time consumption stacks reported by a client for a target scenario, wherein the function time consumption stacks comprise function call information and original time consumption information of at least part of functions under the target scenario; splitting each of the function time consumption stacks into a plurality of sub-stacks based on scenario stages of the target scenario; and aggregating the sub-stacks to obtain target time consumption information of the at least part of functions.