Commit Graph

141 Commits

Author SHA1 Message Date
b0b9496c4a x) Updated argument expressions and method overrides in multiple classes
In this commit, several changes were made across different files:

- In `FSM.cs` and `Imm.cs`, the `[CallerArgumentExpression]` attribute was updated to reflect the correct argument names.
- The `ProcessWork` method in `Imm.cs` was changed from virtual to override.
- In `Log.cs`, the `[CallerArgumentExpression]` attribute was updated for clarity.
- A new override for the `GetHashCode()` method was added in `AddressStack.cs`.
- The version of "Microsoft.CodeAnalysis.CSharp" package reference was updated from 4.2.0 to 4.3.1 in 'SharpLib.csproj'.

These changes improve code readability and ensure that methods are correctly overridden where necessary. Also, updating the package version ensures compatibility with newer features or bug fixes provided by Microsoft's C# compiler platform.
2024-07-26 20:53:36 -07:00
23017e0852 Title: Removed unnecessary whitespace in Imm.cs
x) Analyzed the file changes and diffs for imm/Imm.cs.
x) The changes involve removing extra lines of whitespace that were present in the code. This was done to improve readability and maintain a clean, consistent coding style.
x) No functional changes were made to the code, so no impact on functionality is expected.
2024-07-23 17:12:48 -07:00
6f63f550fa Title: Added Bitwise.cs for bitwise operations on enums
x) Created a new file, Bitwise.cs, which includes two static methods for performing bitwise operations on enums.
x) The method `ByPointers_DirectInt` directly converts an enum value to its integer representation using unsafe code and pointer manipulation. This is useful when we need the exact binary representation of an enum.
x) The method `On` checks if a specific bit (represented by an enum value) is set in a given bitfield. It uses the `ByPointers_DirectInt` method to convert the enum value to its integer equivalent before performing the bitwise operation.
x) These changes provide more efficient ways of handling bitwise operations with enums in our codebase.
2024-07-22 18:47:54 -07:00
f9907bb4e0 x) Updated Thread.Sleep parameter in Log.cs
In the logging/Log.cs file, the parameter of the Thread.Sleep function has been changed from 0 to 1. This change is likely aimed at adjusting the pause duration for a running thread. The context suggests this is a temporary solution until a semaphore or mutex can be implemented as indicated by the existing TODO comment.
2024-07-20 17:41:50 -07:00
9dbd52e736 Log call renames 2024-07-17 16:35:23 -07:00
a5cd9b3a67 Update XmlFormatter2.cs with setMethod handling and type comparison improvements
x) Added setMethod handling for child elements
x) Improved type comparison using IsAssignableFrom instead of IsSubclassOf
2024-07-03 12:40:47 -07:00
13d86f73eb Add record method for logging
x) Added a new 'record' method to log debug information with name, path, and line number.
2024-07-03 03:08:03 -07:00
be02b6f91f Consolidate imports, wrap metadata in struct, update type constraints
x) Consolidate imports for Immutable collections
x) Wrap metadata into its own struct
x) Update type constraints for generic methods
2024-07-01 14:47:24 -07:00
066d3bc7f9 Add global aliases for Immutable collections
x) Refactor logging endpoints to use more concise method names
x) Implement implicit conversion for Value struct
x) Add direct callback functionality to log events
2024-06-21 23:36:53 -07:00
bf7e47e532 Update Value class method signature
x) Changed generic type parameter from T to U in the Get method.
2024-06-18 15:27:46 -07:00
c98db058be Fix log.info call in Log.cs
x) Corrected log.info call for Tracing.MemoryPipe.
2024-06-11 17:15:26 -07:00
db949e14ab Some fixes 2024-06-10 15:16:16 -07:00
7fbfc446d5 Merge branch 'master' into mh/dev 2024-06-10 15:15:39 -07:00
803f5fcaec Merge remote-tracking branch 'origin/master' into mh/dev
Merge 'origin/master' into mh/dev

x) Update SharpLib.csproj to target .NET 8.0
x) Add new SharpLib solution file for Visual Studio 17.5
x) Define project configurations in the solution file
2024-06-10 15:06:36 -07:00
444d9b77fa
Create LICENSE 2024-06-10 15:05:03 -07:00
404789d87c feat: Add explicit transaction class/ID and split functionality into threaded vs action
x) Added enum for CommitResults
x) Created interface IID<TS>
x) Implemented DB class with lock, objects, committed lists
x) Updated lookup and checkout methods in DB class
x) Added TxStates enum and implemented Tx class with checkout, add, dispose methods
x) Implemented commit method in DB class to handle transactions efficiently
2024-06-05 15:02:21 -07:00
1fd02d1460 Update logging events and improve log details display
x) Add new logging events for GC and ThreadPoolWorkerThread
x) Implement method to extract method information from TraceEvent
x) Enhance log details display for specific event types
x) Improve time header format in log messages
x) Refactor verbose logging messages to include type friendly names
2024-06-02 16:26:11 -07:00
7f9b210bbd Comment out detailed CLR logging 2024-05-27 16:50:45 -07:00
a62724bf67 Update logging and event handling in GC.cs and Log.cs
x) Added new event handling for runtime garbage collection events
x) Implemented logging endpoints for different categories
x) Improved object creation handling based on type constructors
2024-05-27 16:47:39 -07:00
32d6c29443 feat: Add RuntimeGCEventsPrinter class for monitoring GC events
x) Implement PrintRuntimeGCEvents method to monitor GC events in a specified process
x) Refactor logs for structured logging using interpolated strings
x) Introduce TraceLogMonitor class for real-time monitoring of exceptions and module loads
2024-05-27 01:13:43 -07:00
0fce863a81 Refactor logs for structured logging and add new Value struct:
- Refactor various logs to enable automagic structured logging
- Add `Value` struct for creating values with debug expressions
- Update `LogEvent` constructor to include an expression field
- Modify log methods to pass debug expressions for messages
- Implement new methods for logging values and objects with debug expressions
2024-05-26 22:27:45 -07:00
0619812089 x) Refactor Resource.cs: Change class Ref to be abstract, update method signatures, and adjust class inheritance hierarchy.
x) Update LoadHolder to be an abstract class with an overridden load method.
x) Modify Mgr class initialization and loader handling in Resource.mgr.
2024-05-26 20:30:53 -07:00
83e10dd444 Update Conn.cs, Resource.cs, and XmlFormatter2.cs
- Fix typos in method names: recieveObject -> receiveObject
- Initialize object in receiveObject method
- Add nullable enable directive to Resource.cs
- Remove unused exception variable in XmlFormatter2
2024-05-26 20:13:55 -07:00
193067bf5c Fix nullability issues in Log.cs and Imm.cs
- Updated Log.cs to handle nullable object types
  - Modified LogEvent class to accept nullable object types
  - Adjusted methods in log class to use nullable object types where necessary
  - Initialized s_thread variable with Thread.CurrentThread

- Updated MemorySourceText and MemoryRefResolver classes in Script.cs
  - Implemented overrides for SourceText properties and methods in MemorySourceText class
  - Refactored MemoryRefResolver class to handle nullability correctly
2024-05-26 19:49:45 -07:00
4e59ae0331 Add nullable annotations and update class constructors. Improve XML deserialization handling. 2024-05-26 18:47:11 -07:00
05656d469a Update logging functionality: Refactored log stop method, added missing end line write, and improved time formatting. Made adjustments to AngleSingle class for nullability. 2024-05-26 16:49:29 -07:00
f672ab9d2f Add log header and footer with timestamp, refactor header functions.
- Added header and footer logs with timestamps for each run.
- Refactored header functions to improve readability and maintainability.
2024-05-25 18:11:00 -07:00
bdf392cb36 Add interface into Process (maybe?)
Ref updates
2024-05-22 00:40:09 -07:00
c9cbacb1c9 x) Pass dbgExp through to the right places
x) Bunch of logging fixes
2024-05-21 22:26:54 -07:00
914ea91299 Merge branch 'mh/ft/2-fix-time-display-for-logging' into mh/dev 2024-05-21 18:15:23 -07:00
39ad03178d Remove consol debug write 2024-05-21 18:10:56 -07:00
d750b2eed5 Fixes
x) Make time cleaner
x) remove unsued code
2024-05-21 18:08:43 -07:00
8dbcb36b86 Process updates 2024-05-16 22:18:15 -07:00
b53ff03dfe General git stuff 2024-05-11 16:04:06 -07:00
4d7222e931 acess 2024-05-06 18:23:23 -07:00
492ca38839 Cleanup
x) Renames
x) Better relativation
2024-05-05 23:25:54 -07:00
08cf4d3aca Fixes and verbose logging 2024-05-05 20:18:46 -07:00
380974d673 Log fixes 2024-05-05 12:44:45 -07:00
6f13bd834a Renames 2024-05-05 08:40:35 -07:00
43d62557dd Some data fixes 2024-05-04 17:21:43 -07:00
c44706124b Whitespace 2024-05-03 19:51:45 -07:00
ff28a94131 x) Recording deserialization 2024-05-02 19:37:26 -07:00
0c37db10b5 Better showing templates
x) Remove oid
x) Make res ?
x) Dont show types when the type is the same as its enclosing type
2024-05-02 18:27:28 -07:00
da63a246e6 logging 2024-05-01 14:23:23 -07:00
ae4e3f75dc Renames
x) Renames
2024-05-01 01:27:42 -07:00
ad4bcf31a9 Cleaner Imm 2024-04-30 20:39:21 -07:00
cf20b86880 Renames 2024-04-30 17:56:16 -07:00
bea7080a5c Immutability and strip the / off the path
x) Better path substring
x) Add some interfaces for immutability
2024-04-30 12:19:56 -07:00
8879e98229 Whitespace changes 2024-04-30 12:18:33 -07:00
f965662031 Fix formatting 2024-04-28 20:05:36 -07:00