Microsoft MVP성태의 닷넷 이야기
Debug : 4. SOS로 Managed 객체의 크기 구하는 방법 [링크 복사], [링크+제목 복사],
조회: 10334
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 

일단, Object의 크기는 2가지로 나눠볼 수 있을 것입니다.

1. Object 자체의 GC 메모리 크기
2. 해당 Object가 가지고 있는 내부의 참조 객체까지 모두 추적해서, 그 Object를 유지하기 위한 총 크기

두 가지 모두 SOS 확장에서 그 값을 알아낼 수 있는데요.

다음의 토픽을 각각 참조하시면 됩니다.

1 번 크기 :
  How can I figure out how large my class is?
  ; (broken) http://blogs.msdn.com/jfoscoding/archive/2006/07/19/670664.aspx

  - 위의 토픽을 보시면서 크기가 잘 이해가 안 되실 수 있는데요. Managed 객체의 경우, 기본적으로 해당 개체를 유지하기 위한 8byte 크기의 메모리가 필요하다는 점과, 4byte 정렬되어진다는 점을 참조하시면 위의 토픽 결과를 이해하실 수 있습니다.

2 번 크기 :
  How can I figure out how much goo my object is holding onto?
  ; https://docs.microsoft.com/en-us/archive/blogs/jfoscoding/how-can-i-figure-out-how-much-goo-my-object-is-holding-onto

----

SOS 확장을 VS.NET 2005에서 다루는 방법에 대해서는 다음 토픽을 참고하십시오.

3.4. VS.NET 2005 디버그 모드에서의 PDB 파일 사용 차이
; https://www.sysnet.pe.kr/2/0/313








[최초 등록일: ]
[최종 수정일: 9/10/2021]


비밀번호

댓글 작성자
 




... 31  32  33  34  35  36  37  38  [39]  40  41  42  43  44  45  ...
NoWriterDateCnt.TitleFile(s)
213정성태4/13/20068964Introduction to the MSN Messenger Activity SDK
212정성태4/13/200611018FIN_WAIT_2 상태에 대하여
211정성태4/13/20069635Override CLR Assembly Probing Logic
210정성태4/13/200610076Web.config의 기본 <appSettings /> Handler 교체
209정성태3/25/20069986Win32 FileID API Library
208정성태4/13/20069574(거의)모든 DB 에 대한 ADO.NET Data Provider (유료)목록
205정성태4/13/20069644Static Code Analyzer
206정성태4/13/20069345    답변글 Visual C++ Express를 사용한 보안 응용 프로그램 빌드
203정성태4/13/20069226WGF (Windows Graphic Foundation) [1]
202정성태4/13/20069048사용자 컴퓨터 환경 조사 결과(외국 사례)
201정성태4/13/200612691MySQLDirect .NET Data Provider
207정성태4/13/20068587    답변글 무료: Download Connector/Net 1.0 (MySQL) [1]
200정성태4/13/20069007Understanding Classic COM Interoperability With .NET Applications파일 다운로드1
199정성태4/13/20069280How to get a V2.0 ICorDebug object
198정성태4/13/20069351Whidbey breaking change --- Caching binding failures [1]
197정성태4/13/20068655The JIT does dead-code elimination in Debuggable code
195정성태4/13/20068722910442 - Working with Web Resources in ASP.NET 2.0
194정성태4/13/20069281ASP.NET 2.0 WebPart - SQL Server Error 26: Error Locating Server/Instance Specified
193정성태4/13/20069259WCF - Breaking Changes between Jan CTP and Feb CTP파일 다운로드1
192정성태4/13/20068837Cassini Update
191정성태4/13/20069879LeechBlocker ISAPI Filter
189정성태4/13/20069178The New Anonymous Types Feature in C# 3.0 [1]
188정성태3/8/20069241Microsoft Anti-Cross Site Scripting Library V1.0
196정성태4/13/20068748    답변글 왜 사용해야 하는가?
187정성태4/13/20068573제 1회 INETA 세미나
186정성태4/13/20069278Internet Information Services (IIS) 6.0 Manager for Windows XP
... 31  32  33  34  35  36  37  38  [39]  40  41  42  43  44  45  ...