Closed Bug 717769 Opened 12 years ago Closed 12 years ago

Fix Profiler on Linux

Categories

(Core :: Gecko Profiler, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla12

People

(Reporter: BenWa, Assigned: BenWa)

References

Details

Attachments

(2 files)

Attached patch patchSplinter Review
A few bugs where preventing the profiling from working on linux, this patch fixes this.
Attachment #588192 - Flags: review?(ehsan)
Attachment #588192 - Flags: review?(ehsan) → review+
mcote, this will fix the problem you saw today.
Blocks: 713227
https://hg.mozilla.org/mozilla-central/rev/2cc49e58c516
Assignee: nobody → bgirard
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla12
Erm... XP_UNIX is defined on the BSDs, so now the build fails with missing symbols.

../../dist/bin/libxul.so.1.0: undefined reference to `mozilla_sampler_stop()'
../../dist/bin/libxul.so.1.0: undefined reference to `stack_key_initialized'
../../dist/bin/libxul.so.1.0: undefined reference to `mozilla_sampler_start(int, int, char const**, unsigned int)'
../../dist/bin/libxul.so.1.0: undefined reference to `mozilla_sampler_get_features()'
../../dist/bin/libxul.so.1.0: undefined reference to `mozilla_sampler_is_active()'
../../dist/bin/libxul.so.1.0: undefined reference to `mozilla_sampler_init()'
../../dist/bin/libxul.so.1.0: undefined reference to `mozilla_sampler_responsiveness(mozilla::TimeStamp)'
../../dist/bin/libxul.so.1.0: undefined reference to `pkey_stack'
../../dist/bin/libxul.so.1.0: undefined reference to `mozilla_sampler_get_profile()'
../../dist/bin/libxul.so.1.0: undefined reference to `mozilla_sampler_get_responsiveness()'

It seems better to use __linux__, or maybe XP_LINUX should be propagated as said in xpcom/base/Makefile.in#52. At least it fixes the build on OpenBSD, and i've sent the proposed fix to try in https://tbpl.mozilla.org/?tree=Try&usebuildbot=1&rev=70e335493537
Attachment #588667 - Flags: review?(Ms2ger)
Comment on attachment 588667 [details] [diff] [review]
Include sps_sampler.h if __linux__, not XP_UNIX

Reassigning..
Attachment #588667 - Flags: review?(Ms2ger) → review?(bgirard)
Attachment #588667 - Flags: review?(bgirard) → review+
I believe the convention is to not resolve the bug as fixed until it's landed on m-c.

Anyhow, it has now merged there:
https://hg.mozilla.org/mozilla-central/rev/cfd6e9dbc379
Component: General → Gecko Profiler
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: