Commit Graph

11 Commits

Author SHA1 Message Date
Martin Ridgers
42fe03350e Read much larger chunks of trace data to improve throughput and ease analysis engine's poor behaviour when it is waiting on a dependent event to arrive.
#rb jb
#rnx
#preflight 6204ce8d000261ff89f8933e

[CL 18933162 by Martin Ridgers in ue5-main branch]
2022-02-10 03:53:13 -05:00
Martin Ridgers
33432ea349 No-unity compile fix.
#rb trivial
#rnx
#jira ue-141616
#preflight none

[CL 18899943 by Martin Ridgers in ue5-main branch]
2022-02-08 02:53:01 -05:00
Martin Ridgers
e50b917312 - Changed deleter of Buffer to be the class that allocated it
- Implemented move-constructor/assignment operator. Transport keeps an array threads, each of which of owns a FStreamBuffer instance. When Transport resizes this array, it copies items about. Because there are no move constructors, the compiler ends up cloning FStreamBuffers (via copy-constructing) and incorrectly deleting Buffer pointers still in use.
#rb jb
#rnx
#preflight 61fd3044e17efe76d1b6174c

[CL 18862467 by Martin Ridgers in ue5-main branch]
2022-02-04 09:07:30 -05:00
Johan Berg
190178593b Consider if a buffer is in demand (someone asked for more data than it can provide) as a condition of processing more trace data.
While there may be data remaining in the buffer, there might not be enough to decode another transport packet. Thus it is not correct to only consider the remaining number of bytes in the buffer as a condition of continuing to process data. Fortunately there is a demain hint that is set when someone asks for more data than a stream reader can provide. This can be used to differentiate between data remaining in the buffer, and not being able to do anything more with it.

#rb martin.ridgers, johan.berg
#rm 5.0
#ushell-cherrypick of 18267675 by Martin.Ridgers
#jira UE-134430, UE-135475
#preflight 619cf19cf70a9e92db3b69f7

[CL 18269671 by Johan Berg in ue5-main branch]
2021-11-23 09:34:58 -05:00
Martin Ridgers
efbc14309b Added a backtrack call to be able to restore a reader to an earlier point in its buffer. Like marks, only for the times when one wasn't able to take a mark.
#rb none
#rnx
#preflight 6151a7b659c66a000102f21b

[CL 17629130 by Martin Ridgers in ue5-main branch]
2021-09-27 07:57:36 -04:00
Martin Ridgers
33a54c5351 Added a method to return the number of bytes remaining in a stream of trace data
#rb trivial
#rnx

[CL 16979476 by Martin Ridgers in ue5-main branch]
2021-07-28 03:36:35 -04:00
Martin Ridgers
be972be826 Moved the Trace namespace into the UE namespace.
#rb jb
#rnx

[CL 14762673 by Martin Ridgers in ue5-main branch]
2020-11-17 06:54:28 -04:00
Martin Ridgers
5bd4631489 Tweaked growth size of buffers that hold trace data during analysis.
#rb jb
#rnx

[CL 14732282 by Martin Ridgers in ue5-main branch]
2020-11-12 04:23:44 -04:00
ryan durand
471d972e62 Updating copyright for Engine Developer.
#rnx
#rb none


#ROBOMERGE-SOURCE: CL 10869240 via CL 10869516 via CL 10869902
#ROBOMERGE-BOT: (v613-10869866)

[CL 10870584 by ryan durand in Main branch]
2019-12-26 15:32:37 -05:00
Robert Manuszewski
7b6f840f7f Copying //UE4/Dev-Core @ 10708550 to Dev-Main (//UE4/Dev-Main)
#rb none

[CL 10708666 by Robert Manuszewski in Main branch]
2019-12-13 11:07:03 -05:00
Stefan Boberg
d2f9a61b06 Copy-up from Dev-Core
#rb none

[CL 10419044 by Stefan Boberg in Main branch]
2019-11-25 12:03:09 -05:00