Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
gprof.vim71 linesDownload Raw Back to syntax
1" Vim syntax file2" Language: Syntax for Gprof Output3" Maintainer: Dominique Pelle <dominique.pelle@gmail.com>4" Last Change: 2021 Sep 195 6" Quit when a syntax file was already loaded7if exists("b:current_syntax")8  finish9endif10let s:keepcpo= &cpo11set cpo&vim12 13syn spell notoplevel14syn case match15syn sync minlines=10016 17" Flat profile18syn match gprofFlatProfileTitle19  \ "^Flat profile:$" 20syn region gprofFlatProfileHeader 21  \ start="^Each sample counts as.*"22  \ end="^ time.*name\s*$"23syn region gprofFlatProfileTrailer24  \ start="^\s*%\s\+the percentage of the total running time.*"25  \ end="^\s*the gprof listing if it were to be printed\."26 27" Call graph28syn match gprofCallGraphTitle "Call graph (explanation follows)"29syn region gprofCallGraphHeader30  \ start="^granularity: each sample hit covers.*"31  \ end="^\s*index % time\s\+self\s\+children\s\+called\s\+name$"32syn match gprofCallGraphFunction "\<\(\d\+\.\d\+\s\+\)\{3}\([0-9+]\+\)\?\s\+[a-zA-Z_<].*\ze\["33syn match gprofCallGraphSeparator "^-\+$"34syn region gprofCallGraphTrailer35  \ start="This table describes the call tree of the program"36  \ end="^\s*the cycle\.$"37 38" Index39syn region gprofIndex40  \ start="^Index by function name$"41  \ end="\%$"42 43syn match gprofIndexFunctionTitle "^Index by function name$"44 45syn match gprofNumbers "^\s*[0-9 ./+]\+"46syn match gprofFunctionIndex "\[\d\+\]"47syn match gprofSpecial "<\(spontaneous\|cycle \d\+\)>"48 49hi def link gprofFlatProfileTitle      Title50hi def link gprofFlatProfileHeader     Comment51hi def link gprofFlatProfileFunction   Number52hi def link gprofFlatProfileTrailer    Comment53 54hi def link gprofCallGraphTitle        Title55hi def link gprofCallGraphHeader       Comment56hi def link gprofFlatProfileFunction   Number57hi def link gprofCallGraphFunction     Special58hi def link gprofCallGraphTrailer      Comment59hi def link gprofCallGraphSeparator    Label60 61hi def link gprofFunctionIndex         Label62hi def link gprofSpecial               SpecialKey63hi def link gprofNumbers               Number64 65hi def link gprofIndexFunctionTitle Title66 67let b:current_syntax = "gprof"68 69let &cpo = s:keepcpo70unlet s:keepcpo71 
codekingpro/portable-devtools · Team Ai