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

63 Коммитов

Автор SHA1 Сообщение Дата
Michael Layzell 25ff5420dd Bug 1358619 - Fetch the stack and native stack within the same pause of the target thread, r=froydnj 2017-05-01 13:40:37 -04:00
Michael Layzell 58464c1919 Bug 1346415 - Use FramePointerStackWalk for less deadlocking when stackwalking on x86, r=njn
MozReview-Commit-ID: CAHarvGSuTY
2017-05-01 13:40:37 -04:00
Nicholas Nethercote 9471adc672 Bug 1359000 (part 4) - De-inline profiler_call_{enter,exit}. r=mstange.
This possibly incurs an extra function call (depends on exactly how much inling
the compiler does). But it helps enormously with subsequent refactorings,
because PseudoStack (and related types) don't need to be visible in
GeckoProfiler.h, which is exported outside the profiler.

--HG--
extra : rebase_source : f2dc5952d7444dfe12e627e86e6d37632b283107
2017-04-27 07:36:11 +10:00
Mike Conley 4e37be383a Bug 1312883 - Use MozStackWalk to gather native stacks on Windows. r=gfritzsche,jchen,liuche
MozReview-Commit-ID: A2aZAL03FG2

--HG--
extra : rebase_source : c5b3871e59f7752966ca4db023b1fa78d4fb574a
2017-02-16 12:05:46 -05:00
Mike Conley 5276916b04 Bug 1312883 - Remove all thread context processing from ThreadStackHelper. r=jchen
MozReview-Commit-ID: LpMSf6bSLy8

--HG--
extra : rebase_source : b77714eee6b3d2e52763d069d43bdaeab76bae45
2017-02-17 17:13:57 -05:00
Sebastian Hengst be695326cc Backed out changeset d6b3328c9573 (bug 1312883) 2017-02-24 14:25:20 +01:00
Sebastian Hengst 783a571c6e Backed out changeset fddfc0739043 (bug 1312883) 2017-02-24 14:25:15 +01:00
Mike Conley 3b9be9b187 Bug 1312883 - Use MozStackWalk to gather native stacks on Windows. r=gfritzsche,jchen,liuche
MozReview-Commit-ID: A2aZAL03FG2

--HG--
extra : rebase_source : 6cda7d88a916cec85a7c33ece5efe5eec76ef04f
2017-02-16 12:05:46 -05:00
Mike Conley c21551f8d7 Bug 1312883 - Remove all thread context processing from ThreadStackHelper. r=jchen
MozReview-Commit-ID: LpMSf6bSLy8

--HG--
extra : rebase_source : 81ef9f867a122adde7ad4287b762c987adeed5a8
2017-02-17 17:13:57 -05:00
Julian Seward 4cd04ecc8a Bug 1341255 - Profiler tidyups: remove StackEntry, rename ProfileEntry to ProfileBufferEntry (part 1: remove StackEntry). r=n.nethercote.
--HG--
extra : rebase_source : 6418946b1ebeb82abdccdb10a03380a40c00da21
2017-02-23 23:04:13 +01:00
Nicholas Nethercote 12647a7223 Bug 1332577 (part 7) - Rename mozilla_get_pseudo_stack() as profiler_get_pseudo_stack(). r=mstange.
This makes it consistent with other profiler functions.

--HG--
extra : rebase_source : 1e52acdc448691b8859bb147a0c70b198b432fe2
2017-01-20 15:07:05 +11:00
Mike Conley 85ea24e315 Bug 1312597 - Increase ThreadStackHelper's initial max buffer size to avoid (chrome script) placeholder in BHR pseudostacks. r=jchen
MozReview-Commit-ID: 6gE4eug7cmY

--HG--
extra : rebase_source : 84b0270f251d6b715fcb2df04005ff437b9d3226
2016-10-25 14:28:23 -04:00
Jan de Mooij e079cbfe2a Bug 1302914 - Use GetThreadContext after calling SuspendThread to ensure threads are really suspended. r=froydnj 2016-09-29 20:05:36 +02:00
Jon Coppeard d97a19687b Bug 1298639 - Use bytecode offsets rather than direct pointer in profiling API r=shu 2016-09-13 14:06:46 +02:00
Igor 175543fda8 Bug 1293384 - Part 2: Rename Snprintf.h header to Sprintf.h. r=froydnj 2016-08-14 23:43:21 -07:00
Igor a57972337d Bug 1293384 - Part 1: Rename snprintf_literal to SprintfLiteral. r=froydnj 2016-08-14 23:44:00 -07:00
Ted Mielczarek ea6f9a1958 bug 1069556 - sync to Breakpad c53ed143108948eb7e2d7ee77dc8c0d92050ce7c. r=glandium, benwa
This commit contains a few things:
* Update our copy of google-breakpad to upstream c53ed143108948eb7e2d7ee77dc8c0d92050ce7c
* Get rid of all but one local patch, fold a few related local patches into one
* Misc build fixup to sync with upstream--adding a few new moz.build files,
  source files
* The final bits of unhooking Breakpad from the profiler:
** Revert to only building toolkit/crashreporter if MOZ_CRASHREPORTER.
** Stop building bits of Breakpad that we only needed for the profiler.
** Remove a few bits of profiler code that were used to interface with Breakpad.
** Remove toolkit/crashreporter/breakpad-logging, which was only used to
   suppress Breakpad logging for the in-process stackwalker.
* Upstream removed their Android-compat sys/ucontext.h because the Android NDK
  added it, but the bionic we're using for Gonk builds is too old, so add a
  copy of the previous version of those files to
  toolkit/crashreporter/gonk-include to keep Gonk building.
* Consolidate moz.build files under toolkit/crashreporter/google-breakpad/client/linux

--HG--
rename : toolkit/crashreporter/google-breakpad/src/common/pathname_stripper.h => toolkit/crashreporter/google-breakpad/src/processor/pathname_stripper.h
rename : toolkit/crashreporter/google-breakpad/src/common/pathname_stripper_unittest.cc => toolkit/crashreporter/google-breakpad/src/processor/pathname_stripper_unittest.cc
extra : histedit_source : 43e65f5432657f548cac5aa7936461e58454c3b6%2C7b56ccc79d9d58ebde0583d920f3593e25212621
extra : rebase_source : f6dbfb8fb2ba5b27e63b26d57c404962679c7a76
extra : commitid : DMQlXPms868
extra : source : 09fd4f3ab6e764016fe073efb226f03b5969af59
extra : intermediate-source : 16f9d3a6d2ef6a6efd088e3b8eff0a4723daef8f
2016-01-27 09:39:53 -05:00
Chris Peterson 9911646ce8 Bug 1207031 - Suppress -Wshadow warnings from google-breakpad headers in xpcom/threads. r=froydnj 2015-09-21 22:41:52 -07:00
Jim Chen 5d85f6dea6 Bug 1196381 - Eliminate breakpad dependency in ThreadStackHelper; r=nfroyd r=snorp
The breakpad dependency in ThreadStackHelper is preventing us from
upgrading our in-tree copy to a newer version (bug 1069556). This patch
gets rid of that dependency. This makes native stack frames not work
for BHR, but because of the ftp.m.o decommissioning, native
symbolication was already broken and naive stack frames already don't
work, so we don't really lose anything from this patch.

Eventually we want to make ThreadStackHelper use other means of
unwinding, such as LUL for Linux

I added | #if 0 | around the code to fill the thread context, but left
the code in because I think we'll evenually want to reuse some of that
code.
2015-09-18 09:17:10 -04:00
Miko Mynttinen ba173ae5e4 Bug 1197316 - Remove PR_snprintf calls in xpcom/. r=froydnj 2015-08-22 17:57:52 -07:00
Birunthan Mohanathas a8939590de Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running:

  run-clang-tidy.py \
    -checks='-*,llvm-namespace-comment' \
    -header-filter=^/.../mozilla-central/.* \
    -fix
2015-07-13 08:25:42 -07:00
Nathan Froyd 9265d4998b Bug 1169034 - include <cstdlib> in ThreadStackHelper.cpp to declare correct overload for std::abs; r=jseward
The integer-valued {,l,ll}abs functions come from <stdlib.h>, and so the
integer-valued overload for std::abs comes from <cstdlib>.
2015-05-27 16:54:38 -04:00
Jim Chen bb5a648426 Bug 1164090 - Check for Windows path separator in BHR file name; r=snorp 2015-05-19 11:27:18 -04:00
Trevor Saunders d5851ef31c bug 1146027 - more final r=froydnj 2015-03-24 17:51:43 -04:00
Jim Chen c2e9cb1c30 Bug 1113416 - Don't read stack labels inside hang monitor sighandler; r=nfroyd r=snorp
When we're inside the hang monitor's signal handler, we must not read any string labels. Doing so may result in on-demand decompression kicking in on Android, which may result in a deadlock.
2015-01-10 12:41:48 -05:00
Jim Chen 3794dbb5b2 Bug 1109291 - Include better paths for hanging chrome scripts in profile extensions directory; r=snorp r=bsmedberg
--HG--
extra : amend_source : 82f1911bd294cc38076bf2bea2113b9e58e4bcc5
2014-12-16 17:09:17 -05:00
Jim Chen f6e8fa1fed Bug 1091758 - Report full paths for most chrome scripts; r=snorp 2014-11-25 15:35:21 -08:00
Julian Seward 89afba7ee7 Bug 1100911 - For MacOS builds running on Valgrind, make ThreadStackHelper::GetStack be a no-op. r=nchen.
--HG--
extra : rebase_source : b78df813b0fb211043836f4b8692caf277a2b28f
2014-11-20 20:50:26 +01:00
Tom Schuster bf9324688d Bug 1069694 - Remove OldDebugAPI from the browser. r=shu 2014-10-12 19:37:41 +02:00
Tom Schuster 7782444d76 Bug 1069694 - Remove or move around functions in OldDebugAPI. r=shu 2014-09-23 15:25:31 +02:00
Birunthan Mohanathas 80ef08ccd8 Bug 1046841 - Fix more style violations in previously touched .cpp files in xpcom/. r=froydnj 2014-08-25 12:17:15 -07:00
Jim Chen 0900e9257a Bug 1050440 - Remove repeated js::RunScript frames in ThreadStackHelper; r=snorp
--HG--
extra : amend_source : 26d40a84e7a107f328809e4dae94a0bd9db15c8b
2014-08-14 17:17:55 -04:00
Julian Seward 39acca7bb0 Bug 1050185 - Make ThreadStackHelper::FillThreadContext Valgrind-friendly. r=nchen 2014-08-12 12:15:06 +02:00
Jim Chen 3fb637553d Bug 1049161 - Fix ThreadStackHelper thread handle permissions on Windows; r=snorp 2014-08-08 18:11:53 -04:00
Jeff Walden 3815e2fdb1 Bug 1047123 - ThreadStackHelper should use UniquePtr<uint8_t[]>, not ScopedDeleteArray. r=jchen
--HG--
extra : rebase_source : 11aec2ba0c908a5ad892b832db130a84c562566b
2014-08-01 10:49:37 -07:00
Jan Beich 85f650feb1 Bug 1045176 - Unbreak build on non-SPS platforms after bug 1016629. r=nchen 2014-07-28 12:29:00 +02:00
Jim Chen ece64c8aec Bug 1016629 - g. Avoid ASan flag when copying stack; r=snorp 2014-07-28 13:30:22 -04:00
Jim Chen 357f3bc197 Bug 1016629 - e. Implement platform-specific code for filling in context; r=snorp r=jseward 2014-07-28 13:30:21 -04:00
Jim Chen b0aade637f Bug 1016629 - d. Add and implement GetNativeStack method in ThreadStackHelper; r=snorp r=jseward 2014-07-28 13:30:21 -04:00
Jim Chen 500bc7575f Bug 1016629 - c. Add define for ThreadStackHelper pseudostack support; r=snorp 2014-07-28 13:30:20 -04:00
Jim Chen e15783a41a Bug 1016629 - b. Use RAII class to assign mStackToFill; r=snorp 2014-07-28 13:30:20 -04:00
Carsten "Tomcat" Book 527ca8966a Backed out changeset 4e4358c01816 (bug 1016629) 2014-07-25 15:59:55 +02:00
Carsten "Tomcat" Book 289ad915a3 Backed out changeset 3e869dd7e82a (bug 1016629) 2014-07-25 15:59:52 +02:00
Carsten "Tomcat" Book 8d17345642 Backed out changeset 8d539315541d (bug 1016629) 2014-07-25 15:59:49 +02:00
Carsten "Tomcat" Book 99baad649a Backed out changeset e008d505335a (bug 1016629) 2014-07-25 15:59:46 +02:00
Carsten "Tomcat" Book f906a9a939 Backed out changeset 7cae21b839ad (bug 1016629) 2014-07-25 15:59:33 +02:00
Jim Chen 663b6b2b0d Bug 1016629 - g. Avoid ASan flag when copying stack; r=snorp 2014-07-24 22:33:49 -04:00
Jim Chen 11451edf94 Bug 1016629 - e. Implement platform-specific code for filling in context; r=snorp r=jseward 2014-07-24 22:33:47 -04:00
Jim Chen 4ff9846023 Bug 1016629 - d. Add and implement GetNativeStack method in ThreadStackHelper; r=snorp r=jseward 2014-07-24 22:33:46 -04:00
Jim Chen bfe0382b88 Bug 1016629 - c. Add define for ThreadStackHelper pseudostack support; r=snorp 2014-07-24 22:33:46 -04:00