1*9d1279ecSAndrew Rist /**************************************************************
2cdf0e10cSrcweir *
3*9d1279ecSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*9d1279ecSAndrew Rist * or more contributor license agreements. See the NOTICE file
5*9d1279ecSAndrew Rist * distributed with this work for additional information
6*9d1279ecSAndrew Rist * regarding copyright ownership. The ASF licenses this file
7*9d1279ecSAndrew Rist * to you under the Apache License, Version 2.0 (the
8*9d1279ecSAndrew Rist * "License"); you may not use this file except in compliance
9*9d1279ecSAndrew Rist * with the License. You may obtain a copy of the License at
10*9d1279ecSAndrew Rist *
11*9d1279ecSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0
12*9d1279ecSAndrew Rist *
13*9d1279ecSAndrew Rist * Unless required by applicable law or agreed to in writing,
14*9d1279ecSAndrew Rist * software distributed under the License is distributed on an
15*9d1279ecSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*9d1279ecSAndrew Rist * KIND, either express or implied. See the License for the
17*9d1279ecSAndrew Rist * specific language governing permissions and limitations
18*9d1279ecSAndrew Rist * under the License.
19*9d1279ecSAndrew Rist *
20*9d1279ecSAndrew Rist *************************************************************/
21*9d1279ecSAndrew Rist
22*9d1279ecSAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove
25cdf0e10cSrcweir #include "precompiled_automation.hxx"
26cdf0e10cSrcweir
27cdf0e10cSrcweir
28cdf0e10cSrcweir #include "profiler.hxx"
29cdf0e10cSrcweir #include "rcontrol.hxx"
30cdf0e10cSrcweir #include <basic/ttstrhlp.hxx>
31cdf0e10cSrcweir
32cdf0e10cSrcweir struct SysdepProfileSnapshot
33cdf0e10cSrcweir {
34cdf0e10cSrcweir // Hier stehen alle Felder zum Speichern eines Snapshot
35cdf0e10cSrcweir };
36cdf0e10cSrcweir
37cdf0e10cSrcweir
38cdf0e10cSrcweir struct SysdepStaticData
39cdf0e10cSrcweir {
40cdf0e10cSrcweir // Hier steht alles, was w�hrend des Profiles st�ndig gebraucht wird
41cdf0e10cSrcweir };
42cdf0e10cSrcweir
43cdf0e10cSrcweir
InitSysdepProfiler()44cdf0e10cSrcweir void TTProfiler::InitSysdepProfiler()
45cdf0e10cSrcweir {
46cdf0e10cSrcweir if ( !pSysDepStatic ) // Sollte immer so sein!!
47cdf0e10cSrcweir pSysDepStatic = new SysdepStaticData;
48cdf0e10cSrcweir // Hier initialisieren
49cdf0e10cSrcweir
50cdf0e10cSrcweir };
51cdf0e10cSrcweir
DeinitSysdepProfiler()52cdf0e10cSrcweir void TTProfiler::DeinitSysdepProfiler()
53cdf0e10cSrcweir {
54cdf0e10cSrcweir if ( pSysDepStatic ) // Sollte immer so sein!!
55cdf0e10cSrcweir {
56cdf0e10cSrcweir // Hier aufr�umen und eventuell Speicher freigeben
57cdf0e10cSrcweir
58cdf0e10cSrcweir delete pSysDepStatic;
59cdf0e10cSrcweir }
60cdf0e10cSrcweir };
61cdf0e10cSrcweir
NewSysdepSnapshotData()62cdf0e10cSrcweir SysdepProfileSnapshot *TTProfiler::NewSysdepSnapshotData()
63cdf0e10cSrcweir {
64cdf0e10cSrcweir return new SysdepProfileSnapshot;
65cdf0e10cSrcweir };
66cdf0e10cSrcweir
DeleteSysdepSnapshotData(SysdepProfileSnapshot * pSysdepProfileSnapshot)67cdf0e10cSrcweir void TTProfiler::DeleteSysdepSnapshotData( SysdepProfileSnapshot *pSysdepProfileSnapshot )
68cdf0e10cSrcweir {
69cdf0e10cSrcweir delete pSysdepProfileSnapshot;
70cdf0e10cSrcweir };
71cdf0e10cSrcweir
72cdf0e10cSrcweir
73cdf0e10cSrcweir // Titelzeile f�r Logdatei
GetSysdepProfileHeader()74cdf0e10cSrcweir String TTProfiler::GetSysdepProfileHeader()
75cdf0e10cSrcweir {
76cdf0e10cSrcweir return String(CUniString("(noch) keine weiteren Daten Implementiert"));
77cdf0e10cSrcweir };
78cdf0e10cSrcweir
79cdf0e10cSrcweir
80cdf0e10cSrcweir // Zustand merken
GetSysdepProfileSnapshot(SysdepProfileSnapshot *,sal_uInt16)81cdf0e10cSrcweir void TTProfiler::GetSysdepProfileSnapshot( SysdepProfileSnapshot *, sal_uInt16 )
82cdf0e10cSrcweir {};
83cdf0e10cSrcweir
84cdf0e10cSrcweir
85cdf0e10cSrcweir // Informationszeile zusammenbauen
GetSysdepProfileLine(SysdepProfileSnapshot *,SysdepProfileSnapshot *)86cdf0e10cSrcweir String TTProfiler::GetSysdepProfileLine( SysdepProfileSnapshot *, SysdepProfileSnapshot * )
87cdf0e10cSrcweir {
88cdf0e10cSrcweir return String();
89cdf0e10cSrcweir };
90cdf0e10cSrcweir
91cdf0e10cSrcweir
92cdf0e10cSrcweir
93