Related Experiment Video
Updated: Mar 18, 2026

A Quantitative Fitness Analysis Workflow
Published on: August 13, 2012
GFTrans: an on-the-fly static analysis framework for code performance profiling
Jie Li1, Yunbao Wen1, Jingxin Liu2
1School of Artificial Intelligence, South China Normal University, Foshan, China.
Abstract:
Improving software efficiency is crucial for maintenance, but pinpointing runtime bottlenecks becomes increasingly difficult as systems expand. Traditional dynamic profiling tools require full build-execution cycles, creating significant latency that impedes agile development. To address this, we introduce GFTrans, a static analysis framework that predicts c program performance without execution. GFTrans utilizes a Transformer architecture with a novel "anchor-based embedding" technique to integrate control flow and data dependencies into a unified sequence. Additionally, a dynamic gating mechanism fuses these semantic representations with 16 handcrafted statistical features to comprehensively capture code complexity. Evaluated on a dataset of real-world GitHub c functions with high-precision runtime labels, GFTrans outperforms baseline models like Random Forest and Code2Vec, achieving 78.64% accuracy. The system identifies potential bottlenecks in milliseconds, enabling developers to perform optimization effectively during the coding phase.
Related Concept Videos
Mass Analyzers: Overview
Optimization Problems
Mass Analyzers: Common Types
Wald-Wolfowitz Runs Test I
The test works...
Interpreting Run Charts
Statically Indeterminate Problem Solving

