[LUA] Unlock usage of 'source' functionality with tracy profiler. #1778
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes
Strip '@' prefix for file paths of lua files when sending tracy net packets.
Looks like it all src are prefixed by luaJIT.
Without prefix stripping (current):
![image](https://private-user-images.githubusercontent.com/18573775/406677087-ead55fe5-b3ff-406a-8b98-8b6b92713161.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxMDU1MDcsIm5iZiI6MTczOTEwNTIwNywicGF0aCI6Ii8xODU3Mzc3NS80MDY2NzcwODctZWFkNTVmZTUtYjNmZi00MDZhLThiOTgtOGI2YjkyNzEzMTYxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA5VDEyNDY0N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY5MTVlODQyOTEyYmUxZjQwZDkzMTAxMTFhNTI4YjgzNTU4YjFkNzhlZjI5MzU5MjFkOGNkN2I0NTdhMmFiNWYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.crQzRpAkJw3BZ4RW6hx-idWqF5prFzVZNbzgK9CvxDg)
Without @ prefix:
![image](https://private-user-images.githubusercontent.com/18573775/406677131-d19f1661-99c9-43ef-b374-7ebc8ebd96e5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxMDU1MDcsIm5iZiI6MTczOTEwNTIwNywicGF0aCI6Ii8xODU3Mzc3NS80MDY2NzcxMzEtZDE5ZjE2NjEtOTljOS00M2VmLWIzNzQtN2ViYzhlYmQ5NmU1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA5VDEyNDY0N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWMxYWNjYTk0ZjQ1NjFkM2JjODRlNzgyZWFjMTE0NzlkODU4MmI2ZTI4MDg2OTkyZTYzZWEzOGM2ZjJjYzRmZDImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.cONPjpnfRmTKeZ7u9Q8wq-_UA6-X_-NuLi9EOiR6QNg)