Check-in [674d4e7bf1]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Corrections to prevent NPE in profiler NPS writing
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:674d4e7bf1bb97c5658a4e797bba0f8c6e927cc1
User & Date: stephanie.gawroriski 2019-05-19 13:21:22
Context
2019-05-19
13:40
Base for icons in the launch list. check-in: c51e50ac6c user: stephanie.gawroriski tags: trunk
13:21
Corrections to prevent NPE in profiler NPS writing check-in: 674d4e7bf1 user: stephanie.gawroriski tags: trunk
13:07
Correct the splash screen showing up purple. check-in: cf28f807ec user: stephanie.gawroriski tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to runt/libs/tool-profiler/net/multiphasicapps/profiler/__NodeTable__.java.

157
158
159
160
161
162
163






164
165
166
167
168
169
170
171
172
		boolean wide = this._overflowed;
		
		// Just go through every frame and write it using a simple linear
		// index
		Map<ProfiledFrame, __Position__> offsets = this._offsets;
		for (ProfiledFrame f : linear)
		{






			// The frame location ID, this is data stored in a previous table
			dos.writeShort(__mids.get(f.location));
			
			// Number of calls
			dos.writeInt((int)Math.min(Integer.MAX_VALUE, f._numcalls));
			
			// Total time and self time
			__NodeTable__.__writeLong40(dos, f._traceruntime);
			__NodeTable__.__writeLong40(dos, f._frameruntime);







>
>
>
>
>
>

|







157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
		boolean wide = this._overflowed;
		
		// Just go through every frame and write it using a simple linear
		// index
		Map<ProfiledFrame, __Position__> offsets = this._offsets;
		for (ProfiledFrame f : linear)
		{
			// Too deep or missing location ID?
			FrameLocation location = f.location;
			Integer flid = __mids.get(f.location);
			if (f._depth >= ProfiledFrame.MAX_STACK_DEPTH || flid == null)
				continue;
			
			// The frame location ID, this is data stored in a previous table
			dos.writeShort(flid);
			
			// Number of calls
			dos.writeInt((int)Math.min(Integer.MAX_VALUE, f._numcalls));
			
			// Total time and self time
			__NodeTable__.__writeLong40(dos, f._traceruntime);
			__NodeTable__.__writeLong40(dos, f._frameruntime);