Граф коммитов

12 Коммитов

Автор SHA1 Сообщение Дата
Emilio Cobos Álvarez fffb25b74f Bug 1465585: Switch from mozilla::Move to std::move. r=froydnj
This was done automatically replacing:

  s/mozilla::Move/std::move/
  s/ Move(/ std::move(/
  s/(Move(/(std::move(/

Removing the 'using mozilla::Move;' lines.

And then with a few manual fixups, see the bug for the split series..

MozReview-Commit-ID: Jxze3adipUh
2018-06-01 10:45:27 +02:00
Markus Stange a76d2ed393 Bug 1429904 - Put mUniqueStrings into a UniquePtr. r=njn
In an upcoming patch we'll want to initialize mUniqueStrings by stealing
another object's UniqueJSONStrings, but UniqueJSONStrings itself is not
move-constructible. But UniquePtr is.
Making UniqueJSONStrings itself move-constructible would be a bit tricky
because it has a SpliceableChunkedJSONWriter which is not move-constructible;
and making SpliceableChunkedJSONWriter move-constructible is hard because
there's no obvious "empty but valid" state that we could leave a moved-out-of
SpliceableChunkedJSONWriter in; for example, it expects to have a non-null
WriteFunc at all times.

MozReview-Commit-ID: Q6o61HFTiD

--HG--
extra : rebase_source : e1073be9892cf7cfd6ca4f2562ce939690b3b4d7
2018-02-17 15:50:43 -05:00
Narcis Beleuzu cb68134250 Backed out 15 changesets (bug 1429904) for build bustages on ProfileBufferEntry.cpp. CLOSED TREE
Backed out changeset e41dd572e115 (bug 1429904)
Backed out changeset 8cbd19b941a0 (bug 1429904)
Backed out changeset 544e3884d895 (bug 1429904)
Backed out changeset 34f128690886 (bug 1429904)
Backed out changeset 11e6e1eb039a (bug 1429904)
Backed out changeset 4ade11251223 (bug 1429904)
Backed out changeset 4d359db9dcf6 (bug 1429904)
Backed out changeset b463b8aeb9f3 (bug 1429904)
Backed out changeset 7e25215922b8 (bug 1429904)
Backed out changeset 58fdb209349c (bug 1429904)
Backed out changeset 43208c534673 (bug 1429904)
Backed out changeset 377750a82bf6 (bug 1429904)
Backed out changeset 595906406c16 (bug 1429904)
Backed out changeset 39a1b2434439 (bug 1429904)
Backed out changeset e270b4748814 (bug 1429904)
2018-03-01 00:36:07 +02:00
Markus Stange c26b9c509d Bug 1429904 - Put mUniqueStrings into a UniquePtr. r=njn
In an upcoming patch we'll want to initialize mUniqueStrings by stealing
another object's UniqueJSONStrings, but UniqueJSONStrings itself is not
move-constructible. But UniquePtr is.
Making UniqueJSONStrings itself move-constructible would be a bit tricky
because it has a SpliceableChunkedJSONWriter which is not move-constructible;
and making SpliceableChunkedJSONWriter move-constructible is hard because
there's no obvious "empty but valid" state that we could leave a moved-out-of
SpliceableChunkedJSONWriter in; for example, it expects to have a non-null
WriteFunc at all times.

MozReview-Commit-ID: Q6o61HFTiD

--HG--
extra : rebase_source : d18344cab5acc97192a69069a8c338ed112fff6c
2018-02-17 15:50:43 -05:00
Markus Stange 49d6d03730 Bug 1348959 - Remove wraparound indexing in ProfileBuffer. r=djvj,mystor,njn
MozReview-Commit-ID: LeBFSRE6GXR

--HG--
extra : rebase_source : c46c0cd0dd543a367f72000e3cae65260a25b365
extra : source : 0f2e9dd7d45551d40944e4219e5a9eb92d54b2c4
2018-02-06 00:25:30 -05:00
Nika Layzell 247e29f4fd Bug 1430850 - Part 2: Change ProfilerMarker to use an internal ThreadId property, rather than the ThreadId entry, r=mstange
MozReview-Commit-ID: J8Ckvmj4En0
2018-01-16 14:07:27 -05:00
Tristan Bourvon b15e4b2827 Bug 1412648 - Initialize some uninitialized fields in tools/profiler/. r=mstange 2017-10-31 11:20:12 +01:00
Nicholas Nethercote f0d3349d01 Bug 1408279 - Make profile JSON easier to read. r=mstange.
Currently the choices of SingleLineStyle and MultiLineStyle are sub-optimal,
which makes debugging of profiles difficult.

- A large chunk of the profile is put on a single line, which is very hard to
  read in a text editor.

- Other short and repetitive constructs are unnecessarily spread across
  multiple lines.

This patch makes things more readable.
2017-10-13 15:32:14 +11:00
Nicholas Nethercote 8fccd59ba6 Bug 1373436 (part 3) - Use UniquePtr more with ProfilerMarkerPayload. r=mstange. 2017-06-16 10:51:05 +10:00
Nicholas Nethercote 90133cc8f9 Bug 1368915 (part 3) - Rename aStartTime parameters as aProcessStartTime where appropriate. r=mstange.
This increases naming consistency. The remaining aStartTime parameters within
the profiler refer to a different start time than the process start time.

--HG--
extra : rebase_source : 0a07c54288f31af5a15518180b00fe59b587f784
2017-06-02 09:41:51 +10:00
Nicholas Nethercote 7d44af05e2 Bug 1365824 - Remove STORE_SEQUENCER. r=froydnj.
It's a software memory barrier, and not a very strong one. If the values it is
protecting are Atomic, that provides a stronger hardware memory barrier.

This patch removes it, and changes one of the values it was protecting from
|volatile| to Atomic. (The other value it was protecting was already Atomic.)
2017-05-18 13:24:13 +10:00
Nicholas Nethercote 93b0b152aa Bug 1123754 (part 2) - Move ProfilerMarker into ProfilerMarker.h. r=mstange.
ProfilerMarker is simple enough that it's best to fully define it in
ProfilerMarker.h, without introducing a ProfilerMarker.cpp.

This requires moving STORE_SEQUENCER() into its own header, StoreSequencer.h.

As a result, the following types are no longer visible outside the profiler:
ProfilerMarker, ProfilerLinkedList, ProfilerMarkerLinkedList,
ProfilerSignalSafeLinkedList. (PseudoStack.h now contains the PseudoStack class
and nothing else.)

The patch also makes the following non-obvious changes.

- It changes ProfilerMarker::{mMarkerName,mPayload} to unique pointers, which
  removes the need for an explicit ~ProfilerMarker().

- It removes ProfilerMarker::GetMarkerName(), because that method is only used
  within ProfilerMarker itself.

--HG--
extra : rebase_source : 22bdfb1c9c30751253ed66352d7edd51d308152d
2017-04-27 07:36:22 +10:00