Unity 프로파일러를 커스터마이즈하여 애플리케이션의 특정 성능 데이터를 캡처하고 시각화할 수 있습니다. 이 성능 데이터는 최적화 또는 도구 결정에 사용할 수 있는 주요 성능 특성에 대한 정보를 제공합니다.
프로파일러 모듈 에디터를 사용하여 코드를 직접 작성하지 않고도 커스텀 모듈을 추가할 수 있습니다. 프로파일러 모듈 에디터는 프로파일러 커스터마이징을 위한 Unity의 빌트인 UI입니다. 자세한 내용은 프로파일러 모듈 에디터를 참조하십시오.
더 많은 제어를 위해 코드를 사용하여 다음과 같은 방식으로 프로파일러를 커스터마이즈할 수도 있습니다.
코드를 사용하여 프로파일러를 커스터마이즈하려면 Unity 프로파일링 코어 패키지를 설치해야 합니다.
프로파일러 마커를 사용하여 프로파일러 창에서 리소스를 많이 사용하는 코드 블록을 시각화할 수 있습니다.
프로파일러 마커를 사용하면 Unity가 기본적으로 프로파일링하지 않는 메서드 호출을 볼 수 있습니다. 그런 다음 세부 프로파일링을 사용할 필요 없이 CPU 프로파일러 모듈에서 이러한 메서드 호출을 표시할 수 있습니다. 자세한 내용은 ProfilerMarker API 가이드를 참조하십시오.
다음은 커스터마이즈된 프로파일러 창의 예제 이미지입니다.
Tank Effects(A)라는 커스텀 프로파일러 모듈
Tank Effects 프로파일러 모듈의 데이터를 시각화하는 커스텀 모듈 세부 정보 패널(B)
다음은 커스텀 카운터(C)입니다.
Tank Trail Particles
Shell Explosion Particles
Tank Explosion Particles
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.