Changes

Jump to navigation Jump to search
1,652 bytes added ,  23:52, 15 April 2020
no edit summary
Line 123: Line 123:     
=== EnableApplicationCrashReport ===
 
=== EnableApplicationCrashReport ===
 +
 +
Takes an input boolean "enable".
    
This calls pm:shell->GetApplicationProcessId. If the returned process ID is tracked, this sets or clears bit 1 (value 0x2) in the tracked process's flags.
 
This calls pm:shell->GetApplicationProcessId. If the returned process ID is tracked, this sets or clears bit 1 (value 0x2) in the tracked process's flags.
Line 137: Line 139:     
=== EnableApplicationAllThreadDumpOnCrash ===
 
=== EnableApplicationAllThreadDumpOnCrash ===
 +
 +
Takes an input boolean "enable".
 +
 +
This calls pm:shell->GetApplicationProcessId. If the returned process ID is tracked, this sets or clears bit 3 (value 0x8) in the tracked process's flags.
 +
 +
Using this command unconditionally sets bit 2 (value 0x4) in the tracked process's flags.
 +
 +
When the SnapShotDumper is launched, argument "-log %d" is set to the value of bit 3 if bit 2 is 1. Otherwise, argument "-log %d" is set to the value of the system setting "snap_shot_dump!output_all_log".
 +
 +
Thus, this overrides the log option for the current application process from snap_shot_dump!output_all_log with the input value.
 +
 +
Previously this functionality was controlled by ns:am2->EnableApplicationAllThreadDumpOnCrash, which is now a wrapper for this function.
    
=== TriggerSnapShotDumper ===
 
=== TriggerSnapShotDumper ===
 +
 +
This takes an input 32 "SnapShotDumpType" and an input MapAliasBuffer "argument".
 +
 +
This manually invokes the same function to launch the SnapShotDumper program (0100000000002071) as is called automatically when a process crashes and jit_debug!enable_jit_debug is 1.
 +
 +
If the argument is NULL, then the snap shot dumper is launched with argument Format("D %010llu -log %d -dump %d", process_id, log_option, snap_shot_dump_type - 1).
 +
If the argument is not NULL, the snap shot dumper is launched with argument Format("D %010llu \"%s\" -log %d -dump %d", process_id, argument, log_option, snap_shot_dump_type - 1).
 +
 +
When invoked automatically, the SnapShotDumpType is SnapShotDumpType_Full if both "snap_shot_dump!full_dump" and "snap_shot_dump!auto_dump" are true, SnapShotDumpType_Auto if only "snap_shot_dump!auto_dump" is 1, and SnapShotDumpType_None otherwise.
    
== IEventObserver ==
 
== IEventObserver ==

Navigation menu