feature(interactive): Provide Profile Tool to Display Query Metrics
shirly121 opened this issue · comments
Is your feature request related to a problem? Please describe.
We need a end-to-end profiling tools to display per query metrics, like in gremlin console:
![image](https://private-user-images.githubusercontent.com/22363306/349365560-a6e005f7-e576-4254-8a96-bd8a6e740c48.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIxMTI2NTQsIm5iZiI6MTcyMjExMjM1NCwicGF0aCI6Ii8yMjM2MzMwNi8zNDkzNjU1NjAtYTZlMDA1ZjctZTU3Ni00MjU0LThhOTYtYmQ4YTZlNzQwYzQ4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI3VDIwMzIzNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI3NDZkOGM0YzA5MjM2NmMzNWFmM2VjYjgyN2EyNzgxYjQ2ZTk4NGZjZWFiYWM2ZDU5NThjZDUwMmUxZmU2YWUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.CArXAwjeJIUSaFQagsAO5u2bPQgcgH_qbltWle4dHz4)
or in cypher console:
![image](https://private-user-images.githubusercontent.com/22363306/349366294-9b38e557-2980-41dd-96be-57c85c01dc35.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIxMTI2NTQsIm5iZiI6MTcyMjExMjM1NCwicGF0aCI6Ii8yMjM2MzMwNi8zNDkzNjYyOTQtOWIzOGU1NTctMjk4MC00MWRkLTk2YmUtNTdjODVjMDFkYzM1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI3VDIwMzIzNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTM0YTBmMjZhNGY2YjZiMmJlODI3ZTgyYWFhODA2YmU2M2ZiNmRhOTllYzdjYWFkZGRmMDczMGQ1OTcwYmEwMmMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.1Ia5lgTHLIfHMDO37SMH9CafAHXc70POh-wBNIgOYts)
The metrics should involve the following aspects:
-
overall:
- total latency
- compilation latency
- execution latency
-
detail:
- per step latency
- per step latency occupation
- per step estimated count
- per step execution count
It has been a missing feature for a long time! 😁
Maybe consolidate with yuansi. /cc @siyuan0322