Commit Graph

26329 Commits

Author SHA1 Message Date
Ingo Weinhold
64f885c7d2 Refactored quite a bit. In theory the tool does support profiling child
processes recursively. In practice that doesn't really work, though, for
mainly two reasons:
* The runtime loader doesn't update it's image IDs, so the symbol lookup
  doesn't work. Even, if the runtime loader would do that, we are
  notified before it had a chance to do it.
* We're not tracking image creation/deletion yet, particularly fork()
  + exec*() leaves us totally clueless. Tracking images is quite unhandy
  with the current profiling API, though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27603 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-17 22:55:21 +00:00
Ingo Weinhold
4eba6974b5 When quitting the debug nub thread very early (i.e. right after its
creation), we didn't release the team debug info spinlock and reenabled
interrupts.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27602 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-17 22:38:17 +00:00
Philippe Houdoin
7b40eb4206 Fixed a typo.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27601 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-17 22:24:55 +00:00
Jérôme Duval
eef7a6772e whitespace cleanup
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27600 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-17 20:14:24 +00:00
Axel Dörfler
4ce1e1d2e4 * Fixed a possible deadlock on quit: ActivityView::DetachedFromWindow() is
called with the window lock held, so it's not a good idea to wait for a
  thread that may also lock the window. Now, it no longer does that, but just
  sends a B_INVALIDATE message instead of calling Invalidate() directly.
* This closes bug #2737.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27599 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-17 18:01:37 +00:00
Axel Dörfler
dc79961e1e * Added swap usage and page faults per second data sources.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27598 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-17 16:28:32 +00:00
Axel Dörfler
ca7cb625b9 * Implemented a (private for now) get_system_info_etc() call, that can retrieve
various system information.
* Implemented retrieving some VM stats via this call.
* The VM now maintains a page fault counter, and sets system_info::page_faults
  accordingly.
* Added a (pretty simple) "vmstat" command line app.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27597 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-17 16:27:17 +00:00
Stefano Ceccherini
b0a63e7a2a implemented BarTeamInfo copy constructor and used it in TBarApp::Subscribe(). Also cleaned up a bit the code in TBarApp destructor.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27596 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-17 14:38:12 +00:00
Stefano Ceccherini
8ade1bf7a6 initialize 'err'. CID 1308 & 1309
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27595 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-17 10:05:04 +00:00
Stefano Ceccherini
6dcce65687 port the changes made to the libbe counterpart (r27297 and r27485)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27594 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-17 09:15:48 +00:00
Stefano Ceccherini
632f1504a8 assign a token to the ServerPicture before anything else. If something fails to initialize, we can still search the picture via token
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27593 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-17 07:35:00 +00:00
Ingo Weinhold
6d4673085d All threads of the started program are profiled now.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27592 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-17 00:27:09 +00:00
Ingo Weinhold
5f87692c66 Increased the maximal port message size to 256 KB. The profiling
messages easily hit the previous limit. Maybe another solution should be
sought.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27591 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-17 00:23:25 +00:00
Jérôme Duval
bacba30b6f white space cleanup
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27590 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-16 21:31:47 +00:00
Jérôme Duval
07d143d4be <malloc.h> is no standard header
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27589 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-16 21:28:32 +00:00
Jérôme Duval
31c5eb6ad7 clean up
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27588 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-16 21:22:52 +00:00
Michael Lotz
173563d537 Update fallback mappings after removal of BitStream fonts. Not sure these are needed at all though.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27587 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-16 21:10:30 +00:00
Stephan Aßmus
b2c4c4f1f7 * Added BRadioButton test (the class seems to work fine).
* Extended the BMenuField test to see what happens when the super item label
  changes (works fine now).
* Updated TODO.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27586 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-16 15:10:11 +00:00
Stephan Aßmus
43f8c6143a * Updated the coding style.
* The layout friendly constructors don't need to mess with the control size.
* The layout friendly constructors can use the respective BControl constructor.
* Refactored some duplicated code.
* Removed duplicated GetFontHeight() calls.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27585 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-16 15:08:02 +00:00
Stephan Aßmus
349c911ee9 * Implemented a lot of layout related methods and resolved a few TODOs by
doing a lot of these things the same way as BMenuField are already doing.
  Perhaps a private helper class could be refactored from these two controls
  to avoid duplicating a lot of this code, although there are a few subtle
  differences here and there.

These changes make a BTextControl behave properly in the layout management
frame work, in case CreateLabelLayoutItem() and CreateTextViewLayoutItem()
are _not_ used to layout the BTextControl.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27584 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-16 10:50:31 +00:00
Stephan Aßmus
08edea662b * Don't set an explicit max size, instead calculate a proper max size in
MaxSize(). This makes sure that MaxSize() returns a proper size when the
  user "unsets" the explicite max size.
* minimum label height is 0 if there is no label.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27583 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-16 10:45:27 +00:00
Stefano Ceccherini
10d8f3749e added a test for BView::SetDiskMode()
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27582 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-16 10:27:41 +00:00
David McPaul
6ab381ac31 AAC support
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27581 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-16 09:48:33 +00:00
Stefano Ceccherini
9ed6b85806 fix warning. BSlider::SetValue() accepts an int32 parameter
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27580 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-16 07:33:55 +00:00
Stefano Ceccherini
b482d05552 Fix gcc4 warning, small style changes
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27579 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-16 07:32:36 +00:00
Jérôme Duval
edf6624bc8 * fix debug build
* publish a performance time before starting, so that others wait for us with valid values: this enables running with larger audio buffers
* don't publish a performance time before having a non null old realtime (at least two buffer exchanges)
* don't dereference config pointer before checking it is not null
* if we don't find an input for a buffer, we also recycle the buffer 


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27578 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-15 20:45:52 +00:00
Stephan Aßmus
f88398b6ac * GrepWindow::_AreAllFoldersOpenInTracker() could still leak entry_refs,
even in not unlikely situations.
* GrepWindow::_SelectFilesInTracker() was still leaking entry_refs in the
  success code path.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27577 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-15 20:09:15 +00:00
Stephan Aßmus
93ba577c3e * Updated header indentation
* Removed unused fClean member
* Got rid of fSkipSetFlags member by simply calling the BView::SetFlags()
  directly where fSkipSetFlags was supposed to prevent the custom
  implementation.
* Added some debugging facilities.
* Used the layout friendly constructors of BControl where appropriate.
* Used B_FOLLOW_ALL for the child text input, it should be more correct.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27576 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-15 19:43:18 +00:00
Rene Gollent
8d619bc9d2 Build fix, thanks to Frederik Ekdahl for submitting!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27575 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-15 18:48:33 +00:00
Axel Dörfler
5d6d0dcfc3 * The timer thread accessed a timer (to delete the TIMER_IS_RUNNING flag) after
it had been removed from the list. Now, I removed the flag again (but kept
  the flags field for now), and solved in a way that doesn't have this problem.
* This might have a positive effect on #2682.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27574 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-15 16:51:59 +00:00
Axel Dörfler
1dd3b2c724 * ISO-9660 did not like files with only a single character length.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27573 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-15 15:03:05 +00:00
Ingo Weinhold
127f6d39ef Decreased minimum profiling sampling interval to 100 us. At least in
VMware this doesn't produce very good results though. In my tests I only
got twice as many hits as with 1 ms, although it should be roughly ten
times as many. Might work better on real hardware.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27572 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-15 15:02:40 +00:00
Ingo Weinhold
ec38b40cc9 * Only pass functions with a size > 0 to the kernel. They would never
yield any hits anyway. The size 0 functions are hand-coded assembly
  functions (syscalls etc.).
* Increased the requested sampling interval to 1 ms. Should be
  specifiable per command line.
* Improved the output when done profiling a thread. The hit functions
  are sorted and printed in a table.
* Some cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27571 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-15 14:59:13 +00:00
Stefano Ceccherini
76ef98dd3f don't leak the BMessageRunner. CID 8
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27570 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-15 14:51:21 +00:00
Axel Dörfler
eb0974311f * ISOReadDirEnt() did not set the dirent::d_dev field, thus causing bug #2734.
* Moved the rock ridge attribute parsing code to a separate function.
* Removed superfluous malloc() vs. realloc() code.
* Checked allocations in the rock ridge parsing code.
* Cleanup, renamed some variables, structures, functions, etc.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27569 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-15 14:42:48 +00:00
David McPaul
3cdff7414f Update avcodec to 20080825
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27568 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-15 14:15:08 +00:00
David McPaul
c5e5c91ff1 Update avcodec to 20080825
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27567 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-15 14:14:35 +00:00
David McPaul
875bbde053 Update avcodec to 20080825
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27566 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-15 14:14:13 +00:00
David McPaul
c0d69ba2f1 Update avcodec to 20080825
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27565 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-15 14:13:44 +00:00
David McPaul
bc470b16bf Update avcodec to 20080825
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27564 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-15 14:13:04 +00:00
David McPaul
a687fd7041 Update avcodec to 20080825
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27563 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-15 14:12:50 +00:00
David McPaul
46077e4bb0 Update avcodec to 20080825
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27562 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-15 14:12:05 +00:00
David McPaul
c17be5fb78 Update avcodec to 20080825
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27561 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-15 14:11:26 +00:00
David McPaul
eaa51ccd98 Update avcodec to 20080825
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27560 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-15 14:11:11 +00:00
David McPaul
6bac4c81c5 Update avcodec to 20080825
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27559 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-15 14:10:52 +00:00
David McPaul
f900b2ed76 Update avcodec to 20080825
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27558 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-15 14:10:29 +00:00
David McPaul
2aa0a78774 Update avcodec to 20080825
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27557 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-15 14:09:46 +00:00
David McPaul
65509a25cd Update avcodec to 20080825
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27556 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-15 14:09:14 +00:00
David McPaul
7bfcce50a5 Update avcodec to 20080825
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27555 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-15 14:08:35 +00:00
David McPaul
25074f9ff3 Update avcodec to 20080825
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27554 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-15 14:07:34 +00:00