diff --git a/conf.pest b/conf.pest index 49bc9a1..53a25ae 100644 --- a/conf.pest +++ b/conf.pest @@ -7,8 +7,8 @@ cha = { ASCII_ALPHANUMERIC | ANY | "." | "_" | "/" } // string = @{ "'" ~ ("''" | (!"'" ~ ANY))* ~ "'" } // string = @{ ("'" ~ ("''" | (!"'" ~ ANY))* ~ "'") | ("\"" ~ ("\"\"" | (!"\"" ~ ANY))* ~ "\"") } -// -// +// +// var = { "$" ~ cha+ } diff --git a/flamegraph.svg b/flamegraph.svg index 14d2197..97e57b4 100644 --- a/flamegraph.svg +++ b/flamegraph.svg @@ -488,4 +488,4 @@ function search(term) { function format_percent(n) { return n.toFixed(4) + "%"; } -]]>Flame Graph Reset ZoomSearch [ld-linux-x86-64.so.2] (2 samples, 25.00%)[ld-linux-x86-64.so.2][ld-linux-x86-64.so.2] (1 samples, 12.50%)[ld-linux-x86-64.so..[ld-linux-x86-64.so.2] (1 samples, 12.50%)[ld-linux-x86-64.so..[ld-linux-x86-64.so.2] (1 samples, 12.50%)[ld-linux-x86-64.so..[ld-linux-x86-64.so.2] (1 samples, 12.50%)[ld-linux-x86-64.so..[ld-linux-x86-64.so.2] (1 samples, 12.50%)[ld-linux-x86-64.so..[ld-linux-x86-64.so.2] (3 samples, 37.50%)[ld-linux-x86-64.so.2][unknown] (1 samples, 12.50%)[unknown][unknown] (1 samples, 12.50%)[unknown][unknown] (1 samples, 12.50%)[unknown][unknown] (1 samples, 12.50%)[unknown][unknown] (1 samples, 12.50%)[unknown][ld-linux-x86-64.so.2] (7 samples, 87.50%)[ld-linux-x86-64.so.2][unknown] (4 samples, 50.00%)[unknown][unknown] (4 samples, 50.00%)[unknown][unknown] (4 samples, 50.00%)[unknown][unknown] (4 samples, 50.00%)[unknown][unknown] (4 samples, 50.00%)[unknown][unknown] (1 samples, 12.50%)[unknown]all (8 samples, 100%)themeswitch-cli (8 samples, 100.00%)themeswitch-cli[ld-linux-x86-64.so.2] (8 samples, 100.00%)[ld-linux-x86-64.so.2][unknown] (1 samples, 12.50%)[unknown][unknown] (1 samples, 12.50%)[unknown][unknown] (1 samples, 12.50%)[unknown][unknown] (1 samples, 12.50%)[unknown] \ No newline at end of file +]]>Flame Graph Reset ZoomSearch [ld-linux-x86-64.so.2] (2 samples, 25.00%)[ld-linux-x86-64.so.2][ld-linux-x86-64.so.2] (1 samples, 12.50%)[ld-linux-x86-64.so..[ld-linux-x86-64.so.2] (1 samples, 12.50%)[ld-linux-x86-64.so..[ld-linux-x86-64.so.2] (1 samples, 12.50%)[ld-linux-x86-64.so..[ld-linux-x86-64.so.2] (1 samples, 12.50%)[ld-linux-x86-64.so..[ld-linux-x86-64.so.2] (1 samples, 12.50%)[ld-linux-x86-64.so..[ld-linux-x86-64.so.2] (3 samples, 37.50%)[ld-linux-x86-64.so.2][unknown] (1 samples, 12.50%)[unknown][unknown] (1 samples, 12.50%)[unknown][unknown] (1 samples, 12.50%)[unknown][unknown] (1 samples, 12.50%)[unknown][unknown] (1 samples, 12.50%)[unknown][ld-linux-x86-64.so.2] (7 samples, 87.50%)[ld-linux-x86-64.so.2][unknown] (4 samples, 50.00%)[unknown][unknown] (4 samples, 50.00%)[unknown][unknown] (4 samples, 50.00%)[unknown][unknown] (4 samples, 50.00%)[unknown][unknown] (4 samples, 50.00%)[unknown][unknown] (1 samples, 12.50%)[unknown]all (8 samples, 100%)themeswitch-cli (8 samples, 100.00%)themeswitch-cli[ld-linux-x86-64.so.2] (8 samples, 100.00%)[ld-linux-x86-64.so.2][unknown] (1 samples, 12.50%)[unknown][unknown] (1 samples, 12.50%)[unknown][unknown] (1 samples, 12.50%)[unknown][unknown] (1 samples, 12.50%)[unknown] diff --git a/profile.json b/profile.json index 0ad4f42..3ec9408 100644 --- a/profile.json +++ b/profile.json @@ -1 +1,225 @@ -{"meta":{"categories":[{"name":"Other","color":"grey","subcategories":["Other"]},{"name":"User","color":"yellow","subcategories":["Other"]},{"name":"Kernel","color":"orange","subcategories":["Other"]}],"debug":false,"extensions":{"baseURL":[],"id":[],"length":0,"name":[]},"interval":1.0,"preprocessedProfileVersion":46,"processType":0,"product":"./target/release/themeswitch-cli","sampleUnits":{"eventDelay":"ms","threadCPUDelta":"µs","time":"ms"},"startTime":1715191938167.3564,"symbolicated":false,"pausedRanges":[],"version":24,"usesOnlyOneStackType":true,"doesNotUseFrameImplementation":true,"sourceCodeIsNotOnSearchfox":true,"markerSchema":[]},"libs":[{"name":"libc.so.6","path":"/usr/lib/libc.so.6","debugName":"libc.so.6","debugPath":"/usr/lib/libc.so.6","breakpadId":"C6EE5E919C43EDFD1125DEEFC44A8D730","codeId":"915eeec6439cfded1125deefc44a8d73e57873d9","arch":null},{"name":"ld-linux-x86-64.so.2","path":"/usr/lib/ld-linux-x86-64.so.2","debugName":"ld-linux-x86-64.so.2","debugPath":"/usr/lib/ld-linux-x86-64.so.2","breakpadId":"51E628ACB75A61B9C309E96E9ED5F1180","codeId":"ac28e6515ab7b961c309e96e9ed5f118c07048b0","arch":null}],"threads":[{"frameTable":{"length":1,"address":[899019],"inlineDepth":[0],"category":[1],"subcategory":[0],"func":[0],"nativeSymbol":[null],"innerWindowID":[null],"implementation":[null],"line":[null],"column":[null],"optimizations":[null]},"funcTable":{"length":1,"name":[1],"isJS":[false],"relevantForJS":[false],"resource":[0],"fileName":[null],"lineNumber":[null],"columnNumber":[null]},"markers":{"length":0,"category":[],"data":[],"endTime":[],"name":[],"phase":[],"startTime":[]},"name":"samply","isMainThread":true,"nativeSymbols":{"length":0,"address":[],"functionSize":[],"libIndex":[],"name":[]},"pausedRanges":[],"pid":"15622","processName":"samply","processShutdownTime":963482.881412,"processStartupTime":0.0,"processType":"default","registerTime":0.0,"resourceTable":{"length":1,"lib":[0],"name":[0],"host":[null],"type":[1]},"samples":{"length":6,"stack":[0,0,0,0,0,0],"time":[963482.849392,963482.85922,963482.86405,963482.868658,963482.872986,963482.877395],"weight":[1,1,1,1,1,1],"weightType":"samples","threadCPUDelta":[0,9,4,4,4,4]},"stackTable":{"length":1,"prefix":[null],"frame":[0],"category":[1],"subcategory":[0]},"stringArray":["libc.so.6","0xdb7cb"],"tid":"15622","unregisterTime":963482.881412},{"frameTable":{"length":2,"address":[116007,119392],"inlineDepth":[0,0],"category":[1,1],"subcategory":[0,0],"func":[0,1],"nativeSymbol":[null,null],"innerWindowID":[null,null],"implementation":[null,null],"line":[null,null],"column":[null,null],"optimizations":[null,null]},"funcTable":{"length":2,"name":[1,2],"isJS":[false,false],"relevantForJS":[false,false],"resource":[0,0],"fileName":[null,null],"lineNumber":[null,null],"columnNumber":[null,null]},"markers":{"length":0,"category":[],"data":[],"endTime":[],"name":[],"phase":[],"startTime":[]},"name":"themeswitch-cli","isMainThread":true,"nativeSymbols":{"length":0,"address":[],"functionSize":[],"libIndex":[],"name":[]},"pausedRanges":[],"pid":"15622.1","processName":"themeswitch-cli","processShutdownTime":963484.163025,"processStartupTime":963482.881412,"processType":"default","registerTime":963482.881412,"resourceTable":{"length":1,"lib":[1],"name":[0],"host":[null],"type":[1]},"samples":{"length":1,"stack":[1],"time":[963483.016246],"weight":[1],"weightType":"samples","threadCPUDelta":[0]},"stackTable":{"length":2,"prefix":[null,0],"frame":[0,1],"category":[1,1],"subcategory":[0,0]},"stringArray":["ld-linux-x86-64.so.2","0x1c527","0x1d260"],"tid":"15622.1","unregisterTime":963484.163025}],"pages":[],"profilerOverhead":[],"counters":[]} \ No newline at end of file +{ + "meta": { + "categories": [ + { + "name": "Other", + "color": "grey", + "subcategories": ["Other"] + }, + { + "name": "User", + "color": "yellow", + "subcategories": ["Other"] + }, + { + "name": "Kernel", + "color": "orange", + "subcategories": ["Other"] + } + ], + "debug": false, + "extensions": { + "baseURL": [], + "id": [], + "length": 0, + "name": [] + }, + "interval": 1, + "preprocessedProfileVersion": 46, + "processType": 0, + "product": "./target/release/themeswitch-cli", + "sampleUnits": { + "eventDelay": "ms", + "threadCPUDelta": "µs", + "time": "ms" + }, + "startTime": 1715191938167.3564, + "symbolicated": false, + "pausedRanges": [], + "version": 24, + "usesOnlyOneStackType": true, + "doesNotUseFrameImplementation": true, + "sourceCodeIsNotOnSearchfox": true, + "markerSchema": [] + }, + "libs": [ + { + "name": "libc.so.6", + "path": "/usr/lib/libc.so.6", + "debugName": "libc.so.6", + "debugPath": "/usr/lib/libc.so.6", + "breakpadId": "C6EE5E919C43EDFD1125DEEFC44A8D730", + "codeId": "915eeec6439cfded1125deefc44a8d73e57873d9", + "arch": null + }, + { + "name": "ld-linux-x86-64.so.2", + "path": "/usr/lib/ld-linux-x86-64.so.2", + "debugName": "ld-linux-x86-64.so.2", + "debugPath": "/usr/lib/ld-linux-x86-64.so.2", + "breakpadId": "51E628ACB75A61B9C309E96E9ED5F1180", + "codeId": "ac28e6515ab7b961c309e96e9ed5f118c07048b0", + "arch": null + } + ], + "threads": [ + { + "frameTable": { + "length": 1, + "address": [899019], + "inlineDepth": [0], + "category": [1], + "subcategory": [0], + "func": [0], + "nativeSymbol": [null], + "innerWindowID": [null], + "implementation": [null], + "line": [null], + "column": [null], + "optimizations": [null] + }, + "funcTable": { + "length": 1, + "name": [1], + "isJS": [false], + "relevantForJS": [false], + "resource": [0], + "fileName": [null], + "lineNumber": [null], + "columnNumber": [null] + }, + "markers": { + "length": 0, + "category": [], + "data": [], + "endTime": [], + "name": [], + "phase": [], + "startTime": [] + }, + "name": "samply", + "isMainThread": true, + "nativeSymbols": { + "length": 0, + "address": [], + "functionSize": [], + "libIndex": [], + "name": [] + }, + "pausedRanges": [], + "pid": "15622", + "processName": "samply", + "processShutdownTime": 963482.881412, + "processStartupTime": 0, + "processType": "default", + "registerTime": 0, + "resourceTable": { + "length": 1, + "lib": [0], + "name": [0], + "host": [null], + "type": [1] + }, + "samples": { + "length": 6, + "stack": [0, 0, 0, 0, 0, 0], + "time": [ + 963482.849392, 963482.85922, 963482.86405, 963482.868658, + 963482.872986, 963482.877395 + ], + "weight": [1, 1, 1, 1, 1, 1], + "weightType": "samples", + "threadCPUDelta": [0, 9, 4, 4, 4, 4] + }, + "stackTable": { + "length": 1, + "prefix": [null], + "frame": [0], + "category": [1], + "subcategory": [0] + }, + "stringArray": ["libc.so.6", "0xdb7cb"], + "tid": "15622", + "unregisterTime": 963482.881412 + }, + { + "frameTable": { + "length": 2, + "address": [116007, 119392], + "inlineDepth": [0, 0], + "category": [1, 1], + "subcategory": [0, 0], + "func": [0, 1], + "nativeSymbol": [null, null], + "innerWindowID": [null, null], + "implementation": [null, null], + "line": [null, null], + "column": [null, null], + "optimizations": [null, null] + }, + "funcTable": { + "length": 2, + "name": [1, 2], + "isJS": [false, false], + "relevantForJS": [false, false], + "resource": [0, 0], + "fileName": [null, null], + "lineNumber": [null, null], + "columnNumber": [null, null] + }, + "markers": { + "length": 0, + "category": [], + "data": [], + "endTime": [], + "name": [], + "phase": [], + "startTime": [] + }, + "name": "themeswitch-cli", + "isMainThread": true, + "nativeSymbols": { + "length": 0, + "address": [], + "functionSize": [], + "libIndex": [], + "name": [] + }, + "pausedRanges": [], + "pid": "15622.1", + "processName": "themeswitch-cli", + "processShutdownTime": 963484.163025, + "processStartupTime": 963482.881412, + "processType": "default", + "registerTime": 963482.881412, + "resourceTable": { + "length": 1, + "lib": [1], + "name": [0], + "host": [null], + "type": [1] + }, + "samples": { + "length": 1, + "stack": [1], + "time": [963483.016246], + "weight": [1], + "weightType": "samples", + "threadCPUDelta": [0] + }, + "stackTable": { + "length": 2, + "prefix": [null, 0], + "frame": [0, 1], + "category": [1, 1], + "subcategory": [0, 0] + }, + "stringArray": ["ld-linux-x86-64.so.2", "0x1c527", "0x1d260"], + "tid": "15622.1", + "unregisterTime": 963484.163025 + } + ], + "pages": [], + "profilerOverhead": [], + "counters": [] +} diff --git a/test.conf b/test.conf index 77ce623..91dc31e 100644 --- a/test.conf +++ b/test.conf @@ -1,4 +1,4 @@ -import profile +import profile profile { name = "test" @@ -28,5 +28,3 @@ path="test" } } - -