Beispiel #1
0
        /**
         * Adds a parent item
         */
        public void addParent(ProfileItem item)
        {
            _parentList.add(item);

            _count       += item.getCount();
            _totalMicros += item.getMicros();
            _selfMicros  += item.getMicros();
        }
        /**
         * Adds a profile item.
         */
        public void addItem(String name, string parent, long count, long micros)
        {
            ProfileItem item = new ProfileItem(name, parent, count, micros);

            _itemList.add(item);

            ProfileMethod method = getMethod(name);

            method.addParent(item);

            if ("__top__".equals(name))
            {
                _totalMicros = item.getMicros();
            }
            else
            {
                ProfileMethod parentMethod = getMethod(parent);
                parentMethod.addChild(item);
            }
        }
Beispiel #3
0
        /**
         * Adds a child item
         */
        public void addChild(ProfileItem item)
        {
            _childList.add(item);

            _selfMicros -= item.getMicros();
        }